CN106339470B - File processing method and device - Google Patents

File processing method and device Download PDF

Info

Publication number
CN106339470B
CN106339470B CN201610751430.6A CN201610751430A CN106339470B CN 106339470 B CN106339470 B CN 106339470B CN 201610751430 A CN201610751430 A CN 201610751430A CN 106339470 B CN106339470 B CN 106339470B
Authority
CN
China
Prior art keywords
app
running
target
condition
target app
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
CN201610751430.6A
Other languages
Chinese (zh)
Other versions
CN106339470A (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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610751430.6A priority Critical patent/CN106339470B/en
Publication of CN106339470A publication Critical patent/CN106339470A/en
Application granted granted Critical
Publication of CN106339470B publication Critical patent/CN106339470B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • 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

Abstract

The disclosure provides a file processing method and a file processing device, wherein the method comprises the following steps: inquiring an application running information list, and acquiring the running condition of an application program App installed on the terminal; determining a target App meeting a cleaning condition according to the running condition of the App; and deleting the decompressed application starting file corresponding to the target App in the local storage space. According to the method and the device, the terminal automatically cleans the local storage space based on the operating condition of the App, the application starting file is prevented from occupying the local storage space, the size of the available space is increased, the operating speed of the terminal is improved, and the user experience is improved.

Description

File processing method and device
Technical Field
The present disclosure relates to the field of communications, and in particular, to a file processing method and apparatus.
Background
In the related art, in order to accelerate the starting speed of the starting process of an Application (App) on a terminal, the terminal may decompress a compressed file corresponding to the App and store a file for starting the App in a preset directory. Therefore, when the App is started next time, the file is directly read from the preset directory.
However, storing the file in the preset directory may occupy a storage space of the terminal, and as the number of the apps installed increases, the occupied storage space also increases, which may reduce the storage space available to the user and slow down the operation speed of the terminal.
Disclosure of Invention
In view of the above, the present disclosure provides a file processing method and apparatus to solve the deficiencies in the related art.
According to a first aspect of embodiments of the present disclosure, there is provided a file processing method, the method including:
inquiring an application running information list, and acquiring the running condition of an application program App installed on the terminal;
determining a target App meeting a cleaning condition according to the running condition of the App;
and deleting the decompressed application starting file corresponding to the target App in the local storage space.
Optionally, the operating condition includes: the method comprises the following steps that the running time of an App is determined, and the target App meeting the cleaning condition is determined according to the running condition of the App, and comprises the following steps:
acquiring the last running time of the App installed on the terminal based on the acquired running time information of the App;
and determining the App with the last running time earlier than the current time by a preset time period as the target App.
Optionally, the operating condition includes: the method includes the following steps that the running times of an App are determined, and the target App meeting the cleaning condition is determined according to the running condition of the App, and comprises the following steps:
and determining the App with the running times less than a preset value as a target App based on the acquired running time information of the App.
Optionally, the operating condition includes: the method comprises the following steps that the running times and running time of an App are determined, and the target App meeting the cleaning condition is determined according to the running condition of the App, and comprises the following steps:
searching out the App to be selected with the running times less than a preset value based on the obtained running time information of the App;
determining the last running time of the App to be selected based on the obtained running time information of the App;
and determining the to-be-selected App with the last running time earlier than the current time within a preset time period as the target App.
Optionally, after deleting the decompressed application start file corresponding to the target App from the local storage space, the method further includes:
when the target App is determined to meet the storage condition, decompressing an installation file corresponding to the target App, and extracting the application starting file;
and storing the application starting file in the local storage space.
Optionally, determining that the target App satisfies a storage condition in the following manner:
detecting that the target App is started again; or
And determining that the target running times of the target App exceed a preset value.
According to a second aspect of the embodiments of the present disclosure, there is provided a document processing apparatus including:
the acquisition module is configured to query the application running information list and acquire the running condition of the application program App installed on the terminal;
the determining module is configured to determine a target App meeting the cleaning condition according to the running condition of the App;
and the file deleting module is configured to delete the decompressed application starting file corresponding to the target App in the local storage space.
Optionally, the operating condition includes: app runtime, the determining module comprising:
the obtaining submodule is configured to obtain the last running time of the App installed on the terminal based on the obtained running time information of the App;
the first determining submodule is configured to determine the App with the last running time earlier than the current time by a preset time period as the target App.
Optionally, the operating condition includes: app running times, wherein the determining module comprises:
and the second determining submodule is configured to determine the App with the running time less than the preset value as the target App based on the acquired running time information of the App.
Optionally, the operating condition includes: app's number of times of operation and runtime, the module of confirming includes:
the searching submodule is configured to search out the to-be-selected App with the running times smaller than a preset value based on the obtained running time information of the App;
the third determining submodule is configured to determine the last running time of the to-be-selected App based on the obtained running time information of the App;
and the fourth determination submodule is configured to determine the candidate App with the last running time earlier than the current time within a preset time period as the target App.
Optionally, the apparatus further comprises:
the file extraction module is configured to decompress an installation file corresponding to the target App and extract the application starting file when the target App is determined to meet the storage condition;
and the storage module is configured to store the application starting file in the local storage space.
Optionally, the file extraction module includes:
the detection sub-module is configured to detect that the target App starts again; or
A fifth determination submodule configured to determine that a target number of times of operation of the target App exceeds a predetermined value.
According to a third aspect of the embodiments of the present disclosure, there is provided a document processing apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
inquiring an application running information list, and acquiring the running condition of an application program App installed on the terminal;
determining a target App meeting a cleaning condition according to the running condition of the App;
and deleting the decompressed application starting file corresponding to the target App in the local storage space.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the terminal can determine the target App meeting the cleaning condition according to the running condition of the App installed on the terminal. And then deleting a target file corresponding to the target App in a local storage space. And the target file is a decompressed application starting file corresponding to the target App. Through the process, the terminal automatically cleans the local storage space based on the running condition of the App, the application starting file is prevented from occupying the local storage space, the size of the available space is increased, the running speed of the terminal is improved, and the user experience is improved.
In the embodiment of the disclosure, if the last time of an App is earlier than the current time by a predetermined time period, that is, the user has not run the App for a long time period, the App is determined as a target App meeting the cleaning condition. Or, if the running times of a certain App is less than a predetermined value, that is, the frequency of running the App by the user is low, the App may also be determined as the target App. Through the process, the target App meeting the cleaning condition can be accurately determined based on the running condition of the App, so that the application starting file is prevented from occupying a local storage space.
In the embodiment of the disclosure, the App to be selected with the running times less than the predetermined value can also be searched first. And then determining the App with the last running time earlier than the target App in the preset time period of the current time in the to-be-selected App according to the running time information of the App. Through the process, the target App is determined based on the running times and the last running time of the App in the running condition, and the situation that the local storage space is occupied by the application starting file is avoided. Increasing the amount of available space.
In the embodiment of the present disclosure, after deleting the decompressed application start file corresponding to the target App in the local storage space, if the terminal operates the target App again or the target operation frequency of the target App exceeds a predetermined value, the installation file corresponding to the target App may be decompressed, the application start file may be extracted, and the obtained application start file may be stored in the local storage space. Through the process, the starting speed of the target App started by the user next time can be increased under the condition that the target App is started again or the running times are increased, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flowchart illustrating a method of file processing according to an exemplary embodiment of the present disclosure;
FIG. 2 is a flow diagram of another file processing method shown in the present disclosure in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating another file processing method according to an exemplary embodiment of the present disclosure;
FIG. 4 is a flowchart of another file processing method shown in the present disclosure according to an exemplary embodiment;
FIG. 5 is a block diagram of a document processing device, shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 6 is a block diagram of another document processing device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 7 is a block diagram of another document processing device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 8 is a block diagram of another document processing device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 9 is a block diagram of another document processing device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 10 is a block diagram of another document processing device shown in accordance with an exemplary embodiment of the present disclosure;
fig. 11 is a schematic view of a structure for a document processing apparatus according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as operated herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
The file processing method provided by the embodiment of the disclosure can be applied to a terminal, such as a smart phone, a tablet computer, a Personal Digital Assistant (PDA), and the like. As shown in fig. 1, fig. 1 is a file processing method according to an exemplary embodiment, including the following steps:
in step 101, an application running information list is queried, and the running condition of the application program App installed on the terminal is obtained.
In this disclosure, optionally, the running information list is a list recording running conditions of all apps pre-installed on the terminal. The terminal may obtain the operation information list before performing step 101. The operating conditions may include: the running time and/or running times of App.
Optionally, the terminal may record the running time of any App when the user runs the App according to the related art, and the terminal only needs to record the last running time of the App. Further, it is recorded in the operation information list according to the related art.
Optionally, when detecting that the user runs a certain App, the terminal adds 1 to the number of times that the App is run, and records the obtained number of times of running into the running information list.
When the running condition includes the running time of the App, the application running information list is shown in table 1.
TABLE 1
App identification Last run time
App1 7 month, 3 days, 5:00
App2 7 month, 4 days 13:05
App3 6 months, 30 days, 20:06
…… ……
When the running condition includes the running times of the App, the application running information list is shown in table 2
TABLE 2
App identification Number of runs
App1 3
App2 5
App3 1
…… ……
Of course, the running condition may also include the running time and the running frequency of the App at the same time, and correspondingly, the application running information list is shown in table 3.
TABLE 3
App identification Last run time Number of runs
App1 7 month, 3 days, 5:00 3
App2 7 month, 4 days 13:05 5
App3 6 months, 30 days, 20:06 1
…… …… ……
In this step, the terminal may query the operation information list according to a related technique, so as to obtain the operation condition.
In step 102, a target App meeting the cleaning condition is determined according to the running condition of the App.
When the running condition includes the running time of the App, optionally, step 102 is as shown in fig. 2, and fig. 2 is another file processing method shown on the basis of the foregoing embodiment shown in fig. 1, including the following steps:
in step 102-1, the last running time of the App installed on the terminal is acquired based on the acquired running time information of the App.
In this step, the terminal may obtain the last operation time based on the operation time information of the App in table 1.
In step 102-2, the App with the last running time earlier than the current time by a predetermined time period is determined as the target App.
In this step, the terminal determines the App which is not run by the user for a long period of time as the target App. Namely, the App with the last running time earlier than the current time by a preset time period is directly the target App.
For example, if the current time is 7 months, 4 days, 14:00 and the predetermined time period is 130 hours, then it can be determined in table 1 that App with the last running time earlier than the current time by the predetermined time period is App 3. In the embodiment of the present disclosure, App3 is the target App.
When the operation condition includes the operation times of the App, the terminal may determine, as the target App, the App with a smaller operation time, that is, the App with an operation time less than a predetermined value, based on the operation time information of the App acquired from table 2.
For example, if the predetermined value is 2, it may be determined in table 2 that App with the running times less than the predetermined value is App3, that is, the target App.
When the running condition includes the running times and the running time of the App at the same time, step 102 is as shown in fig. 3, and fig. 3 is another file processing method shown on the basis of the foregoing embodiment shown in fig. 1, including the following steps:
in step 102-1', the to-be-selected App with the running times less than the preset value is found out based on the obtained running time information of the App.
In this step, based on the operation time information, the App with the operation time less than the predetermined value may be found in table 3, and the App is used as the App to be selected. The number of apps to be selected may be multiple.
In step 102-2', the last running time of the App to be selected is determined based on the obtained running time information of the App.
In this step, after determining the App to be selected, the last operation time of the App to be selected may be determined based on the operation time information, respectively.
In step 102-3', the selected App with the last running time earlier than the current time within a predetermined time period is determined as the target App.
In this step, the App with the last running time earlier than the current time within a predetermined time period in the App to be selected is taken as the target App.
For example, if the predetermined value is 4, it may be determined in table 3 that apps having a running number less than the predetermined value are App1 and App3, that is, the apps to be selected are. If the current time is 7 months, 4 days, 14:00 and the predetermined time period is 130 hours, it can be determined that the App with the last running time earlier than the current time by the predetermined time period is App3 from among the apps to be selected. In the embodiment of the present disclosure, App3 is the target App.
In the embodiment of the present disclosure, the number of the target apps determined in the above manner may be multiple.
In step 103, the decompressed application start file corresponding to the target App is deleted from the local storage space.
Optionally, the application start file is a file that the App needs to call in the start process, and is stored in a preset directory in the local storage space.
In this step, after determining the target App, the terminal may search for and delete the decompressed application start file corresponding to the target App in the preset directory according to a related technique.
For example, determining App3 as the target App in table 1 or table 2, and the terminal finds and deletes the application start file corresponding to App3 in the preset directory in the local storage space.
In the above embodiment, the terminal automatically cleans the local storage space based on the App running condition, so that the application start file is prevented from occupying the local storage space, the size of the available space is increased, the running speed of the terminal is increased, and the user experience is improved.
If the application start file is deleted, when the user uses the target App again, the speed of running the target App becomes slow. In order to solve this problem, optionally, the file processing method is as shown in fig. 4, where fig. 4 is another file processing method shown on the basis of the foregoing embodiment shown in fig. 1, and further includes the following steps:
in step 104, when it is determined that the target App meets the storage condition, decompressing an installation file corresponding to the target App, and extracting the application start file.
In this step, after the application start file is deleted, optionally, when the terminal detects that the target App is restarted according to the related technology, or the terminal queries the application running information list again, and determines that the target running frequency of the target App exceeds the predetermined value, the installation file corresponding to the target App may be decompressed according to the related technology, so as to extract the application start file for starting the target App.
In step 105, the application start file is stored in the local storage space.
In this step, the terminal stores the obtained application start file into the preset directory of the local storage space again. Therefore, when the user restarts the target App next time, the starting speed can be increased, and the user experience is improved.
For example, after the application start file corresponding to App3 is deleted, if it is detected that the user starts App3 again, the terminal may decompress the installation file of App3, extract the application start file, and store the application start file in the preset directory of the local storage space again.
Or after the terminal deletes the application start file corresponding to App3, if it is detected that the user starts App3 again, the running time of App3 is increased by 1, and then table 2 or table 3 is updated. Assuming that the predetermined value is 4, the current App3 is run for 2 times, and if the predetermined value is less than the predetermined value, the application start file does not need to be extracted. And extracting the application starting file and storing the application starting file in the preset directory of the local storage space until the times that the user runs the App3 exceed the preset value.
In the above embodiment, after deleting the decompressed application start file corresponding to the target App in the local storage space, if the terminal operates the target App again or the target operation frequency of the target App exceeds a predetermined value, the installation file corresponding to the target App may be decompressed, the application start file may be extracted, and the obtained application start file may be stored in the local storage space. Through the process, the starting speed of the target App started by the user next time can be increased under the condition that the target App is started again or the running times are increased, and the user experience is improved.
Corresponding to the foregoing method embodiments, the present disclosure also provides embodiments of an apparatus.
As shown in fig. 5, fig. 5 is a block diagram of a file processing apparatus according to an exemplary embodiment of the present disclosure, including:
the obtaining module 210 is configured to query the application running information list and obtain the running condition of the application program App installed on the terminal;
the determining module 220 is configured to determine a target App meeting the cleaning condition according to the running condition of the App;
a file deleting module 230 configured to delete the decompressed application start file corresponding to the target App in the local storage space.
As shown in fig. 6, fig. 6 is a block diagram of another file processing apparatus shown in the present disclosure according to an exemplary embodiment, where on the basis of the foregoing embodiment shown in fig. 5, the operation condition includes: app runtime, the determining module 220 includes:
the obtaining submodule 221 is configured to obtain the last running time of the App installed on the terminal based on the obtained running time information of the App;
a first determination sub-module 222 configured to determine, as the target App, an App whose last operation time is earlier than the current time by a predetermined time period.
As shown in fig. 7, fig. 7 is a block diagram of another file processing apparatus shown in the present disclosure according to an exemplary embodiment, where on the basis of the foregoing embodiment shown in fig. 5, the operation condition includes: app running times, the determining module 220 includes:
and a second determining sub-module 223 configured to determine, as the target App, an App whose operation number is less than a predetermined value based on the acquired operation number information of the App.
As shown in fig. 8, fig. 8 is a block diagram of another file processing apparatus shown in the present disclosure according to an exemplary embodiment, where on the basis of the foregoing embodiment shown in fig. 5, the operation condition includes: app running times and running time, the determining module 220 includes:
the searching submodule 224 is configured to search out the App to be selected, of which the running times are less than a preset value, based on the obtained running time information of the App;
a third determining submodule 225, configured to determine, based on the obtained running time information of the App, the last running time of the App to be selected;
a fourth determination submodule 226 configured to determine the candidate App whose last operation time is earlier than the current time by a predetermined time period as the target App.
As shown in fig. 9, fig. 9 is a block diagram of another file processing apparatus according to an exemplary embodiment, where on the basis of the foregoing embodiment shown in fig. 5, the apparatus further includes:
the file extraction module 240 is configured to decompress an installation file corresponding to the target App and extract the application start file when it is determined that the target App meets the storage condition;
a storing module 250 configured to store the application start-up file in the local storage space.
As shown in fig. 10, fig. 10 is a block diagram of another file processing apparatus shown in the present disclosure according to an exemplary embodiment, on the basis of the foregoing embodiment shown in fig. 9, the file extracting module 240 includes:
a detection submodule 241 configured to detect that the target App starts again;
a fifth determining sub-module 242 configured to determine that the target number of running times of the target App exceeds a predetermined value.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Correspondingly, the present disclosure also provides a file processing apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
inquiring an application running information list, and acquiring the running condition of an application program App installed on the terminal;
determining a target App meeting a cleaning condition according to the running condition of the App;
and deleting the decompressed application starting file corresponding to the target App in the local storage space.
Fig. 11 is a schematic configuration diagram illustrating a document processing apparatus according to an exemplary embodiment. As shown in fig. 11, a document processing apparatus 1100 is shown according to an exemplary embodiment, and the apparatus 1100 may be a computer, a mobile phone, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
Referring to fig. 11, apparatus 1100 may include one or more of the following components: processing component 1101, memory 1102, power component 1103, multimedia component 1104, audio component 1105, input/output (I/O) interface 1106, sensor component 1107, and communication component 1108.
The processing component 1101 generally controls the overall operation of the device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1101 may include one or more processors 1109 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1101 can include one or more modules that facilitate interaction between the processing component 1101 and other components. For example, the processing component 1101 can include a multimedia module to facilitate interaction between the multimedia component 1104 and the processing component 1101.
The memory 1102 is configured to store various types of data to support operation at the device 1100. Examples of such data include instructions for any application or method operating on device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1102 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1103 provides power to the various components of the device 1100. The power components 1103 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 1100.
The multimedia component 1104 includes a screen that provides an output interface between the device 1100 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1104 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1100 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1105 is configured to output and/or input audio signals. For example, audio component 1105 may include a Microphone (MIC) configured to receive external audio signals when apparatus 1100 is in an operational mode, such as a call mode, recording mode, and voice recognition mode. The received audio signals may further be stored in memory 1102 or transmitted via communications component 1108. In some embodiments, audio component 1105 further includes a speaker for outputting audio signals.
The I/O interface 1106 provides an interface between the processing component 1101 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor component 1107 includes one or more sensors to provide various aspects of state estimation for device 1100. For example, sensor component 1107 may detect the open/closed state of device 1100, the relative positioning of components, such as a display and keypad of device 1100, sensor component 1107 may also detect a change in the position of device 1100 or a component of device 1100, the presence or absence of user contact with device 1100, changes in the orientation or acceleration/deceleration of device 1100, and changes in the temperature of device 1100. Sensor assembly 1107 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. Sensor assembly 1107 may also include a photosensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1107 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1108 is configured to facilitate communications between the apparatus 1100 and other devices in a wired or wireless manner. The apparatus 1100 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1108 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1108 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1102 comprising instructions, executable by the processor 1109 of the apparatus 1100 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Wherein the instructions in the storage medium, when executed by the processor, enable the apparatus 1100 to perform the file processing method described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (11)

1. A method of file processing, the method comprising:
inquiring an application running information list, and acquiring the running condition of an application program App installed on the terminal;
determining a target App meeting a cleaning condition according to the running condition of the App;
deleting the decompressed application starting file corresponding to the target App in a local storage space;
when the target App is determined to meet the storage condition, decompressing an installation file corresponding to the target App, and extracting the application starting file;
and storing the application starting file in the local storage space.
2. The method of claim 1, wherein the operating condition comprises: the method comprises the following steps that the running time of an App is determined, and the target App meeting the cleaning condition is determined according to the running condition of the App, and comprises the following steps:
acquiring the last running time of the App installed on the terminal based on the acquired running time information of the App;
and determining the App with the last running time earlier than the current time by a preset time period as the target App.
3. The method of claim 1, wherein the operating condition comprises: the method includes the following steps that the running times of an App are determined, and the target App meeting the cleaning condition is determined according to the running condition of the App, and comprises the following steps:
and determining the App with the running times less than a preset value as a target App based on the acquired running time information of the App.
4. The method of claim 1, wherein the operating condition comprises: the method comprises the following steps that the running times and running time of an App are determined, and the target App meeting the cleaning condition is determined according to the running condition of the App, and comprises the following steps:
searching out the App to be selected with the running times less than a preset value based on the obtained running time information of the App;
determining the last running time of the App to be selected based on the obtained running time information of the App;
and determining the to-be-selected App with the last running time earlier than the current time within a preset time period as the target App.
5. The method according to claim 1, characterized in that the target App is determined to meet a storage condition in the following way:
detecting that the target App is started again; or
And determining that the target running times of the target App exceed a preset value.
6. A document processing apparatus, characterized in that the apparatus comprises:
the acquisition module is configured to query the application running information list and acquire the running condition of the application program App installed on the terminal;
the determining module is configured to determine a target App meeting the cleaning condition according to the running condition of the App;
the file deleting module is configured to delete the decompressed application starting file corresponding to the target App in a local storage space;
the file extraction module is configured to decompress an installation file corresponding to the target App and extract the application starting file when the target App is determined to meet the storage condition;
and the storage module is configured to store the application starting file in the local storage space.
7. The apparatus of claim 6, wherein the operating condition comprises: app runtime, the determining module comprising:
the obtaining submodule is configured to obtain the last running time of the App installed on the terminal based on the obtained running time information of the App;
the first determining submodule is configured to determine the App with the last running time earlier than the current time by a preset time period as the target App.
8. The apparatus of claim 6, wherein the operating condition comprises: app running times, wherein the determining module comprises:
and the second determining submodule is configured to determine the App with the running time less than the preset value as the target App based on the acquired running time information of the App.
9. The apparatus of claim 6, wherein the operating condition comprises: app's number of times of operation and runtime, the module of confirming includes:
the searching submodule is configured to search out the to-be-selected App with the running times smaller than a preset value based on the obtained running time information of the App;
the third determining submodule is configured to determine the last running time of the to-be-selected App based on the obtained running time information of the App;
and the fourth determination submodule is configured to determine the candidate App with the last running time earlier than the current time within a preset time period as the target App.
10. The apparatus of claim 6, wherein the file extraction module comprises:
the detection sub-module is configured to detect that the target App starts again; or
A fifth determination submodule configured to determine that a target number of times of operation of the target App exceeds a predetermined value.
11. A document processing apparatus, characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
inquiring an application running information list, and acquiring the running condition of an application program App installed on the terminal;
determining a target App meeting a cleaning condition according to the running condition of the App;
deleting the decompressed application starting file corresponding to the target App in a local storage space;
when the target App is determined to meet the storage condition, decompressing an installation file corresponding to the target App, and extracting the application starting file;
and storing the application starting file in the local storage space.
CN201610751430.6A 2016-08-29 2016-08-29 File processing method and device Active CN106339470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610751430.6A CN106339470B (en) 2016-08-29 2016-08-29 File processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610751430.6A CN106339470B (en) 2016-08-29 2016-08-29 File processing method and device

Publications (2)

Publication Number Publication Date
CN106339470A CN106339470A (en) 2017-01-18
CN106339470B true CN106339470B (en) 2020-02-04

Family

ID=57823074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610751430.6A Active CN106339470B (en) 2016-08-29 2016-08-29 File processing method and device

Country Status (1)

Country Link
CN (1) CN106339470B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018152734A1 (en) * 2017-02-23 2018-08-30 华为技术有限公司 Method and device for clearing application task list of terminal, and terminal
CN109343866B (en) * 2018-10-11 2022-08-26 四川长虹电器股份有限公司 Automatic cleaning method for Android television application

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN103631620A (en) * 2013-11-27 2014-03-12 北京奇虎科技有限公司 Method and device for processing application programs
CN103677977A (en) * 2013-12-19 2014-03-26 贝壳网际(北京)安全技术有限公司 Method and device for cleaning temporary files in mobile terminal and the mobile terminal
CN103761306A (en) * 2014-01-22 2014-04-30 深圳市欧珀通信软件有限公司 Smart terminal file cleaning method and device
CN104881299A (en) * 2014-02-28 2015-09-02 可牛网络技术(北京)有限公司 Application program freezing method and apparatus
CN105005519A (en) * 2014-04-17 2015-10-28 腾讯科技(深圳)有限公司 Method and device for clearing client cache
CN105653663A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 File cleaning method and device
CN105843853A (en) * 2016-03-16 2016-08-10 北京小米移动软件有限公司 Clearing method and apparatus for intelligent device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN103631620A (en) * 2013-11-27 2014-03-12 北京奇虎科技有限公司 Method and device for processing application programs
CN103677977A (en) * 2013-12-19 2014-03-26 贝壳网际(北京)安全技术有限公司 Method and device for cleaning temporary files in mobile terminal and the mobile terminal
CN103761306A (en) * 2014-01-22 2014-04-30 深圳市欧珀通信软件有限公司 Smart terminal file cleaning method and device
CN104881299A (en) * 2014-02-28 2015-09-02 可牛网络技术(北京)有限公司 Application program freezing method and apparatus
CN105005519A (en) * 2014-04-17 2015-10-28 腾讯科技(深圳)有限公司 Method and device for clearing client cache
CN105653663A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 File cleaning method and device
CN105843853A (en) * 2016-03-16 2016-08-10 北京小米移动软件有限公司 Clearing method and apparatus for intelligent device

Also Published As

Publication number Publication date
CN106339470A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
CN105338409B (en) Network video preloading method and device
KR101851082B1 (en) Method and device for information push
CN105845124B (en) Audio processing method and device
US10810172B2 (en) Data clearing method, apparatus and storage medium
CN104462296B (en) File management method and device and terminal
CN106919629B (en) Method and device for realizing information screening in group chat
CN106201734B (en) File sharing method and device
CN106409317B (en) Method and device for extracting dream speech
CN105912450B (en) Application state information display method and device
US10324910B2 (en) Contact record processing method and apparatus
CN107132949B (en) Anti-interference method, device, terminal and storage medium
CN109388625B (en) Method and device for processing configuration file in multi-distributed file system
CN108629178B (en) Resource access authority configuration method and device of application program
CN111968640A (en) Voice control method and device, electronic equipment and storage medium
CN107562497B (en) Information display method and device and terminal
CN109634762B (en) Data recovery method and device, electronic equipment and storage medium
CN106339470B (en) File processing method and device
CN104951522B (en) Method and device for searching
CN107463419B (en) Application restarting method and device and computer readable storage medium
CN108153488B (en) Data self-adding method and device
CN110020082B (en) Searching method and device
CN106790584B (en) Information synchronization method and device
CN110941670B (en) Mark state detection method, device, equipment and storage medium
CN110213062B (en) Method and device for processing message
CN108509641B (en) File backup method, device, server and system

Legal Events

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