# US 2017/0255641 A1 · Method and device for cleaning up terminal resource and terminal

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0255641 A1
- Document ID: US20170255641A1
- Status: Published application
- Kind: A1
- Application number: 15/506,706
- Filed: 2015-08-18
- Published: 2017-09-07
- Earliest claimed: 2014-08-28
- Assignees: Beijing Kingsoft Internet Security Software Co., Ltd.
- Applicants: Beijing Kingsoft Internet Security Software Co., Ltd.
- Inventors: Peng Luo
- Web page: https://patentgrep.com/patent/US20170255641A1

## CPC

- G06F 16/162: {Delete operations (erasing in storage systems G06F3/0652)}
- G06F 12/0269: {Incremental or concurrent garbage collection, e.g. in real-time systems (G06F12/0261 takes precedence)}
- G06F 16/148: {File search processing}
- G06F 16/1737: {for reducing power consumption or coping with limited storage space, e.g. in mobile devices (saving storage space on storage devices G06F3/0608; power saving in storage systems G06F3/0625)}
- H04L 67/04: specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
- H04L 67/125: involving control of end-device applications over a network
- H04L 67/60: Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources (admission control or resource allocation H04L47/70)
- H04L 69/04: Protocols for data compression, e.g. ROHC
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A cleanup method and device for a terminal resource and a terminal. The method comprises: receiving a cleanup instruction, and acquiring a resource saved on a terminal according to the cleanup instruction (S101); processing the resource, and saving the processed resource, wherein a storage space occupied by the processed resource is less than a storage space occupied by the resource (S102); and querying whether a resource is saved on a server, if the resource is saved on the server, then displaying deletion prompt information, and deleting the resource according to an operation executed by a user (S103). By means of the cleanup method and device and the terminal, the storage space of the terminal occupied by a resource can be greatly reduced, and at the same time, convenience can be provided for a user to redisplay the resource since it is guaranteed that the corresponding resource is saved on a server before the resource is deleted.

## Claims

### Claim 1

A method for cleaning up a terminal resource, comprising:
receiving a cleanup instruction, and acquiring a resource stored in a terminal according to the cleanup instruction;
processing the resource, and storing a processed resource, wherein a storage space occupied by the processed resource is less than a storage space occupied by the resource;
querying whether the resource is stored in a server; and
if the resource is stored in the server, displaying a deleting prompt message, and deleting the resource according to an operation executed by a user.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
if the resource is not stored in the server, uploading the resource to the server so as to enable the resource to be stored in the server.

### Claim 3 (depends on 2)

The method according to claim 2, when deleting the resource, further comprising:
generating a first label corresponding to the resource deleted, such that the user is able to trigger the first label to acquire the resource again.

### Claim 4 (depends on 3)

The method according to claim 3, further comprising:
receiving a first trigger request for the first label from the user;
sending a resource acquiring request to the server according to the first trigger request and identification information of the processed resource, receiving and storing the resource returned from the server; and
receiving a second trigger request for the resource from the user, and displaying the resource according to the second trigger request.

### Claim 5 (depends on 3)

The method according to claim 3, wherein if the resource is an audio or a video, after generating a first label corresponding to the resource deleted, the method further comprises:
receiving a first trigger request for the first label from the user; and
playing the resource stored in the server according to the first trigger request and identification information of the processed resource.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
generating a second label corresponding to the processed resource, such that the user is able to trigger the second label to acquire the resource.

### Claim 7 (depends on 6)

The method according to claim 6, further comprising:
receiving a checking request for the processed resource from the user, and displaying the processed resource according to the checking request;
receiving a third trigger request for the second label from the user, sending a resource acquiring request to the server according to the third trigger request and identification information of the processed resource, and receiving and storing the resource returned from the server; and
receiving a fourth trigger request for the resource from the user, and displaying the resource according to the fourth trigger request.

### Claim 8 (depends on 4)

The method according to claim 4, wherein the uploading the resource to the server comprises:
encrypting the resource, and uploading an encrypted resource to the server; and
the receiving and storing the resource returned from the server comprises: receiving the encrypted resource returned from the server, and decrypting the encrypted resource, and storing the resource decrypted.

### Claim at position 9

9-10. (canceled)

### Claim 11 (depends on 3)

The method according to claim 3, wherein,
if the resource is an image, the processing the resource comprises zooming out the image;
if the resource is an audio or a video, the processing the resource comprises compressing the audio or the video;
if the resource is an installation package of an application program, the processing the resource and storing a processed resource comprises: extracting and storing feature information of the installation package, wherein a storage space occupied by the feature information is less than a storage space occupied by the installation package, and the feature information of the installation package comprises at least one of a name, a version number, a size, and an MD5 of the installation package.

### Claim 12

(canceled)

### Claim 13 (depends on 11)

The method according to claim 11, wherein, if the resource is the installation package of the application program, the method further comprises:
establishing and storing a corresponding relationship between the feature information and the installation package of the application program;
receiving a fifth trigger request for the first label from the user;
sending an installation package acquiring request to the server according to the fifth trigger request and the corresponding relationship established, and receiving and storing the installation package of the application program returned from the server; and
receiving a sixth trigger request for the installation package of the application program from the user, and re-installing the installation package of the application program according to the sixth trigger request.

### Claim 14

(canceled)

### Claim 15

A device for cleaning up a terminal resource, comprising:
a processor; and
a memory, configured to store instructions executable by the processor;
wherein, the processor is configured to:
receive a cleanup instruction and to acquire a resource stored in a terminal according to the cleanup instruction;
process the resource and store a processed resource, wherein a storage space occupied by the processed resource is less than a storage space occupied by the resource; and
query whether the resource is stored in a server, to display a deleting prompt message if the resource is stored in the server, and to delete the resource according to an operation executed by a user.

### Claim 16 (depends on 15)

The device according to claim 15, wherein, after querying whether the resource is stored in a server, the processor is further configured to upload the resource to the server so as to enable the resource to be stored in the server.

### Claim 17 (depends on 15)

The device according to claim 15, wherein the processor is further configured to:
generate a first label corresponding to the resource deleted when deleting the resource, such that the user is able to trigger the first label to acquire the resource again.

### Claim 18 (depends on 17)

The device according to claim 17, wherein after generating a first label corresponding to the resource deleted, the processor is further configured to:
receive a first trigger request for the first label from the user ; send a resource acquiring request to the server according to the first trigger request and identification information of the processed resource, receive and store the resource returned from the server; and receive a second trigger request for the resource from the user, and display the resource according to the second trigger request.

### Claim 19 (depends on 17)

The device according to claim 17, wherein if the resource is an audio or a video, after generating a first label corresponding to the resource deleted, the processor is further configured to: receive a first trigger for the first label from the user; play the resource stored in the server according to the first trigger request and established identification information of the processed resource.

### Claim 20 (depends on 15)

The device according to claim 15, wherein, the processor is further configured to:
generate a second label corresponding to the processed resource, such that the user is able to trigger the second label to acquire the resource.

### Claim 21 (depends on 20)

The device according to claim 20, wherein, the processor is further configured to:
receive a checking request for the processed resource from the user and display the processed resource according to the checking request; receive a third trigger request for the second label from the user, send a resource acquiring request to the server according to the third trigger request and identification information of the processed resource, receive and store the resource returned from the server; and receive a fourth trigger request for the resource from the user, and display the resource according to the fourth trigger request.

### Claim 22 (depends on 18)

The device according to claim 18, wherein, the processor is configured to:
upload the resource to the server by encrypting the resource, and upload an encrypted resource to the server; and
receive and store the resource returned from the server by receiving the encrypted resource returned from the server and decrypting the encrypted resource, and storing the resource decrypted.

### Claim at position 22

23-24. (canceled)

### Claim 25 (depends on 17)

The device according to claim 17, wherein,
if the resource is an image, the processor is configured to process the resource by zooming out the image;
if the resource is an audio or a video, the processor is configured to process the resource by compressing the audio or the video;
if the resource is an installation package of an application program, the processor is configured to process the resource and store a processed resource by acts of: extracting and storing feature information of the installation package, wherein a storage space occupied by the feature information is less than a storage space occupied by the installation package, and the feature information of the installation package comprises at least one of a name, a version number, a size, and an MD5 of the installation package.

### Claim at position 24

26-28. (canceled)

### Claim 29

A mobile terminal, comprising: a shell, a processor, a memory, a circuit board and a power supply circuit, in which the circuit board is located in a space formed by the shell, the processor and the memory are arranged on the circuit board; the power supply circuit is configured to supply power for each circuit or component in the mobile terminal; the memory is configured to store executable program codes; the processor is configured to execute a program corresponding to the executable program codes by reading the executable program codes stored in the memory so as to:
receive a cleanup instruction, and acquire a resource stored in a terminal according to the cleanup instruction;
process the resource, and store a processed resource, in which a storage space occupied by the processed resource is less than that occupied by the resource; and
query whether a resource is stored in a server, if the resource is stored in the server, display a deleting prompt message, and delete the resource according to an operation executed by a user.
