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

Application program data processing method and device Download PDF

Info

Publication number
CN112817923B
CN112817923B CN202110192910.4A CN202110192910A CN112817923B CN 112817923 B CN112817923 B CN 112817923B CN 202110192910 A CN202110192910 A CN 202110192910A CN 112817923 B CN112817923 B CN 112817923B
Authority
CN
China
Prior art keywords
file
target
target file
files
set attribute
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110192910.4A
Other languages
Chinese (zh)
Other versions
CN112817923A (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

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 memory volume of electronic equipment in which the target application program is located; and when the available storage amount is smaller than a data amount threshold corresponding to the target file type, deleting the target file which is locally stored by the electronic equipment 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. The dynamic limit on the use of the storage resources is realized, and the problem that the user selects to permanently uninstall the application program due to the large storage space occupied by the application program 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
With the iteration of Application (APP) service capability and the increase of the use duration of the APP by the user, the memory space occupied by the APP will be larger and larger, which easily causes the problems that the remaining space of the user terminal is insufficient or the APP size exceeds the expected value of the user. And then the user is caused to select to permanently unload the APP, or the APP is frequently unloaded and reloaded to reduce the storage space occupied by the APP, so that the purpose of recycling the storage space is achieved. Therefore, a data processing method for solving the problem that the memory space occupied by the APP is too large is needed.
Disclosure of Invention
The embodiment of the invention aims to provide an application program data processing method and device, which can avoid the problem that a user selects to permanently uninstall an application program due to larger storage space occupied by the application program 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, 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 memory volume of electronic equipment in which the target application program is located;
and when the available storage amount is smaller than a data amount threshold corresponding to the target file type, deleting the target file which is locally stored by the electronic equipment 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, the executing the deleting operation on the target file locally stored in the electronic device and conforming to the set attribute includes: and deleting the target file conforming to the set attribute.
Optionally, the executing the deleting operation on the target file locally stored in the electronic device and conforming to the set attribute includes:
Executing the pushing of the deleting prompt information;
and deleting the target file conforming to the set attribute in response to a confirmation deleting instruction, wherein the confirmation deleting instruction is generated based on the deleting prompt information.
Optionally, before the deleting operation is performed on the target file locally stored in the electronic device and meeting the set attribute, the method further includes: obtaining a deletion strategy, wherein the deletion strategy comprises the following steps: the file identification and/or the deletion prompt information of the target file corresponding to the target file category and conforming to the set attribute, wherein the deletion strategy is pre-stored information or information received from a server;
the deleting operation is performed on the target file which is locally stored by the electronic equipment and accords with the set attribute, and the deleting operation comprises the following steps: and executing the deleting operation on the target file conforming to the set attribute based on the deleting strategy.
Optionally, the file category is determined based on the importance level of the target file, and the target file according with the set attribute further includes: the importance level of the target file is lower than that of the corresponding target file of the file class of the target importance level, and the target importance level is the importance level of the target file class.
Optionally, the executing the deleting operation on the target file locally stored in the electronic device and conforming to the set attribute includes:
and executing deleting operation on the target file with the set data quantity in the target files conforming to the set attribute, wherein the set data quantity is inversely related to the data quantity threshold.
Optionally, the executing the deleting operation on the target file locally stored in the electronic device and conforming to the set attribute includes:
and executing deleting 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 attribute, wherein the first target files are target files corresponding to the target file types, the second target files are target files corresponding to file types with importance levels lower than the target importance levels, and the first number is smaller than the second number.
Optionally, the target file according with 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 in the case that the file category is determined based on the importance level of the target file, the data amount threshold corresponding to the file category is inversely related to the importance level of the target file corresponding to the file category.
Optionally, the available storage amount of the electronic device includes an available storage amount of a local storage of the electronic device and/or an available storage amount 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, the 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 volume of electronic equipment in which the target application program is located;
and the execution module is used for executing the deleting operation on the target files which are locally stored by the electronic equipment and accord with the set attribute when the available storage amount is smaller than the data amount threshold corresponding to the target file type, wherein the target files accord with the set attribute 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 for implementing the method steps of any of the above first aspects when executing a program stored on a memory.
In a fourth aspect of the present invention, there is also provided a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the application data processing method of any of the first aspects described above.
In a fifth aspect of the invention there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the application data processing method of any of the first aspects described above.
According to the application program data processing method and device, the data quantity threshold corresponding to the file type of the target file in the target application program is obtained, and the available memory space of the electronic device where the target application program is located is obtained, so that when the available memory space is smaller than the data quantity threshold corresponding to the target file type, deleting operation can be performed on the target file which is locally stored in the electronic device 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, the use of the memory resource of the electronic device is controlled, the probability that the memory resource occupied by the application program is overlarge is reduced, namely the probability that the memory space occupied by the application program is overlarge is reduced. The problem that the 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, 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 schematic 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 threshold value of data volume corresponding to a file category 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 diagram of a sandbox catalog interface for an application according to an embodiment of the present invention;
FIG. 7 is a directory interface diagram of a folder according to an embodiment of the present invention;
FIG. 8 is a diagram of an attribute interface of a folder according to an embodiment of the present invention;
FIG. 9 is a directory interface diagram of a folder according to an embodiment of the present invention;
FIG. 10 is an interface diagram of a document G according to an embodiment of the present invention;
FIG. 11 is a directory interface diagram of a 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 block 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 accompanying drawings in the embodiments of the present invention.
With the iteration of Application (APP) service capability and the increase of the use duration of the APP by the user, the storage space occupied by the APP will be 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 expected value of the user. Thereby causing the user to select to permanently uninstall the application program or to recycle the storage space by frequently uninstalling and reinstalling the application program to reduce the storage space occupied by the application program. Accordingly, there is a need for a data processing method for reducing the memory space occupied by an application program.
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 iterates and the length of time that users use increases. For example, data exchange format (JavaScript Object Notation, JSON) files, property list (plist) files, database files, log (log) files, cache (cache) files, picture files, video files, and the like. These files occupy more of the available memory of the terminal's memory space. The storage space includes a local storage and a cloud storage (for example, the cloud storage is ibud or iTunes, etc.), and the available storage of the terminal may be the available storage of the local storage and the available storage of the cloud storage.
Referring to FIG. 1, a schematic diagram of a data processing system is shown according to an embodiment of the present invention. 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. The terminal 101 may be an electronic device such as a mobile phone, a personal computer (personal computer, PC) or a tablet computer. The server 102 may include one or more servers, a server cluster, or the like. 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 networks, third generation (3G) mobile communication technology networks, or general packet radio service technology (general packet radio service, GPRS), etc.
Wherein the terminal 101 may have a local storage space. The server 101 may have 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 conforms to 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. Correspondingly, the terminal does not need to be provided 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 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 the electronic equipment. The electronic device is a device in which the target application is installed, 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, obtaining a data volume threshold corresponding to a file category to which a target file belongs in a target application program.
The target application may be any application, for example, an application that is 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 cartoon file, etc. which are downloaded by a user in the application program, a cached data file loaded on a page such as a skip page in the application program, a file for recording a user behavior log, etc. It will be appreciated that the number of target files for a target application is typically a plurality.
In the embodiment of the present invention, the target file of the target application program may belong to at least two file categories. I.e. the number of file categories into which the target file in the application can be divided 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, or may be determined based on the importance level of each target file in the target application and the file size classification. Of course, the class level of the file may also be determined based on 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 amount threshold, and the data amount threshold is used for calibrating different available storage amounts of the electronic equipment where the target application program is located.
Optionally, the electronic device may obtain, in response to the setting operation, a data amount threshold corresponding to a file type to which the target file belongs in the target application. The setting operation may be an operation determined based on business logic of the actual target application program. By way of example, the setting operation may be a start-up, a close-up, an entry operation of a target interface, a click operation of a target button, a target time range, or a check time stamp, etc. 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 or the like.
Step 202, obtaining the available memory space of the electronic device where the target application program is located.
The electronic device in which the target application program is located may acquire the current available memory of the electronic device. Alternatively, the electronic device may include a local storage (local disk storage) and its corresponding cloud storage. The obtaining of the available storage amount of the electronic device may include the available storage amount of the local storage of the electronic device and/or the available storage amount of the cloud storage corresponding to the electronic device, that is, may only obtain the available storage amount of the local storage, may only obtain the available storage amount of the cloud storage, or may also obtain the available storage amount of the local storage and the available storage amount of the cloud storage at the same time.
And 203, when the available storage amount is smaller than the data amount threshold corresponding to the target file category, deleting the target file which is locally stored in the electronic equipment 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 category.
Optionally, if the number of 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 which execute the deleting operation and conform to the set attribute 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 amount is smaller than the data amount threshold corresponding to different file types, deleting operation can be performed on different target files conforming to the set attribute, so that different restrictions on the use of storage resources of the electronic equipment are realized. Because the deleting operation can be performed on different files based on the current actual available storage amount of the terminal and the data amount threshold corresponding to the different file types. Therefore, the dynamic limit on the use of the storage resources is realized, and the flexibility of the adjustment of the storage resources is improved.
When the available memory is the available memory of the local memory of the electronic device, deleting different target files conforming to the set attribute in the local memory of the terminal so as to limit the use of the memory resources of the local memory by the terminal. When the available storage amount is the available storage amount of the cloud storage corresponding to the electronic equipment, the deletion operation can be performed on different target files conforming to the set attribute in the local storage of the terminal, so that the number of the target files backed up and stored in the cloud storage corresponding to the electronic equipment is realized under the condition that the cloud storage backup target application program function is started, and the occupation of storage resources of the cloud storage is reduced.
Optionally, in the case that the file category is determined based on the importance level of the target file, the target file conforming to the set attribute further includes: the importance level is lower than the target files corresponding to the file categories of the target importance level. The target importance level is that the importance level of the target file class accords with the target file of the set attribute, and the target file corresponding to the target file class is included.
By way of example, the target file conforming to the set attribute includes at least one of the following files: 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 target application programs.
In the embodiment of the present invention, performing the deletion operation on the target file locally stored in the electronic device and conforming to the set attribute may include: and deleting the target files conforming to the set attributes to release the storage resources occupied by the target files conforming to the set attributes. And/or performing a delete operation on the target file locally stored by the electronic device that meets the set attribute may also include: and executing the pushing of the deletion prompt information. And deleting the target file conforming to the set attribute in response to the confirmation deleting instruction. The confirm deletion instruction is generated based on the deletion hint information. The deleting operation realizes the purpose of guiding a user to delete the target file which corresponds to the target file category and accords with the set attribute by executing the deleting prompt information pushing operation, and releases the storage resource occupied by the target file. Alternatively, the confirmation deletion instruction may be an instruction generated after receiving the first setting operation for the deletion hint information. The first setting operation may be a click operation, a long press operation, a slide operation, or the like.
When the application data processing method execution main body is the electronic device, the execution of the deletion prompt pushing may include displaying the deletion prompt. The electronic device may generate a confirm deletion instruction upon receiving a first setting operation for the deletion hint information. And deleting the target file conforming to the set attribute in response to confirming the deletion instruction. When the execution main body of the application data processing method is the server, executing the deletion prompt message pushing may include sending the deletion prompt message to the electronic device connected with the execution main body, so that the electronic device displays the deletion prompt message, and when receiving a first setting operation for the deletion prompt message, the electronic device generates and sends a deletion confirmation instruction to the server. After receiving the confirmation deleting instruction, the server can respond to the confirmation deleting instruction to delete the target file conforming to the set attribute.
In the embodiment of the invention, when the current actual available storage amount of the electronic equipment is smaller than the data amount threshold corresponding to different file types, the deleting operation can be executed on the target file which accords with the set attribute, so that the use of the local storage resources of the electronic equipment can be limited to different degrees. Therefore, the dynamic limit 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, according to the application data processing method provided by the embodiment of the present invention, by acquiring the data amount threshold corresponding to the file type and acquiring 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, the deletion operation can be performed on the target file locally stored in the electronic device and conforming to the set attribute, where the target file conforming to the set attribute includes the target file corresponding 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 reduces the probability of overlarge storage resources occupied by the application program, namely the probability of overlarge storage space occupied by the application program. The problem that the 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, 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 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 illustrates an example in which a terminal dynamically limits its local storage resources. As shown in fig. 3, the application data processing method may include:
limiting:
step 301, the terminal obtains a data volume threshold corresponding to a file category to which a target file belongs in a target application program.
The explanation and implementation of step 301 may refer to the explanation and implementation of step 201 described above, which is not limited by the embodiment of the present invention. And the embodiment of the invention is described by taking at least two file categories as examples.
Alternatively, the data amount threshold corresponding to each file category may be determined by the server. The terminal can receive the data volume threshold value corresponding to each file category sent by the server side, so as to obtain the data volume threshold value corresponding to each file category. For example, the terminal may receive, through its start interface with the server, a data amount threshold corresponding to each file category issued by the server to the terminal in response to the start of the target application.
Step 302, the terminal obtains the available memory capacity of the local memory of the terminal where the target application program is located.
Step 303, when the available storage amount stored locally is smaller than the data amount threshold corresponding to the target file type, the terminal sends processing request information to the server, where the processing request information includes indication information for indicating the target file type.
Alternatively, the indication information indicating the target file category included in the processing request information may be a category identification of the target file category, which is used to uniquely identify the file category.
In the embodiment of the invention, when the data volume threshold value corresponding to each file type is different, the indication information of the target file type may be the data volume threshold value corresponding to the target file type.
Step 304, the server acquires an execution policy, where the execution policy includes file identifiers and/or deletion prompt information of target files corresponding to different file types and conforming to the set attribute.
After receiving the processing request information sent by the terminal, the server can acquire the execution policy. The execution strategy comprises the following steps: and in at least two file categories to which the target file belongs, file identification and/or deletion prompt information of the target file which corresponds to each different file category and accords with the set attribute.
In the embodiment of the 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 conforming to the set attribute may include: the target file corresponding to any file category. Wherein, any file category may correspond to one or more target files. When the arbitrary file corresponds to a plurality of target files, the plurality of target files can be the target files which are ranked in front from the file size in the target files corresponding to the arbitrary file category.
Optionally, in the case that the file class is determined based on the importance level of the target file, the target file corresponding to any one file class and meeting the set attribute may further include: the importance level is lower than the target files corresponding to the file categories of the target importance level. The target importance level is the importance level of the target file category.
By way of example, assume that the importance level of the target file may include a first level, a second level, and a third level, which sequentially decrease in importance.
The first level is used to reflect the general importance of the target file to the target application. After deleting the target file corresponding to the first level, 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, cartoon files, etc. downloaded by the user using the target application.
The second level is used to reflect that the target file is of less importance to the target application. After deleting the target file corresponding to the second level, the target application program can normally run and has little 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 the time threshold. For example, the target file corresponding to the second level may include a page cache data file, the target application cache picture file, the target application cache video file, and the like.
The third level is used to reflect that the importance of the target file to the target application is low. The target file corresponding to the third level may be a file that is not perceived by the user. After deleting the target file corresponding to the third level, the target application program can normally run without affecting the use of the user. The target file corresponding to the third level may include a file or the like in which the user behavior log is recorded.
If the target file corresponding to the first level belongs to one file class, the target file corresponding to the second level belongs to one file class, and the target file corresponding to the third level belongs to one file class, the determining at least two file classes 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 the importance levels are respectively 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 file corresponding to the second file category at least comprises: page buffer data file, target application buffer picture file and target application buffer video file. The target file corresponding to the third file category at least comprises: user behavior log files.
For example, the target file corresponding to the first file category may further include: page cache data file, target application cache picture file, target application cache video file and user behavior log file. The target file corresponding to the second file category may further include: user behavior log files.
Optionally, the executing policy may include: and in the at least two file categories, the file identifier of the target file corresponding to one part of the file categories and conforming to the set attribute, and the deletion prompt information and the file identifier of the target file conforming to the set attribute, which correspond to the other part of the file categories, are used for prompting a user of the terminal to delete the target file corresponding to the file categories and conforming to the set attribute.
In the embodiment of the invention, the target file has a corresponding importance level. And the higher the importance level of the target file, the greater the importance of the target file to the target application program. Therefore, if the importance level corresponding to the file class is higher than the first level threshold under the condition that the file class is determined based on the importance level of the target file, in the execution strategy, the deletion prompt information corresponding to the file class and the file identification of the target file conforming to the set attribute are executed, so that the user is guided to delete the target file conforming to the set attribute by using the deletion prompt information. 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 which corresponds to the file type and accords with the set attribute in the strategy. The second level threshold is lower than or equal to the first level threshold.
By way of example, assume that 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 lower than a second level threshold. Then the execution policy may include: the method comprises the steps of deleting prompt information corresponding to a first file category and file identification of a target file conforming to a set attribute, file identification of a target file conforming to the set attribute corresponding to a second file category, and file identification of a target file conforming to the set attribute corresponding to a third file category.
In the embodiment of the invention, the target files which correspond to each file category and accord with the set attribute 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 accord with the set attribute 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 corresponding to the target file category and conforming to the set attribute.
In the embodiment of the invention, the server side can generate the file identification and/or the deletion prompt information of the target file which corresponds to the target file category and accords with the set attribute based on the target file category included in the processing request information and the execution strategy. 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 hint information of the target file corresponding to the target file category and conforming to the set attribute, and generate the deletion policy. The target files corresponding to the target file types and conforming to the set attributes may include: target files corresponding to the target file categories. Optionally, the target file corresponding to the target file category and conforming to the set attribute may further include: the target importance level of the target file corresponding to the file class is lower than the importance level of the target file class.
For example, assume that the importance levels of the target files include a first level, a second level, and a third level, in which the importance is sequentially decreased, and the target files of the same importance level are of 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 a file B, a file C and a file D. The target files corresponding to the third level are files E and F. And it is assumed that the target file corresponding to any file category and conforming to the set attribute includes: the method comprises the steps of selecting a target file corresponding to any file category and a target file corresponding to a file category of a target importance level, wherein the target importance level is lower than the importance level of any file category. If the target file class is the second level, the target file corresponding to the target file class and conforming to the set attribute may include: files B, C and D, and files E and F.
Step 306, the server sends the deletion strategy to the terminal.
The server sends the deletion strategy through the wireless network between the server and the terminal.
Step 307, the terminal performs a deletion operation on the target files locally stored by the terminal and conforming to the set attribute, where the target files conforming to the set attribute include target files corresponding to the target file types.
Optionally, the implementation process of the terminal to execute the deletion operation on the target file meeting the set attribute in the local storage of the terminal may be various, and the following two embodiments of the present invention are described as examples.
In a first alternative implementation manner, the process of executing the deleting operation by the terminal 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.
Thus, the terminal can directly delete the target file meeting the set attribute in the local storage, so that the target application program occupies the local storage by directly deleting the target file.
In a second alternative implementation manner, the process of executing the deleting operation by the terminal on the target file meeting the set attribute in the local storage may include: the terminal may perform delete alert message pushing. And deleting the target file conforming to the set attribute in response to the confirmation deleting instruction. The confirm delete instruction is generated based on the delete prompt.
The terminal executes the deletion prompt message pushing, and can display the deletion prompt message. And receiving a setting operation aiming at the deletion prompt information, and generating a confirmation deletion instruction. And deleting the target file which accords with the set attribute in the local storage in response to the confirmation deleting instruction. The setting operation may be a click operation, a long press operation, a slide operation, or the like.
In this way, the terminal displays the deletion prompt information so as to prompt the user of the target application program to delete the target file conforming to the set attribute, guide the user to delete the target file and reduce the occupation of the local storage by the target application program. For example, the terminal may display a frame, where the frame includes deletion prompt information. And deleting the target file which accords with the set attribute and is pointed by the identifier in the local storage of the terminal by the terminal based on the file identifier of the target file included in the processing operation information.
Optionally, the target files corresponding to any file category and meeting the set attribute may not only include target files corresponding to the target file category, but also include: in the case that the importance level is lower than the target importance level and the file type corresponds to the target file, in the above two alternative implementations, the process of executing the deletion operation on the locally stored target file according to the set attribute by the electronic device may include various cases, and the following two embodiments of the present invention are described by taking the following two examples as examples.
In the first case, the electronic apparatus 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 target files in the target files conforming to the set attribute. And determining target files with set data volume from all the target files, namely determining the sum of the file sizes of all the determined target files as the set data volume. And executing deleting operation on the determined target file with the set data quantity. The electronic device can randomly determine the target file with the set data volume from all the target files. Or the electronic device may sort all the target files according to the importance levels corresponding to the target files. The target files of the set data amount are determined in the order of the importance level from low to high.
By way of example, assume that a target file of a target application may be of three sequentially decreasing importance levels of the file categories to which it belongs. The first file category corresponds to a data volume threshold of 500 megabytes (M), the second file category corresponds to a data volume threshold of 600M, and the third file category corresponds to a data volume threshold of 700M. Then, assuming that the set data amount corresponding to the first file type is 300M, the set data amount corresponding to the second file type is 200M, and the set 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 conforming to 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 the file A, the file B and the file C are 200M, and the file size of the file D is 100M.
If the electronic device performs the deletion operation on the target file corresponding to the first file category and conforming to the set attribute, the electronic device may randomly determine that the sum of the file sizes of the file a and the file D is the set data amount from the target file conforming to the set attribute, and perform the deletion operation on the file a and the file D.
In the second case, the electronic device performs a deletion operation on the first number of target files and the second number of target files in the target files conforming to the set attribute. The first target files are target files corresponding to target file categories, the second target files are target files corresponding to file categories with importance levels lower than the target importance levels, and the first number is smaller than the second number.
By way of example, continuing with the example assumed in the first case described above, and assuming a first number of 1 and a second number of 2. If the electronic device executes the deleting operation on the target file corresponding to the first file category and conforming to the set attribute, the first target file is a file A, and the second target file is 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 target file and on two files (file B and file C) in the second target file.
And in the third case, continuously deleting all target files in the target files conforming to the set attribute until the current available storage amount 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 amount may be obtained by the electronic device in real time, or may be determined by the electronic device by summing the available storage amount obtained in step 302 and the size of the target file to be deleted in the process of continuously deleting the target file. Of course, the current available memory amount may be determined by other manners, which are not limited by the embodiment of the present invention.
For example, continuing with the example assumed in the first case, the setting threshold corresponding to the first file category is assumed to be 550M, the setting threshold corresponding to the second file category is assumed to be 650M, and the setting threshold corresponding to the third file category is assumed to be 750M. If the electronic device performs the deleting operation on the target file corresponding to the first file category and conforming to the set attribute, the electronic device may continuously delete the files a to D. And if the current available storage amount of the electronic equipment is larger than 550M when deleting the file C, stopping executing the deleting operation. The current available storage amount of the electronic device is the sum of the sizes of the files A to C and the sum of the available storage amount.
Optionally, after receiving the deletion policy sent by the server, the process of executing, by the terminal, a deletion operation on the target file in the local storage, where the target file meets the set attribute, may include: and the terminal executes the deleting operation on the target file which accords with the set attribute in the local storage based on the deleting strategy.
For example, the process of executing, by the terminal, a deletion operation on the target file meeting the set attribute in the local storage based on the deletion policy may include:
if the deletion policy includes deletion prompt information, the terminal may display the deletion prompt information. And receiving a first setting operation aiming at the deletion prompt information, and generating a confirmation deletion instruction. And deleting the target file which corresponds to the file identifier and corresponds to the set attribute and is included in the deletion strategy in the local storage in response to the confirmation deletion instruction. If the deletion policy does not include the deletion prompt information, the terminal may delete the target file corresponding to the file identifier included in the deletion policy and conforming to the set attribute in the local storage.
In the embodiment of the present invention, since 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 performed on the file types corresponding to the higher importance level, so that a user can autonomously select whether to delete the target files with higher importance, the influence of directly deleting the target files on the use of the user is avoided, and the user experience is improved.
The description will be continued taking, as an example, the above importance levels including the first level, the second level, and the third level. And executing a deleting operation on the corresponding target file which accords with the set attribute according to the file category corresponding to the first level to display deleting prompt information so as to guide a user to delete the target file. And the file categories corresponding to the second level and the third level respectively execute the deleting operation on the corresponding target files which accord with the set attribute to directly delete the target files.
In practical application, the deletion operation of the target file which accords with the set attribute can be determined by product personnel and developers together according to the file types corresponding to different importance levels.
Step 308, the terminal determines the cloud storage backup target application program corresponding to the terminal.
Optionally, the terminal may determine whether the user has opened the cloud storage backup function. And under the condition that the cloud storage backup function is started by the user, judging whether the function of the cloud storage backup target application program (including the related data of the cloud storage backup target application program) is started by the user or not so as to determine whether the cloud storage of the terminal backs up the target application program or not. By way of example, cloud storage may include iTunes or ituud.
Step 309, the terminal obtains the available storage amount of 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 acquire the available storage capacity 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 for indicating the target file type.
The explanation and implementation of step 310 may refer to the explanation and implementation of step 303, which is not described in detail in the embodiments of the present invention.
Step 311, the server 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 conforming to 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 the embodiments 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 the embodiments of the present invention.
Step 313, the server sends the deletion strategy to the terminal.
In step 314, the terminal performs a deletion operation on the target files locally stored in the terminal and conforming to the set attribute, where the target files conforming to the set attribute include 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 the embodiments of the present invention.
It should be noted that, before the terminal performs step 310, the method may further include: when the available storage amount of the cloud storage is smaller than the data amount threshold corresponding to the target file type, the terminal can display the insufficient space prompt information. The terminal can receive a second setting operation aiming at the insufficient space prompt information and generate a cloud storage closing instruction. And responding to the cloud storage closing instruction, and closing the function of the cloud storage backup target application program.
Optionally, the terminal may display a frame, where the frame includes insufficient space indication information. The bullet frame can be centered on a display interface of the terminal so as to achieve a striking reminding effect on a user. The second setting operation may include a click operation, a long press operation, a slide operation, or the like for the insufficient space cue information. For example, the "close" option in the bullet box that includes the insufficient space cue information. And after receiving clicking operation on the closing option, the terminal generates a cloud storage closing instruction. And responding to the cloud storage closing instruction, and 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 type 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 for indicating the target file type.
Optionally, the terminal may determine that the function of the cloud storage backup target application is not closed in response to the third setting input. The third setting input may be a click, long press, voice or other input for the target identifier. For example, the target identifier may be a "continue" option in the bullet box that includes the insufficient space cue information. After the terminal receives the click of the 'continue' option, the terminal responds to the third setting input to determine that the cloud storage backup target application program of the terminal is not closed (opened), and the processing request information is sent to the server.
In the embodiment of the present invention, the terminal may acquire the execution policy at the same time when executing the step 301. And when the terminal determines that the available storage amount is smaller than the data amount threshold corresponding to the target file type, determining the deletion strategy directly based on the target file type and the execution strategy. And further, executing deleting operation on the target file which accords with the set attribute. The steps 303 to 306 and the steps 310 to 313 do not need to be executed, so that interaction between the terminal and the server is reduced, and network overhead is reduced.
It should be noted that, before step 301, the application data processing method further includes a step related to the preparation stage. Fig. 4 is a flowchart of 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:
the preparation stage:
step 401, the server classifies target files in the target application program, and determines at least two file categories.
In the embodiment of the invention, the server can acquire the sandbox of the target application program and determine the target file in the sandbox. And classifying the target file to determine at least two file categories. Optionally, the server may obtain a sandbox of the target application through the script file, thereby determining at least two file categories. For example, in the development test phase of the target application, the server may obtain the target file in the sandbox of the target application through the script file.
Alternatively, the server may classify the target file in the target application in a variety of ways to determine at least two file categories. The following two examples are given as examples of the embodiments 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 a importance level of each target file of the target application according to a preset level classification condition.
The importance level of the target file is used to reflect the importance of the target file to the target application. Alternatively, the importance levels of the target file may include a first level, a second level, and a third level, which sequentially decrease in importance.
The first level is used to reflect the general importance of the target file to the target application. After deleting the target file corresponding to the first level, 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, cartoon files, etc. downloaded by the user using the target application.
The second level is used to reflect that the target file is of less importance to the target application. After deleting the target file corresponding to the second level, the target application program can normally run and has little 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 the time threshold. For example, the target file corresponding to the second level may include a cached data (including picture data) file loaded by a page, such as a jump page, in the application program for a short period of time.
The third level is used to reflect that the importance of the target file to the target application is low. The target file corresponding to the third level may be a file that is not perceived by the user. After deleting the target file corresponding to the third level, the target application program can normally run without affecting the use of the user. The target file corresponding to the third level may include a file or the like in which the user behavior log is recorded.
In the embodiment of the present invention, the process of determining the importance level of each target file of the target application program by the server according to the preset level dividing 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.
By way of example, assume that the importance levels of the target file include the first level, the second level, and the third level described above. For a target file corresponding to a first level: the path that the user uses to cache video, books, and cartoons, etc. files is typically a default or user-set fixed path. For the target file corresponding to the second level: the file types (extensions) storing such cached data are typically json, png, jpg, jpeg, and cache, i.e., the. Json, & png, & jpg, & jpeg, or. Cache files. For a target file corresponding to the third level: the file type in which such files are stored is typically log, i.e., typically log files.
The server may determine the importance level of each target file under the fixed path as the first level after the full function test is completed on the target application. The server may determine the importance level of the target file for both file type json, png, jpg, jpeg and cache as a second level. The server may determine the importance level of the target file having a file type of log as the third level.
In step 4012A, the server classifies the target file based on the importance level, determining at least two file categories.
Alternatively, the server may determine the target files of the same importance level as the same file category. By way of example, continuing with the above example, the importance levels of the target file include a first level, a second level, and a third level. The target files corresponding to the first level belong to one file class, the target files corresponding to the second level belong to one file class, and the target files corresponding to the third level belong to one file class. 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 the importance levels are respectively 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 for the target application program. The target file corresponding to the second file category at least comprises: page cache data file, target application program cache picture file and target application program cache video file. The target file corresponding to the third file category at least comprises: user behavior log files.
In the embodiment of the present invention, the server may further obtain a specific file of the target application program, where the specific file may include all files of the target application program, or may include a non-volatile file in the target application program. And determining the importance level of each specific file according to the preset level dividing condition. A second classification is performed on the particular file based on the importance level, and a second file classification is determined. At least two file categories are determined based on the second file category. At this time, the importance level may include a fourth level and a fifth level whose importance is sequentially lowered in addition to the above-described first level, second level, and third level. Wherein the importance of the fifth level is greater than the importance of the first level. The fourth level is used to reflect that the importance of the file to the target application is very high. After deleting the file corresponding to the fourth level, the target application program cannot run or runs and crashes. The files corresponding to the fourth level may include files of rights information of the application program design, and the like. The fifth level is used to reflect that the file is of higher importance to the target application. After deleting the file corresponding to the fifth level, the target application may be run, but the core function may be affected. The files corresponding to the fifth level may include files storing user identity information, etc., which may cause the user to fail to watch a membership (VIP) video, etc., after deletion.
The server may traverse each specific file of the target application program in turn, and then delete the traversed specific file to verify whether the target application program is operable. And when the target application program cannot run, determining the importance level of the specific file which is currently verified 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 a.plist file and a.db file (database file). Thus, the server may determine, as the fifth level, the importance levels of the specific files of which file types are plist and db, among the specific files.
Based on this, the importance levels are ordered in order of importance: fourth level (level a), fifth level (level B), first level (level C), second level (level B), and third level (level C). The server determines the target files with the same importance level as the same second file category, and then five second file categories can be determined. Since the specific files with the importance levels of the first level, the second level and the third level are 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 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 a importance level of each target file of the target application according to the preset level classification condition.
The explanation and implementation of step 4011B may refer to the explanation and implementation of step 4011A described above, which is not limited by the embodiments 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 determining at least two file categories may include:
the server determines an importance score for each target file based on the importance level and file size of the target file using a weighted average method. At least two file categories are then determined according to the importance scores. For example, after determining the importance scores of each target file, the server sorts the importance scores of all the target files, and determines the target files corresponding to the importance scores of the connection designated number as the same file category.
Alternatively, the server ranks all target files based on importance level and file size. And classifying the target files based on the sorting result, and determining file types. By way of example, the server orders all target files based on the order of importance level from high to low, and file size from large to small. And determining the target files belonging to the same importance level as the same file category in the sorting result.
In the embodiment of the present invention, the server may also obtain a specific file of the target application program, where the specific file may include all files of the target application program, or may include a non-volatile file in the target application program. And determining the importance level of each specific file according to the preset level dividing condition. The specific file is classified into a second file class based on the importance level and the file size. At least two file categories are determined based on the second file category. At this time, the importance levels may include the first level to the fifth level described above. Alternatively, after the specific file of the target application program is acquired, a hash table may be established with a storage path of the specific file as a Key (Key) and a file size of the specific file as a Value (Value).
Similarly, after determining the importance level of each specific file, the server classifies the specific files according to the importance level and the file size, and determines a second file class. 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 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 (two implementation methods for determining the file category described above), it is indicated that the higher the importance level, the more indispensable it is to the target application program the file corresponding to the file category determined. Then the data volume threshold corresponding to the file category is inversely related to the importance level of the target file corresponding to the file category.
For example, if the importance of the reflection of the first, second, and third levels decreases in order, the data amount thresholds corresponding to the first, second, and third levels decrease in order. For example, the first level corresponds to a data amount threshold of 500 megabytes (M). The second level corresponds to a data amount threshold of 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 category can be modified by personnel such as users, developers and the like 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 the actual requirements, and the user experience is improved.
Step 403, the server sends the data volume threshold corresponding to each file category to the electronic device.
In the embodiment of the invention, the server can send the data volume threshold corresponding to each file category in at least two file categories to the electronic equipment at the appointed moment. 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 of starting the target application, a time of entering the target interface, a time of closing the target application, a time of clicking the target button by the user, a set time, or the like. In practical applications, the data volume threshold corresponding to each file category may be determined by both the product personnel and the developer.
In summary, according to the application data processing method provided by the embodiment of the invention, by acquiring the data volume threshold corresponding to the file type to which the target file belongs in the target application and acquiring the available memory volume of the electronic device to which the target application belongs, when the available memory volume is smaller than the data volume threshold corresponding to the target file type, the deletion operation can be performed on the target file conforming to the set attribute in the local storage of the terminal, wherein the target file conforming to the set attribute comprises the target file corresponding to the target file type, so that the use of the storage resource of the local storage of the electronic device is controlled, the probability of overlarge storage resource occupied by the application program in the local storage is reduced, namely, the probability of overlarge storage space occupied by the application program is reduced. The problem that the 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, and the user retention rate and the user experience are improved. And because the deletion operation can be performed on different files based on the current actual available storage amount of the electronic device and the data amount threshold corresponding to the different file types. Therefore, the dynamic limit 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 obtained, so that when the available storage capacity is smaller than the data quantity threshold corresponding to the target file type, deleting operation can be performed on different target files which accord with the set attribute in the local storage of the terminal, the number of the target files which are backed up and stored in the cloud storage corresponding to the electronic equipment can be realized under the condition that the function of the cloud storage backup target application program is started, occupation of 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, namely the probability that the application program occupies too large storage space is reduced.
And, in the case where the number of file categories is at least two, since the deletion operation may be performed on the target files corresponding to the different file categories and conforming to the set attribute based on the current actual available storage amount of the electronic device and the data amount threshold corresponding to the different file categories, the electronic device deletion operation may include deleting the target files conforming to the set attribute. Therefore, the electronic equipment can dynamically reduce the occupation of the storage space by the target application program, dynamically limit the use of storage resources in a flexible way, and prevent the problem of larger storage space occupied by the application program.
Referring to fig. 5, a flowchart of yet another application data processing method according to an embodiment of the invention is shown. The application data processing method can be applied to the data processing system provided by the embodiment of the invention, and the embodiment shown in fig. 5 is illustrated by taking the dynamic limitation of the storage resources locally stored by the server as an example. As shown in fig. 5, the application data processing method may include:
limiting:
step 501, the server obtains a data amount threshold corresponding to a file category to which a target file belongs in a target application program.
Optionally, after the target application program is run, the server may respond to the setting operation to directly obtain the data amount threshold corresponding to the determined file type. The embodiment of the invention is described by taking at least two file categories as examples,
step 502, the server obtains the available memory space locally stored by the server where the target application program is located.
In step 503, when the available storage amount is smaller than the data amount threshold corresponding to the target file type, the server acquires a pre-stored deletion policy. The deletion strategy includes: and the file identification and/or deletion prompt information of the target file corresponding to the target file category and conforming to 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 target files corresponding to different file types and conforming to set attributes. The server may obtain a deletion policy in the pre-stored execution policy based on the execution policy and the target file type.
In the executing policy, the target file corresponding to any file category and meeting the set attribute may include: the any file category may correspond to one or more target files. Optionally, in the case that the file class is determined based on the importance level of the target file, the target file corresponding to any one file class and meeting the set attribute may further include: the file class of the target importance level corresponds to the target file, and the target importance level is lower than the importance level of any file class. Correspondingly, in the obtained deletion policy, the target file corresponding to the target file category and conforming to the set attribute may include: target files corresponding to the target file categories. Optionally, the target file may also include: the target importance level of the target file corresponding to the file class is lower than the importance level of the target file class.
For example, it is assumed that at least two file categories include a first file category, a second file category, and a third file category, and importance levels corresponding to the first file category, the second file category, and the third file category decrease in order. The target file corresponding to the first file category and conforming to the set attribute may at least include: the downloaded multimedia file is cached for the target application. The target file corresponding to the second file category and conforming to the set attribute may at least include: page buffer data file, target application buffer picture file and target application buffer video file. The target file corresponding to the third file category and conforming to the set attribute may at least include: user behavior log files.
In the embodiment of the present invention, the explanation and implementation of step 503 may refer to the relevant explanation and implementation of step 311 and step 312, which are not described in detail in the embodiment of the present invention.
Step 504, the server executes a deletion operation on the target files which are locally stored by the server and accord with the set attribute, wherein the target files accord with the set attribute comprise target files corresponding to the target file types.
Optionally, the implementation process of the deleting operation performed by the server on the locally stored target file meeting the set attribute may be multiple, and the following two embodiments of the present invention are described as examples.
In a first alternative implementation, the process of the server performing the deletion operation on the locally stored target file according to the set attribute may include the following step 5041A.
In step 5041A, the server may delete the locally stored target file that meets the set attribute.
In this way, the server can directly delete the target file meeting the set attribute in the local storage, so as to reduce the cloud space resource occupied by the target application program by directly deleting the target file.
In a second alternative implementation, the process of the server performing the deletion operation on the locally stored target file according to the set attribute may include the following step 5041B.
In step 5041B, the server may send a deletion hint to the terminal.
The server side sends deleting prompt information to the terminal through a wireless network connected with the terminal.
In step 5042B, the terminal displays a delete prompt.
After receiving the deletion prompt information sent by the server, the terminal. A delete prompt may be displayed. For example, the terminal may display a frame, where the frame includes deletion prompt information.
In step 5043B, the terminal receives the first setting operation for the deletion hint 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. For example, the user includes a pop-up window for deleting the prompt information, so that the terminal receives the click operation and generates a confirmation deleting instruction.
In step 5044B, the terminal sends a confirm deletion instruction to the server.
And the terminal sends a confirmation deleting instruction to the server through a wireless network connected with the server.
In step 5045B, the server deletes the target file locally stored by the server and conforming to the set attribute.
The confirmation deleting instruction is generated after the terminal receives a first setting operation aiming at the deleting prompt information and is sent to the server. And when the server receives the confirmation deleting instruction, the target file which is locally stored by the server and accords with the set attribute can be deleted in response to the confirmation deleting instruction.
Optionally, 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: and the server side executes the deleting operation on the target file corresponding to the target file identifier in the cloud storage based on the deleting strategy.
If the deletion policy includes the deletion prompt information, the server may execute the deletion operation on the locally stored target file according with the set attribute in the second optional implementation manner. If the deletion policy does not include the deletion prompt information, the server may execute the deletion operation on the locally stored target file according with the set attribute in the first alternative implementation manner.
In the embodiment of the present invention, the explanation and implementation of step 504 may refer to the explanation and implementation of step 314, which is not described in detail herein.
In summary, according to the application data processing method provided by the embodiment of the invention, by acquiring the data volume threshold corresponding to the file type to which the target file belongs in the target application and acquiring the available memory volume of the cloud storage corresponding to the terminal to which the target application belongs, when the available memory volume is smaller than the data volume threshold corresponding to the target file type, the deletion operation can be performed on different target files conforming to the set attribute in the local storage of the terminal, so that the number of target files backed up and stored in the cloud storage corresponding to the electronic device can be realized under the condition that the function of the cloud storage backup target application is started, the occupation of memory resources of the cloud storage can be reduced, and the probability of overlarge memory space occupied by the application can be reduced. The problem that the 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, and the user retention rate and the user experience are improved. And in the case where the number of file categories is at least two, since the deletion operation can be performed on different files based on the current available storage amount of the cloud storage of the electronic device and the data amount threshold corresponding to the different file categories. Therefore, dynamic limitation of 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 application, a video application program of ios is taken, and the terminal dynamically limits the storage resources of two storage spaces of local storage and cloud storage of the video application program, so that the application program data processing method provided by the embodiment of the invention is described again.
The sandbox of the ios application includes all files of the application. In the embodiment of the invention, the file identifier of the target file in the application program can be a storage path of the file relative to the sandbox. The target application is App1. As shown in fig. 6, the sandbox of App1 has information of the name, date of modification, size, and kind of folder. The sandbox comprises four names of folders, which are respectively: documents (Documents), materials (Library), system data (SystemData), and temporary Documents (tmp).
Among them, files (Documents) typically store file data created in programs of application programs or browsed thereto. As shown in fig. 7, folders (folders named files) may include folders such as those named CoaoaSettings (Coaoa is a native object-oriented application programming interface created by apple corporation for Mac OS X), participants (players), and the like. As shown in fig. 8, general attributes among 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.
Default setting information or other status information of an application is typically stored in a profile (Library). As shown in FIG. 9, folders such as the names BI, caches (Caches), preferences, and the like may be included under the material folder. Wherein the cache folder typically stores cache files of the application program. Files under the folder (directory) are not deleted as the application exits. However, typically cloud storage (e.g., iTunes or iCloud) does not back up files under the folder. The preference folder typically stores information stored by a user default folder. The information in the preference folder is not deleted as the application exits. The setting data written through NSUserDefaults (a programming interface interacting with the default system) are all saved in a file G with a file type of 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, general attributes among attributes of the profile folder 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 data folder is 2252442159 bytes.
System data (SystemData) is generally stored with system data. The system data folder has no externally exposed interface, so that files in the system data folder cannot be modified and deleted.
The temporary file (tmp) is typically stored with temporary files created on the fly. When the terminal is restarted, the temporary file folder (folder named temporary file) deletes all files with file type tmp. The files in the temporary file folder are usually tmp in file type. Therefore, the embodiment of the invention can eliminate the 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 folder and the profile folder. After acquiring all the files, the server can establish a hash table based on the files, wherein the key words in the hash table are file paths of the specific files, and the values are occupied space sizes, namely the file sizes of the specific files.
In the embodiment of the invention, after the specific file is acquired, the server side can determine the importance level and the file size of the acquired specific file and generate the file table. Wherein, the importance levels are assumed to include the first level to the fifth level (i.e., a level to E level) described above. Suppose that the specific files acquired by the server are 10, namely, files 1 to 10. Referring to table 1, table 1 includes a file name, a file size, and an importance level. A file with a file name of "file 1.Plist" has an importance level of a class (abbreviated as a) and a file size of 1M. The file name is "file 2.Plist", its importance level is level B (abbreviated as B), and its file size is 5M.
TABLE 1
File name Importance level File size
File 1.Plist A 1M
File 2.Plist B 5M
File 3.Video C 800M
File 4.Json D 20M
File 5.Log E 5M
File 6.Json D 80M
File 7.Log E 10M
File 8.Jpg D 10M
File 9.Video C 700M
File 10.Json D 15M
The service end sorts the specific files based on importance level and file size. And the server orders all the specific files based on the order from high importance level to low importance level and the order from large file size to small file size to obtain an ordering result. The sorting results are shown in table 2. The table 2 includes importance levels and file names. File name "file 1.Plist", the file size of this file 1 is 1M. Importance level is a.
TABLE 2
The server determines a data amount threshold for each file category based on the importance level classification. 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 C-rank, D-rank, and E-rank is determined as the file category of the target file program. That is, 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.
The product personnel and the developer jointly determine that the data volume thresholds of three file categories corresponding to the C level, the D level and the E level in sequence are 300M, 500M and 700M. And assuming that the processing operation corresponding to the file category of the C level is determined 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 class D of the file is deleting the target file corresponding to the class D. The processing operation corresponding to the file category of the E level is deleting the target file corresponding to the E level.
Limiting:
the terminal starts the target application program. When the terminal starts the target application program, the server sends the data quantity thresholds which sequentially correspond to the C level, the D level and the E level to the terminal through a starting interface connected with the terminal, wherein the data quantity thresholds are 300M, 500M and 700M. The terminal can acquire the data quantity threshold corresponding to the C grade, the D grade and the E grade.
The available memory amount of the local storage obtained by the terminal is 400M. Because 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 type is the file type corresponding to the D level. The terminal transmits processing request information including the data amount threshold 500M to the server. And receiving a deleting strategy issued by the server, wherein the deleting strategy comprises a storage path of the target file corresponding to the grade D. And after receiving the deleting strategy, the terminal deletes the target file corresponding to the D grade based on the storage path of the target file corresponding to the D grade.
The terminal determines whether the user opens the cloud storage backup function and determines the function of the cloud storage backup target application program. The available memory capacity of cloud storage acquired by the terminal is 200M. Because 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 type is the file type corresponding to the C level. The terminal displays insufficient space prompt information, wherein the insufficient space prompt information is used for prompting that the available storage capacity of cloud storage is insufficient, and the function of the cloud storage backup target application program is closed. And when the function of the terminal cloud storage backup target application program is not closed, sending processing request information comprising the data quantity threshold 300M 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 deleting prompt information.
Referring to fig. 12, a schematic structural diagram of an application data processing apparatus according to an embodiment of the invention is shown. As shown in fig. 12, the application data processing apparatus 1300 includes:
the obtaining module 1201 is configured to obtain a data amount threshold corresponding to a file type to which the target file belongs in the target application program, and an available storage amount of the electronic device in which the target application program is located.
And the execution module 1202 is configured to execute a deletion operation on a target file locally stored in the electronic device and conforming to the set attribute when the available storage amount is smaller than a data amount threshold corresponding to the target file type, where the target file conforming to the set attribute includes a target file corresponding to the target file type.
Optionally, the execution module 1202 is further configured to delete the target file that meets the set attribute.
Optionally, the execution module 1202 is further configured to:
executing the pushing of the deleting prompt information;
and deleting the target file conforming to the set attribute in response to a confirmation deleting instruction, wherein the confirmation deleting instruction is generated based on the deleting 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 corresponding to the target file category and conforming to the set attribute, wherein the deletion strategy is pre-stored information or the deletion strategy is information received from the server.
The execution module 1202 is further configured to execute a deletion operation on the target file that meets the set attribute based on the deletion policy.
Optionally, the file category is determined based on the importance level of the target file, and the target file conforming to the set attribute further includes: the importance level of the target file is lower than that of the corresponding target file of the file class of the target importance level, and the target importance level is the importance level of the target file class.
Optionally, the execution module 1202 is further configured to: and executing deleting operation on the target file with the set data quantity in the target files conforming to the set attribute, wherein the set data quantity is inversely related to the data quantity threshold.
Optionally, the execution module 1202 is further configured to: and executing deleting operation on a first number of first target files and a second number of second target files which accord with the set attribute, wherein the first target files are target files corresponding to target file types, the second target files are target files corresponding to file types with importance levels lower than the target importance levels, and the first number is smaller than the second number.
Optionally, the target file according with 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 in the case that the file categories are determined based on the importance levels of the target files, the data volume threshold corresponding to the file categories is inversely related to 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 summary, in the application data processing apparatus provided in the embodiment of the present invention, the acquiring module acquires the data amount threshold corresponding to the file type to which the target file belongs in the target application, and acquires the available storage amount of the electronic device in which the target application is located. The execution module can execute the deletion operation on the target files which are locally stored by the electronic equipment and accord with the set attribute when the available storage capacity is smaller than the data capacity threshold corresponding to the target file type, wherein the target files accord with the set attribute comprise the target files corresponding to the target file type, the use of storage resources of the electronic equipment is controlled, the probability of overlarge storage resources occupied by application programs is reduced, namely the probability of overlarge storage space occupied by the application programs is reduced. The problem that the 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, and the user retention rate and the user experience are improved. And in the case that the number of file types is two or more, since the deletion operation can be performed on different files based on the current actual available storage amount of the terminal and the data amount threshold corresponding to the different file types. Therefore, the dynamic limit 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, includes a processor 1301, a communication interface 1302, a memory 1303, and a communication bus 1304, wherein the processor 1301, the communication interface 1302, the memory 1303 complete communication with each other through the communication bus 1304,
a memory 1303 for storing a computer program;
processor 1301, when executing the program stored in memory 1303, implements the following steps: responding to the setting operation, and determining a data quantity threshold value corresponding to each file type in at least two file types to which the target file belongs in the target application program; acquiring the available memory space of a terminal where a target application program is located; and when the available storage amount is smaller than the data amount 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 execute the program stored in the memory 1303, and implement the following steps: classifying target files in the 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 quantity threshold value corresponding to each file type to the terminal.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The memory may include random access memory (Random Access Memory, RAM) or 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 aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In a further embodiment of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, which when executed by a processor of a terminal, performs the steps of the application data processing method according to any of the above embodiments. Or when the computer program is executed by a processor of the server, the steps executed by the server in the application data processing method according to any one of the above embodiments are executed.
In yet another embodiment of the present invention, a computer program product containing instructions, which when executed on a computer, causes the computer to perform the steps performed by the terminal in the application data processing method according to any one of the foregoing embodiments, or perform the steps performed by the server in the application data processing method according to any one of the foregoing embodiments, is also provided.
In the above embodiments, it may be implemented in whole or in part 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, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more 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)), etc.
It is noted that relational terms such as first and second, and the like are 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. Also, the term "and/or" means and or. For example, "a and/or B" means: A. b and three cases 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (12)

1. A method of application data processing, 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 memory volume of electronic equipment in which the target application program is located;
when the available storage amount is smaller than a data amount threshold corresponding to a target file category, deleting the target file which is locally stored by the electronic equipment and accords with the set attribute, wherein the target file which accords with the set attribute comprises a target file corresponding to the target file category;
the file category is determined based on the importance level of the target file, and the target file conforming to the set attribute further comprises:
the method comprises the steps that an importance level is lower than a target importance level of a target file corresponding to a file class of the target importance level, wherein the target importance level is the importance level of the target file class; the importance level of the target file is also used for reflecting the importance of the target file to the target application program.
2. The method of claim 1, wherein the performing a delete operation on the target file locally stored by the electronic device that meets the set attribute comprises:
and deleting the target file conforming to the set attribute.
3. The method of claim 1, wherein the performing a delete operation on the target file locally stored by the electronic device that meets the set attribute comprises:
executing the pushing of the deleting prompt information;
and deleting the target file conforming to the set attribute in response to a confirmation deleting instruction, wherein the confirmation deleting instruction is generated based on the deleting prompt information.
4. The method of claim 3, wherein prior to said performing a delete operation on a target file stored locally on said electronic device that meets a set attribute, the method further comprises:
obtaining a deletion strategy, wherein the deletion strategy comprises the following steps: the file identification and/or the deletion prompt information of the target file corresponding to the target file category and conforming to the set attribute, wherein the deletion strategy is pre-stored information or information received from a server;
the deleting operation is performed on the target file which is locally stored by the electronic equipment and accords with the set attribute, and the deleting operation comprises the following steps: and executing the deleting operation on the target file conforming to the set attribute based on the deleting strategy.
5. The method of claim 1, wherein the performing a delete operation on the target file locally stored by the electronic device that meets the set attribute comprises:
and executing deleting operation on the target file with the set data quantity in the target files conforming to the set attribute, wherein the set data quantity is inversely related to the data quantity threshold.
6. The method of claim 1, wherein the performing a delete operation on the target file locally stored by the electronic device that meets the set attribute comprises:
and executing deleting 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 attribute, wherein the first target files are target files corresponding to the target file types, the second target files are target files corresponding to file types with importance levels lower than the target importance levels, and the first number is smaller than the second number.
7. The method of claim 1, wherein the target file conforming to the set attribute comprises at least one of:
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.
8. The method of claim 1, wherein the number of file categories is a plurality, and wherein the threshold amount of data corresponding to the file category is inversely related to the importance level of the target file corresponding to the file category if the file category is determined based on the importance level of the target file.
9. The method of claim 1, wherein the available storage of the electronic device comprises available storage of local storage of the electronic device and/or available storage of cloud storage corresponding to the electronic device.
10. An application data processing apparatus, the 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 volume of electronic equipment in which the target application program is located;
the execution module is used for executing deleting operation on the target files which are locally stored by the electronic equipment and accord with the set attribute when the available storage amount is smaller than the data amount threshold corresponding to the target file type, wherein the target files accord with the set attribute comprise the target files corresponding to the target file type; the file category is determined based on the importance level of the target file, and the target file conforming to the set attribute further comprises: the method comprises the steps that an importance level is lower than a target importance level of a target file corresponding to a file class of the target importance level, wherein the target importance level is the importance level of the target file class; the importance level of the target file is also used for reflecting the importance of the target file to the target application program.
11. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1-9 when executing a program stored on a memory.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-9.
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 CN112817923A (en) 2021-05-18
CN112817923B true 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN111984601A (en) * 2020-08-31 2020-11-24 深圳壹账通智能科技有限公司 Log file deleting method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10108626B2 (en) * 2014-09-03 2018-10-23 Verizon Patent And Licensing Inc. Proactively clearing digital storage
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
CN109582642A (en) * 2018-11-08 2019-04-05 网宿科技股份有限公司 File memory method, delet method, server and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10437470B1 (en) * 2015-06-22 2019-10-08 Amazon Technologies, Inc. Disk space manager
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
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
CN112817923A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
US9952753B2 (en) Predictive caching and fetch priority
CN107832100B (en) APK plug-in loading method and terminal thereof
US9836346B2 (en) Error troubleshooting using a correlated knowledge base
CN109005056B (en) CDN application-based storage capacity evaluation method and device
CN109542361B (en) Distributed storage system file reading method, system and related device
CN110166523B (en) Content updating method, device, equipment and computer readable storage medium
CN110677684B (en) Video processing method, video access method, distributed storage method and distributed video access system
US20160092441A1 (en) File Acquiring Method and Device
CN111694639A (en) Method and device for updating address of process container and electronic equipment
CN114816240A (en) Data writing method and data reading method
CN109032693B (en) Method and device for loading display information, electronic equipment and readable storage medium
CN112817923B (en) Application program data processing method and device
CN110427394B (en) Data operation method and device
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
CN112115521A (en) Data access method and device
CN110223108B (en) Click through rate prediction method, device and equipment
CN114637946A (en) Resource data processing method and device and electronic equipment
CN110888690A (en) Application starting method and device, electronic equipment and storage medium
CN110597576B (en) File remark processing method and system
CN110968888B (en) Data processing method and device
CN111625500A (en) File snapshot method and device, electronic equipment and storage medium
CN110427525B (en) Data access method and device
CN112035119B (en) Data deleting method and device
CN108762871B (en) Page component preloading method and device and display terminal

Legal Events

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