WO2016029807A1 - 终端资源的清理方法、装置及终端 - Google Patents

终端资源的清理方法、装置及终端 Download PDF

Info

Publication number
WO2016029807A1
WO2016029807A1 PCT/CN2015/087401 CN2015087401W WO2016029807A1 WO 2016029807 A1 WO2016029807 A1 WO 2016029807A1 CN 2015087401 W CN2015087401 W CN 2015087401W WO 2016029807 A1 WO2016029807 A1 WO 2016029807A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
server
user
installation package
terminal
Prior art date
Application number
PCT/CN2015/087401
Other languages
English (en)
French (fr)
Inventor
罗鹏
Original Assignee
北京金山安全软件有限公司
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
Priority claimed from CN201410433471.1A external-priority patent/CN104199913B/zh
Priority claimed from CN201410433004.9A external-priority patent/CN104182532B/zh
Application filed by 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Priority to US15/506,706 priority Critical patent/US10409773B2/en
Publication of WO2016029807A1 publication Critical patent/WO2016029807A1/zh

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/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
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0253Garbage collection, i.e. reclamation of unreferenced memory
    • G06F12/0269Incremental or concurrent garbage collection, e.g. in real-time systems
    • 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/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/04Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of mobile communications technologies, and in particular, to a method, an apparatus, and a terminal for cleaning terminal resources.
  • the amount of data stored in each resource of the terminal is also increasing. It is a resource such as audio, video, and picture.
  • the data volume of one picture can be 2MB, and the data volume of one video can be 1GB.
  • the storage space of the terminal is limited, and the number of resources saved by the user on the terminal increases. The resources occupy the storage space of the terminal, and the available storage space of the terminal is less and less.
  • the user can manually delete the resources in the terminal, or manually move the resources saved in the terminal to a storage device other than the terminal.
  • the terminal is based on Android.
  • the smartphone of the system when the memory in the smartphone is insufficient, the user can save the resources saved in the smartphone to the computer after being connected with the computer, and save the resources to the terminal by deleting or deleting the resources in the terminal.
  • the occupation of the space however, the user can no longer view the deleted or moved resources through the terminal, affecting the user experience, and the above-mentioned way of reducing the storage space of the resources to the terminal is cumbersome and prone to misoperation, resulting in the terminal.
  • the resources in the middle were deleted by mistake.
  • the present invention aims to solve at least one of the technical problems in the related art to some extent. Therefore, the first object of the present invention is to provide a method for cleaning a terminal resource, which can greatly reduce the occupation of the storage space of the resource by the resource, and at the same time, ensure that the corresponding resource is saved on the server before deleting the resource. In turn, it can provide convenience for users to re-present resources.
  • a second object of the present invention is to provide a device for cleaning terminal resources.
  • a third object of the present invention is to propose a terminal.
  • the first aspect of the present invention provides a method for cleaning a terminal resource, including: receiving a cleanup instruction, acquiring a resource saved by the terminal according to the cleanup instruction; processing the resource, and saving a post-processing resource, where the storage space occupied by the processed resource is smaller than the storage space occupied by the resource; and whether the resource is saved on the query server, and if the resource is saved on the server, the deletion prompt is displayed. Information and delete the resource according to the actions performed by the user.
  • the resource saved by the terminal is obtained according to the cleaning instruction, the resource is processed, and the processed resource is saved, wherein the storage space occupied by the processed resource is smaller than the storage space occupied by the resource, and the query Whether the resource is saved on the server and the resource is saved on the server, the deletion prompt information is displayed, and the resource is deleted according to the operation performed by the user. Therefore, the occupation of the storage space of the resource can be greatly reduced. At the same time, it is ensured that the corresponding resource is saved on the server before deleting the resource, thereby facilitating the user to re-present the resource.
  • the second aspect of the present invention provides a device for cleaning a terminal resource, including: an obtaining module, configured to receive a cleanup instruction, and obtain a resource saved by the terminal according to the cleanup instruction;
  • the processing module is configured to process the resource, and save the processed resource, where the storage space occupied by the processed resource is smaller than the storage space occupied by the resource; and the second processing module is configured to query whether the server saves The resource displays the deletion prompt information if the resource is saved on the server, and deletes the resource according to an operation performed by the user.
  • the terminal resource clearing apparatus receives the cleanup instruction by the obtaining module, and obtains the resource saved by the terminal according to the cleanup instruction, processes the resource through the first processing module, and saves the processed resource, wherein the processed resource
  • the occupied storage space is smaller than the storage space occupied by the resource
  • the second processing module queries whether the resource is saved on the server, and when the resource is saved on the server, the deletion prompt information is displayed, and the resource is deleted according to the operation performed by the user. Therefore, the occupation of the storage space of the resource can be greatly reduced. At the same time, it is ensured that the corresponding resource is saved on the server before deleting the resource, thereby facilitating the user to re-present the resource.
  • a third aspect of the present invention provides a terminal including a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed in the housing Inside the space, the processor and the memory are disposed on the circuit board; the power circuit is configured to supply power to each circuit or device of the mobile terminal; the memory is configured to store executable program code;
  • the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory, for performing the following steps: receiving a cleanup instruction, acquiring the terminal save according to the cleanup instruction
  • the resource is processed, and the processed resource is saved, wherein the storage space occupied by the processed resource is smaller than the storage space occupied by the resource; and the resource is saved on the query server, if If the resource is saved on the server, the deletion prompt information is displayed, and the resource is deleted according to an operation performed by the user.
  • the terminal obtains the resource saved by the terminal according to the cleaning instruction, processes the resource, and saves the processed resource, wherein the storage space occupied by the processed resource is smaller than the storage space occupied by the resource, and the query service Whether the resource is saved on the device and the resource is saved on the server, the deletion prompt message is displayed, and the resource is deleted according to the operation performed by the user. Therefore, the occupation of the storage space of the resource can be greatly reduced. At the same time, it is ensured that the corresponding resource is saved on the server before deleting the resource, thereby facilitating the user to re-present the resource.
  • FIG. 1 is a flow chart of a method for cleaning terminal resources according to an embodiment of the present invention.
  • FIG. 2 is a flow diagram of re-presenting resources in accordance with one embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for cleaning terminal resources according to an embodiment of the present invention.
  • FIG. 4 is a flow diagram of reinstalling an application in accordance with one embodiment of the present invention.
  • Figure 5 is a flow diagram of reinstalling an application in accordance with another embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a device for cleaning a terminal resource according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a device for cleaning a terminal resource according to another embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for cleaning a terminal resource according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
  • the terminal may be a hardware device having various operating systems such as a personal computer PC, a mobile phone, or a tablet computer.
  • the resources in different paths of the terminal are obtained according to the cleanup command, where the foregoing resources may include one or more of, not limited to, pictures, audio, and video.
  • S102 Process the resource, and save the processed resource, where the storage space occupied by the processed resource is smaller than the storage space occupied by the resource.
  • different types of resources may be processed differently.
  • the picture may be reduced.
  • the picture may be reduced to obtain the picture.
  • the audio or video can be compressed.
  • the resource is 1080P HD video 1
  • 1080P HD video 1 can be compressed.
  • the video 1 can be compressed into 480P video 1, and the processed video, that is, 480P video 1, is saved in the terminal.
  • the storage space occupied by the processed resource is much smaller than the storage space occupied by the original resource, and the saved resource in the terminal can greatly reduce the storage space of the resource to the terminal. Occupied.
  • the query request may be sent to the server according to the identifier information of the processed resource, and the server receives the query request sent by the terminal, and queries whether the corresponding resource is saved on the server according to the identifier information in the query request. If the corresponding resource is saved on the server, the terminal returns a query result of the corresponding resource stored on the server. If the terminal determines that the corresponding resource is saved on the server according to the query result, the terminal may display the deletion prompt information on the terminal, and delete the prompt information according to the operation performed by the user. Corresponding resources.
  • the resources are uploaded to the server so that the server saves the resources.
  • the server does not find the corresponding resource according to the query request, that is, the corresponding resource is not saved on the server
  • the query result that the corresponding resource is not saved on the server is returned to the terminal, and the terminal receives the query result, and is not saved on the determining server.
  • the corresponding processed resource is uploaded to the server, so that the corresponding processed resource is saved on the server.
  • the resource existing in the terminal is 1080P HD video 1, and after the compression processing, the resource is 4800P video 1. If it is detected that the corresponding 1080P HD video 1 is not saved on the server, first upload 1080P HD video 1 to the server to make the server The 1080P HD video 1 is saved on the terminal, and then the prompt information for deleting the 1080P HD video 1 is displayed on the terminal. At this time, the terminal deletes the corresponding 1080P HD video 1 according to the user's execution operation, thereby cleaning up the 1080P HD video 1 Previously, it was ensured that the original 1080P HD video 1 was saved on the server, so that users can re-obtain HD video from the server when they need to watch 1080P HD video 1 in the future.
  • the resource may be encrypted first, and then the encrypted resource is uploaded to the server.
  • the deletion prompt information is displayed on the terminal, and the resource is deleted according to the operation performed by the user, and the first mark corresponding to the deleted resource may be generated to be used.
  • the first token is triggered by the user to regain the corresponding resource.
  • the terminal will display the corresponding resource for the user, and the process of the terminal re-presenting the resource for the user is as follows: :
  • the user may trigger the first label of the corresponding resource.
  • the terminal receives the first trigger request of the user for the first tag of the corresponding resource.
  • the terminal after receiving the first trigger request of the first token of the corresponding resource by the user, the terminal obtains the identifier information of the processed resource, and sends a resource acquisition request that includes the first trigger request and the identifier information of the processed resource to the server.
  • the server receives the resource acquisition request, and obtains the resource corresponding to the processed resource according to the identifier information in the resource acquisition request, that is, obtains the unprocessed resource, and returns the obtained corresponding resource to the terminal, and the terminal receives and saves the returned by the server. Unprocessed resources.
  • the server obtains the encrypted resource according to the resource acquisition request, and returns the encrypted resource to the terminal, and the terminal receives the encrypted resource returned by the server, and encrypts the encrypted resource by using the password. Decrypt and save the decrypted resource in the terminal.
  • the user needs to watch the 1080P high-definition video 1.
  • the terminal receives the first trigger request of the user for the first mark, and obtains the identifier of the processed video 1. And sending a request for obtaining a resource including the first trigger request and the identifier information to the server, the server receiving the resource request sent by the terminal, and obtaining the 1080P HD video 1 saved on the server according to the identifier information in the request, and corresponding The 1080P HD video 1 is returned to the terminal, and the terminal receives and saves the returned 1080P HD video 1.
  • the terminal After the terminal obtains the unprocessed resource, if the user triggers the second trigger request of the resource, that is, the resource presentation request, the terminal will display the corresponding unprocessed resource according to the trigger operation of the user, thereby enabling the user to re-display the un-reviewed resource. Processed resources.
  • the terminal obtains the unprocessed resource as 1080P HD video 1.
  • the terminal will play the HD video 1 according to the trigger operation of the user.
  • the resource located on the server may be directly played on the server according to the triggering operation of the user, specifically, The terminal receives the first trigger request of the user for the first tag, and plays the resource located on the server according to the trigger request and the established identifier information of the processed resource, thereby facilitating online viewing of resources on the server and reducing corresponding resource pairs.
  • a second flag corresponding to the processed resource may also be generated for the user to trigger the second tag to obtain the corresponding resource.
  • the terminal receives the user's request for the corresponding processed resource, and displays the corresponding processed resource according to the viewing request, in the process of the user viewing the corresponding processed resource.
  • the terminal may further receive a third trigger request of the second token of the corresponding resource, and send a resource acquisition request to the server according to the third trigger request and the identifier information of the processed resource, and the server obtains the corresponding information according to the identifier information in the resource acquisition request.
  • the resource is returned to the terminal, and the terminal receives and saves the resource returned by the server.
  • the fourth trigger request corresponding to the resource is a presentation request
  • the terminal receives the fourth trigger request of the user to return the corresponding resource, and displays the corresponding resource according to the fourth trigger request.
  • the identifier information of the processed resource may be a unique identifier of the resource.
  • the identifier information may be a name of a resource such as a picture, an audio, or a video, or may be other information that can identify the resource.
  • the resource existing in the terminal is 1080P high-definition video 1
  • the animation file 1 is created by using various static pictures in the video 1
  • the animation file 1 is saved as a processed resource of the video 1 in the terminal, and played by the user.
  • the user can click the second mark in the animation file 1, and after the user clicks the mark, the terminal will obtain 1080P high definition video 1 for the user.
  • the terminal obtains the third trigger request of the user and the identifier information corresponding to the animation file 1 to send a resource acquisition request to the server, and the server obtains the 1080P high-definition video 1 saved on the server according to the identifier information in the request. And returning the corresponding 1080P high-definition video 1 to the terminal, the terminal receives and saves the corresponding 1080P high-definition video 1.
  • the terminal receives the user's presentation request and plays the 1080P high-definition video 1 for the user.
  • the foregoing method for cleaning the terminal resource obtains the resource saved by the terminal according to the cleaning instruction, processes the resource, and saves the processed resource, wherein the storage space occupied by the processed resource is smaller than the storage space occupied by the resource, and whether the query server is
  • the deletion prompt message is displayed, and the resource is deleted according to the operation performed by the user. Therefore, the occupation of the storage space of the resource can be greatly reduced.
  • FIG. 3 is a flowchart of a method for cleaning a terminal resource according to an embodiment of the present invention.
  • the resource is an installation package of an application, as shown in FIG. 3, the method includes:
  • the terminal may be a hardware device having various operating systems such as a personal computer PC, a mobile phone, or a tablet computer.
  • the installation package of the corresponding version of the application may be obtained through different information sources.
  • the terminal is an Android-based smartphone, and the user downloads 5 applications through the Baidu application, downloads 3 applications through the pea pod, and after receiving the cleanup button, the user can receive the cleanup command and obtain the Baidu application from the Baidu application.
  • Installation packages for 8 applications downloaded by management software such as pea pods.
  • the feature information of the installation package is extracted and saved, where the storage space occupied by the feature information is smaller than the storage space occupied by the installation package.
  • the feature information of the installation package may be directly extracted and saved, or the installation package of the application may be extracted and saved after detecting that the installation package of the application has been successfully installed to the terminal.
  • Feature information wherein the feature information of the foregoing installation package may include, but is not limited to, one or more of a name, a version number, a size, and a message digest algorithm fifth version MD5 (Message Digest Algorithm 5) of the installation package, and the terminal extracts
  • MD5 Message Digest Algorithm 5
  • the feature information of the saved installation package occupies only a few tens of bytes, compared to an application occupying the terminal storage space of several megabytes (MByte). In the case of the installation package, saving the feature information of the installation package only in the terminal can effectively reduce the occupied space.
  • the prompt information may be displayed on the terminal, so that the user can install the corresponding application according to the prompt information, and then extract and save after installing the corresponding application.
  • Correspondence information of the installation package of the application is displayed on the terminal, if the user decides not to install the application temporarily, the feature information of the installation package of the corresponding application is directly extracted and saved.
  • the query request may be sent to the server according to the feature information of the installation package, and the server receives the query request sent by the terminal, and queries the server according to the feature information in the query request.
  • the installation package of the corresponding application is saved, that is, whether the installation package that is consistent with the downloaded installation package is saved on the server, and if the installation package of the corresponding application is saved on the server, the corresponding application is saved on the return server of the terminal. If the terminal determines that the installation package of the corresponding application is saved on the server according to the query result, the terminal may display the deletion prompt information on the terminal, and delete the installation package of the application according to the operation performed by the user.
  • the installation package of the application is not saved on the server, the installation package of the application is uploaded to the server, so that the server saves the installation package of the application.
  • the server does not find the installation package of the corresponding application according to the query request, that is, the installation package of the corresponding application is not saved on the server
  • the query result of the installation package of the corresponding application not saved on the server is returned to the terminal, and the terminal receives Query the result, and when it is determined that the installation package of the corresponding application is not saved on the server, upload the installation package of the corresponding application to the server, so that the installation package of the corresponding application is saved on the server.
  • the installation package of the application existing in the terminal is the installation package of the 4.6.1 version of QQ. If it is detected that the installation package of the version of QQ is not saved, the installation package of the 4.6.1 version of the QQ is first uploaded to the server. In order to save the version of the QQ installation package on the server, then the terminal displays the prompt information for deleting the QQ installation package. At this time, the terminal deletes the corresponding QQ installation package according to the user's execution operation, thereby cleaning up the QQ.
  • the installation package ensures that the QQ installation package is saved on the server, so that users can download and install the corresponding version of the QQ installation package when needed later.
  • the deletion prompt information is displayed on the terminal, and the installation package of the application is deleted according to the operation performed by the user, and the installation package of the corresponding application is deleted.
  • it is also possible to generate a mark corresponding to the installation package of the deleted application and the user can re-acquire the installation package of the corresponding application by triggering the mark corresponding to the installation package of the application, thereby reducing the user's re-query from the network. Download the installation package of the corresponding version of the application, improve the efficiency of the user to obtain the installation package of the corresponding version of the application, and facilitate the user to install the corresponding version of the application.
  • the user when the user needs to reinstall the application, the user can end the corresponding tag by triggering the application.
  • the terminal receives the first trigger request of the user for the tag.
  • the terminal after receiving the first trigger request of the user, the terminal obtains corresponding feature information of the application, and sends an installation package acquisition request including the first trigger request and the feature information to the server, and the server receives the acquisition request, and according to Obtain the feature information in the request to obtain the installation package of the corresponding application, and return the installation package of the corresponding application to the terminal, and the terminal receives and saves the installation package of the corresponding application returned by the server.
  • the terminal After obtaining the installation package of the corresponding application in the terminal, if the user triggers the second trigger request of the installation package of the corresponding application, that is, the installation request of the installation package, the terminal reinstalls the installation package of the corresponding application according to the trigger operation of the user. Thereby, the terminal can be quickly installed to install the corresponding version of the application, so that the user can continue to experience the service provided by the corresponding version of the application.
  • the correspondence between the feature information and the installation package of the application program may be established and saved, and the relationship may be quickly learned and established through the established correspondence relationship.
  • the information of the installation package corresponding to the information so that the installation package of the corresponding application can be obtained conveniently and quickly.
  • Step S51 is the same as step S41, and the explanation of step S41 is also applicable to step S51, which is not described here.
  • the terminal After receiving the first trigger request of the user, the terminal obtains the correspondence between the feature information and the installation package of the application, and sends an installation package acquisition request to the server according to the first trigger request and the established correspondence relationship, and the server receives the acquisition request. And quickly obtaining the installation package of the corresponding application according to the corresponding relationship in the acquisition request, and returning the installation package of the corresponding application to the terminal, and the terminal receives and saves the installation package of the corresponding application returned by the server.
  • Step S53 is the same as step S43, and the explanation of step S43 is also applicable to step S53, and details are not described herein.
  • the foregoing method for cleaning the terminal resource obtains an installation package of the application existing in the terminal according to the cleaning instruction, and extracts and saves the feature information of the installation package and whether the application is saved on the server before cleaning the installation package of the application.
  • the installation package and when the installation package of the application is saved on the server, the deletion prompt information is displayed, and the installation package of the application is deleted according to the operation performed by the user, thereby greatly reducing the installation package of the application to the terminal storage space.
  • the installation package of the corresponding application is saved on the server before deleting the installation package, the user can re-download the same version of the application installation package, which greatly reduces the user's query workload. And the consistency of the application installation package is guaranteed.
  • the present invention also provides a device for cleaning terminal resources.
  • FIG. 6 is a schematic structural diagram of a device for cleaning a terminal resource according to an embodiment of the present invention. As shown in FIG. 6, the device includes: an obtaining module 100, a first processing module 200, and a second processing module 300, where:
  • the obtaining module 100 is configured to receive the cleaning instruction, and obtain the resource saved by the terminal according to the cleaning instruction.
  • the first processing module 200 is configured to process the resource and save the processed resource, where the storage space occupied by the processed resource is less than The storage space occupied by the resource; and the second processing module 300 is configured to query whether the resource is saved on the server. If the resource is saved on the server, the deletion prompt information is displayed, and the resource is deleted according to an operation performed by the user.
  • the above resources may include one or more of pictures, audio, and video.
  • the first processing module 200 may perform different processing on the different types of resources. Specifically, when the resource is a picture, the first processing module 200 may perform a reduction process on the picture. Specifically, the first processing module 200 may reduce the picture to obtain a thumbnail corresponding to the picture, and save the thumbnail corresponding to the picture in the terminal.
  • the first processing module 200 may perform compression processing on the audio or video.
  • the foregoing apparatus may further include an uploading module 400, where the uploading module 400 is configured to: after the second processing module 300 queries whether the resource is saved on the server, if the resource is not saved on the server, And uploading the foregoing resource to the server, so that the server saves the foregoing resource.
  • the uploading module 300 may be specifically configured to encrypt the foregoing resource and upload the encrypted resource to the server. Thereby, the security of the resources can be guaranteed.
  • the device may further include a first generating module 500, where the first generating module 500 is configured to generate, when the second processing module 300 deletes the resource, generate a resource corresponding to the deleted resource.
  • the first flag is used for the user to trigger the first tag to retrieve the corresponding resource.
  • the device may further include a third processing module 600, configured to receive a first trigger request by the user for the first tag after the first generating module 500 generates the first tag corresponding to the deleted resource. And sending, according to the foregoing first trigger request and the identifier information of the processed resource, a resource acquisition request to the server, receiving and saving the resource returned by the server; and receiving a second trigger request of the user to return the resource, and according to the second The trigger request presents the above resources. Therefore, the third processing module 600 can realize the resource re-presentation, so that the user can view the resource at any time.
  • the third processing module 600 may receive the encrypted resource returned by the server, and may decrypt the encrypted resource. And save the above resources after decryption.
  • the device may further include a fourth processing module 700, where the fourth processing module 700 is configured to use the first generating module 500 when the resource is audio or video.
  • the fourth processing module 700 is configured to use the first generating module 500 when the resource is audio or video.
  • the foregoing apparatus may further include a second generation module 800, configured to generate, after the first processing module 200 saves the processed resource, a second flag corresponding to the processed resource, for the user The second token is triggered to obtain a corresponding resource.
  • a second generation module 800 configured to generate, after the first processing module 200 saves the processed resource, a second flag corresponding to the processed resource, for the user The second token is triggered to obtain a corresponding resource.
  • the device may further include a fifth processing module 900, and the fifth processing module 900 is configured to: after the second generating module 800 generates the second tag corresponding to the processed resource, receive a user request for viewing the processed resource, and And displaying the corresponding processed resource according to the foregoing viewing request; receiving a third triggering request by the user for the second marking, and sending a resource obtaining request to the server according to the third triggering request and the identifier information of the processed resource, and receiving and saving The resource returned by the server; and receiving a fourth trigger request by the user to return the resource, and displaying the resource according to the fourth trigger request.
  • the fifth processing module 900 is configured to: after the second generating module 800 generates the second tag corresponding to the processed resource, receive a user request for viewing the processed resource, and And displaying the corresponding processed resource according to the foregoing viewing request; receiving a third triggering request by the user for the second marking, and sending a resource obtaining request to the server according to the third triggering request and the identifier information of
  • the first processing module 200 is specifically configured to: extract and save the feature information of the installation package, where the storage space occupied by the feature information is smaller than the storage space occupied by the installation package,
  • the feature information of the installation package includes one or more of the name, version number, size, and MD5 of the above installation package.
  • the device further includes a saving module (not shown), and the saving module is configured to establish and save a correspondence between the feature information and the installation package of the application.
  • the device may further include a sixth processing module (not shown), the sixth processing The module is configured to: after the first generating module generates the first tag corresponding to the deleted resource, receive a fifth trigger request of the user for the first tag; and send, according to the fifth trigger request and the established correspondence, to the server
  • the installation package obtains the request, receives and saves the installation package of the corresponding application returned by the server; and receives a sixth trigger request of the installation package of the corresponding application by the user, and reinstalls the installation of the corresponding application according to the sixth trigger request. package.
  • the acquiring module receives the cleaning instruction, and obtains the resource saved by the terminal according to the cleaning instruction, processes the resource through the first processing module, and saves the processed resource, wherein the processed resource is stored.
  • the space is smaller than the storage space occupied by the resource
  • the second processing module queries whether the resource is saved on the server, and when the resource is saved on the server, the deletion prompt information is displayed, and the resource is deleted according to the operation performed by the user. Therefore, the occupation of the storage space of the resource can be greatly reduced. At the same time, it is ensured that the corresponding resource is saved on the server before deleting the resource, thereby facilitating the user to re-present the resource.
  • the terminal may be a hardware device having various operating systems such as a personal computer PC, a mobile phone, or a tablet computer.
  • different types of resources may be processed differently.
  • the picture may be reduced.
  • the picture may be reduced to obtain the picture.
  • the query request may be sent to the server according to the identifier information of the processed resource, and the server receives the query request sent by the terminal, and queries whether the corresponding resource is saved on the server according to the identifier information in the query request. If the corresponding resource is saved on the server, the terminal returns a query result of the corresponding resource stored on the server. If the terminal determines that the corresponding resource is saved on the server according to the query result, the terminal may display the deletion prompt information on the terminal, and delete the prompt information according to the operation performed by the user. Corresponding resources.
  • the resources are uploaded to the server so that the server saves the resources.
  • the server does not find the corresponding resource according to the query request, that is, the corresponding resource is not saved on the server
  • the query result that the corresponding resource is not saved on the server is returned to the terminal, and the terminal receives the query result, and is not saved on the determining server.
  • the corresponding processed resource is uploaded to the server, so that the corresponding processed resource is saved on the server.
  • the resource existing in the terminal is 1080P HD video 1, and after the compression processing, the resource is 4800P video 1. If it is detected that the corresponding 1080P HD video 1 is not saved on the server, the 1080P HD video 1 is first uploaded to the server, so that the 1080P HD video 1 is saved on the server, and then the prompt information for deleting the 1080P HD video 1 is displayed on the terminal. At this time, the terminal will delete the corresponding 1080P HD video 1 according to the user's execution operation. Therefore, before cleaning the 1080P HD video 1, it is ensured that the original 1080P HD video 1 is saved on the server, so that the user needs to watch the 1080P HD video in the future. You can get HD video from the server again.
  • a second flag corresponding to the processed resource may also be generated for the user to trigger the second tag to obtain the corresponding resource.
  • the terminal obtains the third trigger request of the user and the identifier information corresponding to the animation file 1 to send a resource acquisition request to the server, and the server obtains the 1080P high-definition video 1 saved on the server according to the identifier information in the request. And returning the corresponding 1080P high-definition video 1 to the terminal, the terminal receives and saves the corresponding 1080P high-definition video 1.
  • the terminal receives the user's presentation request and plays the 1080P high-definition video 1 for the user.
  • S303' Query whether the installation package of the application is saved on the server. If the installation package of the application is saved on the server, the deletion prompt information is displayed, and the installation package of the application is deleted according to the operation performed by the user.
  • the installation package of the application existing in the terminal is the installation package of the 4.6.1 version of QQ. If it is detected that the installation package of the version of QQ is not saved, the installation package of the 4.6.1 version of the QQ is first uploaded to the server. In order to save the version of the QQ installation package on the server, then the terminal displays the prompt information for deleting the QQ installation package. At this time, the terminal deletes the corresponding QQ installation package according to the user's execution operation, thereby cleaning up the QQ.
  • the installation package ensures that the QQ installation package is saved on the server, so that users can download and install the corresponding version of the QQ installation package when needed later.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable optical disk read-only storage (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.

Abstract

一种终端资源的清理方法、装置及终端。其中,该方法包括:接收清理指令,根据清理指令获取终端保存的资源(S101);对资源进行处理,并保存处理后资源,其中,处理后资源占用的存储空间小于资源占用的存储空间(S102);以及查询服务器上是否保存有资源,若服务器上保存有资源,则显示删除提示信息,并根据用户执行的操作删除资源(S103)。采用该清理方法、装置及终端,可大大减少资源对终端的存储空间的占用,同时,由于在删除资源之前,确保了服务器上保存有对应资源,进而可为用户重新展现资源提供方便。

Description

终端资源的清理方法、装置及终端
相关申请的交叉引用
本申请要求于2014年8月28日提交中国专利局、申请号为201410433004.9、发明名称为“终端文件的清理方法、装置及终端”以及申请号为201410433471.1、发明名称为“终端资源的清理方法、装置及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动通信技术领域,尤其涉及一种终端资源的清理方法、装置及终端。
背景技术
随着科技的发展,手机、平板电脑等终端的功能越来越多,终端中所需保存的资源也越来越多,终端保存的每个资源的数据量也越来大,其中,资源可以是音频、视频和图片等资源,例如一张图片的数据量可以为2MB,一个视频的数据量可以为1GB,然而,终端的存储空间有限,随着用户在终端上保存的资源的增多,大量资源占用了终端的存储空间,终端可用的存储空间越来越少。
为了减少资源对终端存储空间的占用,目前用户可通过手动操作删除终端中的资源,或者通过手动操作将终端中保存的资源移动到终端以外的存储设备中,例如,终端为基于安卓(Android)系统的智能手机,在智能手机中的内存不足时,用户可通过与计算机连接之后,将智能手机中保存的资源移动到计算机上进行保存,通过删除或者移动终端中的资源可以减少资源对终端存储空间的占用,然而,用户无法再通过终端查看被删除或者移动的资源,影响了用户的使用体验,并且上述减少资源对终端的存储空间的方式,操作较为繁琐,也容易产生误操作,导致终端中的资源被误删除。
发明内容
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本发明的第一个目的在于提出一种终端资源的清理方法,该方法可大大减少资源对终端的存储空间的占用,同时,由于在删除资源之前,确保了服务器上保存有对应资源,进而可为用户重新展现资源提供方便。
本发明的第二个目的在于提出一种终端资源的清理装置。
本发明的第三个目的在于提出一种终端。
为实现上述目的,本发明第一方面实施例提出了一种终端资源的清理方法,包括:接收清理指令,根据所述清理指令获取所述终端保存的资源;对所述资源进行处理,并保存处理后资源,其中,所述处理后资源占用的存储空间小于所述资源占用的存储空间;以及查询服务器上是否保存有所述资源,若所述服务器上保存有所述资源,则显示删除提示信息,并根据用户执行的操作删除所述资源。
根据本发明实施例的终端资源的清理方法,根据清理指令获得终端保存的资源,对资源进行处理,并保存处理后资源,其中,处理后资源占用的存储空间小于资源占用的存储空间,以及查询服务器上是否保存资源,并在服务器上保存有资源时,显示删除提示信息,并根据用户执行的操作删除资源。由此,可大大减少资源对终端的存储空间的占用,同时,由于在删除资源之前,确保了服务器上保存有对应资源,进而可为用户重新展现资源提供方便。
为实现上述目的,本发明第二方面实施例提出了一种终端资源的清理装置,包括:获取模块,用于接收清理指令,根据所述清理指令获取所述终端保存的资源;第一处理模块,用于对所述资源进行处理,并保存处理后资源,其中,所述处理后资源占用的存储空间小于所述资源占用的存储空间;以及第二处理模块,用于查询服务器上是否保存有所述资源,若所述服务器上保存有所述资源,则显示删除提示信息,并根据用户执行的操作删除所述资源。
根据本发明实施例的终端资源的清理装置,通过获取模块接收清理指令,并根据清理指令获得终端保存的资源,通过第一处理模块对资源进行处理,并保存处理后资源,其中,处理后资源占用的存储空间小于资源占用的存储空间,以及通过第二处理模块查询服务器上是否保存资源,并在服务器上保存有资源时,显示删除提示信息,并根据用户执行的操作删除资源。由此,可大大减少资源对终端的存储空间的占用,同时,由于在删除资源之前,确保了服务器上保存有对应资源,进而可为用户重新展现资源提供方便。
为实现上述目的,本发明第三方面实施例提出了一种终端,该终端包括壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:接收清理指令,根据所述清理指令获取所述终端保存的资源;对所述资源进行处理,并保存处理后资源,其中,所述处理后资源占用的存储空间小于所述资源占用的存储空间;以及查询服务器上是否保存有所述资源,若所述服务器上保存有所述资源,则显示删除提示信息,并根据用户执行的操作删除所述资源。
根据本发明实施例的终端,根据清理指令获得终端保存的资源,对资源进行处理,并保存处理后资源,其中,处理后资源占用的存储空间小于资源占用的存储空间,以及查询服务 器上是否保存资源,并在服务器上保存有资源时,显示删除提示信息,并根据用户执行的操作删除资源。由此,可大大减少资源对终端的存储空间的占用,同时,由于在删除资源之前,确保了服务器上保存有对应资源,进而可为用户重新展现资源提供方便。
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。
附图说明
图1是根据本发明一个实施例的终端资源的清理方法的流程图。
图2是根据本发明一个实施例的重新展现资源的流程图。
图3是根据本发明一个具体实施例的终端资源的清理方法的流程图。
图4是根据本发明一个实施例的重新安装应用程序的流程图。
图5是根据本发明另一个实施例的重新安装应用程序的流程图。
图6是根据本发明一个实施例的终端资源的清理装置的结构示意图。
图7是根据本发明另一个实施例的终端资源的清理装置的结构示意图。
具体实施方式
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。
下面参考附图描述本发明实施例的终端资源的清理方法、装置及终端。
图1是根据本发明一个实施例的终端资源的清理方法的流程图,如图1所示,该方法包括:
S101,接收清理指令,根据清理指令获取终端保存的资源。
在该实施例中,上述终端可以是个人计算机PC、手机、平板电脑等具有各种操作系统的硬件设备。
具体地,在接收清理指令后,根据清理指令获得终端不同路径下的资源,其中,上述资源可以包括当不限于图片、音频和视频中的一种或几种。
S102,对资源进行处理,并保存处理后资源,其中,处理后资源占用的存储空间小于资源占用的存储空间。
具体地,在获取终端保存的资源后,可对不同类型的资源进行不同地处理,具体而言,当资源为图片时,可以对图片进行缩小处理,例如,可以对图片进行缩小以获得该图片对应的缩略图。
当资源为音频或视频时,可以对音频或视频进行压缩处理。例如,当资源为1080P高清视频1,可以对1080P高清视频1进行压缩,比如可以将该视频1压缩为480P视频1,并在终端中保存经过处理的视频即480P视频1。
上述通过对资源进行处理,并保存处理后资源,处理后资源所占的存储空间远远小于原先的资源所占的存储空间,在终端中保存处理后资源可大大减少资源对终端的存储空间的占用。
S103,查询服务器上是否保存有资源,若服务器上保存有资源,则显示删除提示信息,并根据用户执行的操作删除资源。
具体地,在保存处理后资源后,可根据处理后资源的标识信息向服务器发送查询请求,服务器接收终端发送的查询请求,并根据查询请求中的标识信息查询服务器上是否保存有对应资源,若服务器上保存有对应资源,则向终端返回服务器上保存有对应资源的查询结果,若终端根据查询结果确定服务器上保存对应资源,则可以在终端上显示删除提示信息,并根据用户执行的操作删除对应资源。
在该实施例中,若服务器上未保存有资源,则向服务器上传资源,以使服务器保存有资源。
具体地,若服务器根据查询请求未查找到对应资源,即服务器上未保存有对应资源,则向终端返回服务器上未保存有对应资源的查询结果,终端接收查询结果,并在确定服务器上未保存有对应资源时,向服务器上传对应处理后资源,以使服务器上保存有对应处理后资源。
例如,假设终端存在的资源为1080P高清视频1,经过压缩处理后资源为4800P视频1,若检测到服务器上没有保存对应的1080P高清视频1,则首先向服务器上传1080P高清视频1,以使服务器上保存有1080P高清视频1,然后,在终端上显示删除1080P高清视频1的提示信息,此时,终端将根据用户的执行操作删除对应的1080P高清视频1,由此,在清理1080P高清视频1之前,确保了服务器上保存原版的1080P高清视频1,方便用户日后需要观看1080P高清视频1时可以重新从服务器中获得高清视频。
另外,为了保证资源的安全性,还可以先对资源进行加密,然后再向服务器上传加密后的资源。
在该实施例中,在确定服务器上保存有对应资源后,在终端上显示删除提示信息,并根据用户执行的操作删除资源的同时,还可以生成与被删除资源对应的第一标记,以用于用户触发第一标记重新获得对应的资源。由此,可方便用户重新从服务器上获得未经过处理的资源,方便用户随时查看未经处理的资源。
在该实施例中,在生成与被删除资源对应的第一标记之后,如图2所示,若用户需要重新展现资源,终端将为用户展现对应的资源,终端为用户重新展现资源的过程如下:
S21,接收用户对第一标记的第一触发请求。
具体地,在用户需要查看资源即未经处理的资源时,用户可通过触发对应资源的第一标 记,终端接收用户对对应资源的第一标记的第一触发请求。
S22,根据第一触发请求和处理后资源的标识信息向服务器发送资源获取请求,接收并保存服务器返回的资源。
具体地,在接收到用户对对应资源的第一标记的第一触发请求,终端获得该处理后资源的标识信息,并向服务器发送包含第一触发请求和处理后资源的标识信息的资源获取请求,服务器接收资源获取请求,并根据资源获取请求中的标识信息获得对应处理后资源的资源,即获得未经处理的资源,并将获得的对应的资源返回给终端,终端接收并保存服务器返回的未经处理的资源。
另外,若终端上传了加密后的资源,服务器根据资源获取请求将获得加密后的资源,并向终端返回加密后的资源,终端接收服务器返回的加密后的资源,并通过密码对加密后的资源进行解密,并在终端中保存解密后的资源。
例如,用户需要观看1080P高清视频1,此时,在用户可点击处理后480P视频1对应的第一标记后,终端接收用户对第一标记的第一触发请求,并获得处理后视频1的标识信息,并向服务器发送包含第一触发请求和标识信息的获取资源请求,服务器接收终端发送的获取资源请求,并根据请求中的标识信息,获得服务器上保存的1080P高清视频1,并将对应的1080P高清视频1返回给终端,终端接收并保存返回的1080P高清视频1。
S23,接收用户对返回资源的第二触发请求,并根据第二触发请求展现资源。
在终端获得未经处理的资源后,若用户触发资源的第二触发请求即资源的展现请求,终端将根据用户的触发操作展现对应的未经处理的资源,由此,使得用户可以重新展现未经处理的资源。
例如,终端获得未经处理的资源为1080P高清视频1,在用户点击终端保存的1080P高清视频1时,终端将根据用户的触发操作播放高清视频1。
另外,在该实施例中,当资源为音频或视频时,在生成与被删除资源对应的第一标记之后,根据用户的触发操作还可以在服务器上直接播放位于服务器上的资源,具体地,终端接收用户对第一标记的第一触发请求,并根据触发请求和建立的处理后资源的标识信息播放位于服务器上的资源,由此,方便了在线查看服务器上的资源,减少了对应资源对终端存储空间的占用。
另外,在该实施例中,在保存处理后资源之后,还可以生成与处理后资源对应的第二标记,以用于用户触发第二标记获得对应的资源。
具体地,在用户查看终端保存的处理后资源的过程中,终端接收用户对对应处理后资源的查看请求,并根据查看请求展示对应的处理后资源,在用户查看对应处理后资源的过程中,终端还可以接收用户对对应资源的第二标记的第三触发请求,并根据第三触发请求和处理后资源的标识信息向服务器发送资源获取请求,服务器将根据资源获取请求中的标识信息获得对应的资源,并将对应的资源返回给终端,终端接收并保存服务器返回的资源。若用户触发 对应资源的第四触发请求即展现请求,终端接接收用户对返回对应资源的第四触发请求,并根据第四触发请求展现对应资源。其中,上述处理后资源的标识信息可以唯一标识资源的信息,例如,标识信息可以是图片、音频、视频等资源的名称,还可以是其他可以标识资源的信息。
例如,终端中存在的资源为1080P高清视频1,通过该视频1中的多种静态图片制作成动画文件1,并将该动画文件1作为视频1的处理后资源保存在终端中,在用户播放动画文件1的过程中,若用户对其中的某个静态图片感兴趣,用户可通过点击该动画文件1中的第二标记,在用户点击该标记后,终端将为用户获得1080P高清视频1,以方便用户查看,具体而言,终端获得用户的第三触发请求和该动画文件1对应的标识信息向服务器发送资源获取请求,服务器根据请求中的标识信息获得服务器上保存的1080P高清视频1,并向终端返回对应的1080P高清视频1,终端接收并保存对应的1080P高清视频1,在用户点击该视频1时,终端接收用户的展现请求,并为用户播放1080P高清视频1。
上述终端资源的清理方法实施例,根据清理指令获得终端保存的资源,对资源进行处理,并保存处理后资源,其中,处理后资源占用的存储空间小于资源占用的存储空间,以及查询服务器上是否保存资源,并在服务器上保存有资源时,显示删除提示信息,并根据用户执行的操作删除资源。由此,可大大减少资源对终端的存储空间的占用,同时,由于在删除资源之前,确保了服务器上保存有对应资源,进而可为用户重新展现资源提供方便。
图3是根据本发明一个具体实施例的终端资源的清理方法的流程图,在该实施例中,该资源为应用程序的安装包,如图3所示,该方法包括:
S301,接收清理指令,根据清理指令获取终端存在的应用程序的安装包。
在该实施例中,上述终端可以是个人计算机PC、手机、平板电脑等具有各种操作系统的硬件设备。
具体地,在接收清理指令后,可以通过不同信息源获得应用程序对应版本的安装包。例如,终端为基于安卓系统的智能手机,用户通过百度应用下载了5个应用程序,通过豌豆荚下载了3个应用程序,在用户触发清理按钮后,可接收清理指令,并从中获得通过百度应用、豌豆荚等管理软件下载的8个应用程序的安装包。
S302,提取并保存安装包的特征信息,其中,特征信息占用的存储空间小于安装包占用的存储空间。
具体地,在获取终端存在的应用程序的安装包后,可直接提取并保存安装包的特征信息,也可以在检测到应用程序的安装包已经成功安装至该终端后,提取并保存安装包的特征信息,其中,上述安装包的特征信息可以包括但不限于安装包的名称、版本号、大小和消息摘要算法第五版MD5(Message Digest Algorithm 5)中的一种或几种,并且终端提取并保存的安装包的特征信息仅占用几十个字节,相对于占用终端存储空间为几兆(MByte)的应用程 序的安装包来说,仅在终端中保存安装包的特征信息可有效减少占用空间。
另外,若检测到应用程序的安装包为未安装的安装包,则可以在终端上显示提示信息,以方便用户根据提示信息安装对应的应用程序,然后在安装对应的应用程序后,提取并保存对应应用程序的安装包的特征信息。然而,在终端上显示提示信息后,若用户决定暂不安装该应用程序,则直接提取并保存对应应用程序的安装包的特征信息。
S303,查询服务器上是否保存有应用程序的安装包,若服务器上保存有应用程序的安装包,则显示删除提示信息,并根据用户执行的操作删除应用程序的安装包。
具体地,在提取并保存对应应用程序的安装包的特征信息后,可根据安装包的特征信息向服务器发送查询请求,服务器接收终端发送的查询请求,并根据查询请求中的特征信息查询服务器上是否保存有对应应用程序的安装包,即查看服务器上是否保存有与下载的安装包一致的安装包,若服务器上保存有对应应用程序的安装包,则向终端返回服务器上保存有对应应用程序的安装包的查询结果,若终端根据查询结果确定服务器上保存对应应用程序的安装包,则可以在终端上显示删除提示信息,并根据用户执行的操作删除应用程序的安装包。
在该实施例中,若服务器上未保存有应用程序的安装包,则向服务器上传应用程序的安装包,以使服务器保存有应用程序的安装包。
具体地,若服务器根据查询请求未查找到对应应用程序的安装包,即服务器上未保存对应应用程序的安装包,则向终端返回服务器上未保存对应应用程序的安装包的查询结果,终端接收查询结果,并在确定服务器上未保存对应应用程序的安装包时,向服务器上传对应的应用程序的安装包,以使服务器上保存有对应应用程序的安装包。
例如,假定终端存在的应用程序的安装包为4.6.1版本的QQ的安装包,若检测到没有保存该版本的QQ的安装包,则首先向服务器上传4.6.1版本的QQ的安装包,以使服务器上保存该版本的QQ的安装包,然后,终端上显示删除QQ安装包的提示信息,此时,终端将根据用户的执行操作删除对应的QQ的安装包,由此,在清理QQ的安装包的同时确保了服务器上保存了QQ的安装包,方便用户日后需要时重新下载并安装对应版本的QQ安装包。
在该实施例中,在确定服务器上保存有对应应用程序的安装包后,在终端上显示删除提示信息,并根据用户执行的操作删除应用程序的安装包,并且在删除对应应用程序的安装包时,还可以生成与被删除应用程序的安装包对应的标记,用户通过触发应用程序的安装包对应的标记可以重新获得对应应用程序的安装包,由此,可以减少用户从网络上重新查询并下载对应版本的应用程序的安装包的操作,提高用户获得对应版本的应用程序的安装包的效率,方便用户安装对应版本的应用程序。
在该实施例中,在生成与被删除应用程序的安装包对应的标记之后,如图4所示,若用户需要重新安装对应的应用程序可通过如下步骤实现:
S41,接收用户对标记的第一触发请求。
具体地,用户在需要重新安装应用程序时,用户可通过触发该应用程序对应的标记,终 端接收用户对标记的第一触发请求。
S42,根据第一触发请求和特征信息向服务器发送安装包获取请求,接收并保存服务器返回的对应应用程序的安装包。
具体地,在接收到用户的第一触发请求后,终端获得该应用程序的对应的特征信息,并向服务器发送包含第一触发请求和特征信息的安装包获取请求,服务器接收获取请求,并根据获取请求中的特征信息获得对应应用程序的安装包,并将对应应用程序的安装包返回给终端,终端接收并保存服务器返回的对应应用程序的安装包。
S43,接收用户对对应应用程序的安装包的第二触发请求,并根据第二触发请求重新安装对应应用程序的安装包。
在终端中获得对应应用程序的安装包后,若用户触发对应应用程序的安装包的第二触发请求即对应安装包的安装请求,终端将根据用户的触发操作重新安装对应应用程序的安装包,由此,可以使得终端迅速安装对应版本的应用程序,方便用户继续体验对应版本的应用程序所提供的服务。
另外,在该实施例中,在提取保存对应应用程序的安装包的特征信息后,还可以建立并保存特征信息和应用程序的安装包的对应关系,通过建立的对应关系可以快速获知与该特征信息对应的安装包的信息,从而可以方便、快速地获得对应应用程序的安装包。
若终端中保存特征信息和应用程序的安装包的对应关系,则在生成与被删除应用程序的安装包对应的标记之后,如图5所示,在用户需要重新安装对应应用程序可通过如下步骤实现:
S51,接收用户对标记的第一触发请求。
步骤S51与步骤S41相同,对步骤S41的解释说明也适用于步骤S51,此处不赘述。
S52,根据第一触发请求和建立的对应关系向服务器发送安装包获取请求,接收并保存服务器返回的对应应用程序的安装包。
具体地,在接收到用户的第一触发请求后,终端获得特征信息和应用程序的安装包的对应关系,根据第一触发请求和建立的对应关系向服务器发送安装包获取请求,服务器接收获取请求,并根据获取请求中的对应关系迅速获得对应应用程序的安装包,并将对应应用程序的安装包返回给终端,终端接收并保存服务器返回的对应应用程序的安装包。
S53,接收用户对对应应用程序的安装包的第二触发请求,并根据第二触发请求重新安装对应应用程序的安装包。
步骤S53与步骤S43相同,对步骤S43的解释说明也适用于步骤S53,此处不赘述。
上述终端资源的清理方法实施例,根据清理指令获取终端存在的应用程序的安装包,并在清理应用程序的安装包前,提取并保存安装包的特征信息,以及查询服务器上是否保存有应用程序的安装包,并在服务器上保存有应用程序的安装包时,显示删除提示信息,并根据户执行的操作删除应用程序的安装包,由此,大大减少了应用程序的安装包对终端存储空间 的占用,同时,由于在删除安装包之前,确保了服务器上保存有对应应用程序的安装包,进而可为用户重新下载相同版本的应用程序安装包提供方便,大大减少了用户的查询工作量,且可保证应用程序安装包的一致性。
为了实现上述实施例,本发明还提出一种终端资源的清理装置。
图6是根据本发明一个实施例的终端资源的清理装置的结构示意图,如图6所示,该装置包括:获取模块100、第一处理模块200和第二处理模块300,其中:
获取模块100用于接收清理指令,根据上述清理指令获取上述终端保存的资源;第一处理模块200用于对上述资源进行处理,并保存处理后资源,其中,上述处理后资源占用的存储空间小于上述资源占用的存储空间;以及第二处理模块300用于查询服务器上是否保存有上述资源,若上述服务器上保存有上述资源,则显示删除提示信息,并根据用户执行的操作删除上述资源。
上述资源可以包括图片、音频和视频中的一种或几种。
第一处理模块200对不同类型的资源所采用的处理方式不同,具体地,当上述资源为图片时,上述第一处理模块200可以对上述图片进行缩小处理。具体而言,第一处理模块200可以对图片进行缩小以获得该图片对应的缩略图,并在终端中保存该图片对应的缩略图。
当上述资源为音频或视频时,上述第一处理模块200可以对上述音频或视频进行压缩处理。
另外,如图7所示,上述装置还可以包括上传模块400,该上传模块400用于在上述第二处理模块300查询服务器上是否保存有上述资源之后,若上述服务器上未保存有上述资源,则向上述服务器上传上述资源,以使上述服务器保存有上述资源。
上述上传模块300具体可以用于对上述资源进行加密,并向上述服务器上传加密后的上述资源。由此,可以保证资源的安全性。
为了方便用户可以再次查看保存在服务器上的资源,上述装置还可以包括第一生成模块500,该第一生成模块500用于在上述第二处理模块300删除上述资源时,生成与被删除资源对应的第一标记,以用于用户触发上述第一标记重新获得对应的资源。
上述装置还可以包括第三处理模块600,该第三处理模块600用于在上述第一生成模块500生成与被删除资源对应的第一标记之后,接收用户对上述第一标记的第一触发请求;根据上述第一触发请求和上述处理后资源的标识信息向上述服务器发送资源获取请求,接收并保存上述服务器返回的资源;以及接收用户对返回上述资源的第二触发请求,并根据上述第二触发请求展现上述资源。由此,通过第三处理模块600可以实现再次展现资源,方便用户随时查看资源。
另外,若上传模块300在上传资源时对资源进行了加密,相对应地,第三处理模块600可以接收上述服务器返回的加密后的上述资源,并可以对上述加密后的上述资源进行解密, 以及保存解密后的上述资源。
对于音频或者视频,为了方便用户可以在线查看对应的资源,上述装置还可以包括第四处理模块700,该第四处理模块700用于当上述资源为音频或视频时,在上述第一生成模块500生成与被删除资源对应的第一标记之后,接收用户对上述第一标记的第一触发请求;根据上述触发请求和建立的上述处理后资源的标识信息播放位于上述服务器上的上述资源。
另外,上述装置还可以包括第二生成模块800,该第二生成模块800用于在上述第一处理模块200保存处理后资源之后,生成与上述处理后资源对应的第二标记,以用于用户触发上述第二标记获得对应的资源。
上述装置还可以包括第五处理模块900,第五处理模块900用于在上述第二生成模块800生成与上述处理后资源对应的第二标记之后,接收用户对上述处理后资源的查看请求,并根据上述查看请求展示对应的处理后资源;接收用户对上述第二标记的第三触发请求,并根据上述第三触发请求和上述处理后资源的标识信息向上述服务器发送资源获取请求,接收并保存上述服务器返回的资源;以及接收用户对返回上述资源的第四触发请求,并根据上述第四触发请求展现上述资源。
当上述资源为应用程序的安装包时,上述第一处理模块200具体用于:提取并保存上述安装包的特征信息,其中,上述特征信息占用的存储空间小于上述安装包占用的存储空间,上述安装包的特征信息包括上述安装包的名称、版本号、大小和MD5中的一种或几种。
当上述资源为应用程序的安装包时,上述装置还包括保存模块(图中未示出),该保存模块用于建立并保存上述特征信息和上述应用程序的安装包的对应关系。
另外,为了方便用户重新获得并安装对应版本的应用程序,方便用户继续体验对应版本的应用程序所提供的服务,上述装置还可以包括第六处理模块(图中未示出),该第六处理模块用于在上述第一生成模块生成与被删除资源对应的第一标记之后,接收用户对上述第一标记的第五触发请求;根据上述第五触发请求和建立的上述对应关系向上述服务器发送安装包获取请求,接收并保存上述服务器返回的对应应用程序的安装包;以及接收用户对上述对应应用程序的安装包的第六触发请求,并根据上述第六触发请求重新安装对应应用程序的安装包。
需要说明的是,前述对终端资源的清理方法实施例的解释说明也适用于该实施例的终端资源的清理装置,此处不赘述。
上述终端资源的清理装置实施例,通过获取模块接收清理指令,并根据清理指令获得终端保存的资源,通过第一处理模块对资源进行处理,并保存处理后资源,其中,处理后资源占用的存储空间小于资源占用的存储空间,以及通过第二处理模块查询服务器上是否保存资源,并在服务器上保存有资源时,显示删除提示信息,并根据用户执行的操作删除资源。由此,可大大减少资源对终端的存储空间的占用,同时,由于在删除资源之前,确保了服务器上保存有对应资源,进而可为用户重新展现资源提供方便。
为了实现上述实施例,本发明还提出一种终端,该终端包括壳体、处理器、存储器、电路板和电源电路,其中,上述电路板安置在上述壳体围成的空间内部,上述处理器和上述存储器设置在上述电路板上;上述电源电路,用于为上述移动终端的各个电路或器件供电;上述存储器用于存储可执行程序代码;上述处理器通过读取上述存储器中存储的可执行程序代码来运行与上述可执行程序代码对应的程序,以用于执行以下步骤:
S101',接收清理指令,根据清理指令获取终端保存的资源。
在该实施例中,上述终端可以是个人计算机PC、手机、平板电脑等具有各种操作系统的硬件设备。
具体地,在接收清理指令后,根据清理指令获得终端不同路径下的资源,其中,上述资源可以包括当不限于图片、音频和视频中的一种或几种。
S102',对资源进行处理,并保存处理后资源,其中,处理后资源占用的存储空间小于资源占用的存储空间。
具体地,在获取终端保存的资源后,可对不同类型的资源进行不同地处理,具体而言,当资源为图片时,可以对图片进行缩小处理,例如,可以对图片进行缩小以获得该图片对应的缩略图。
当资源为音频或视频时,可以对音频或视频进行压缩处理。例如,当资源为1080P高清视频1,可以对1080P高清视频1进行压缩,比如可以将该视频1压缩为480P视频1,并在终端中保存经过处理的视频即480P视频1。
上述通过对资源进行处理,并保存处理后资源,处理后资源所占的存储空间远远小于原先的资源所占的存储空间,在终端中保存处理后资源可大大减少资源对终端的存储空间的占用。
S103',查询服务器上是否保存有资源,若服务器上保存有资源,则显示删除提示信息,并根据用户执行的操作删除资源。
具体地,在保存处理后资源后,可根据处理后资源的标识信息向服务器发送查询请求,服务器接收终端发送的查询请求,并根据查询请求中的标识信息查询服务器上是否保存有对应资源,若服务器上保存有对应资源,则向终端返回服务器上保存有对应资源的查询结果,若终端根据查询结果确定服务器上保存对应资源,则可以在终端上显示删除提示信息,并根据用户执行的操作删除对应资源。
在该实施例中,若服务器上未保存有资源,则向服务器上传资源,以使服务器保存有资源。
具体地,若服务器根据查询请求未查找到对应资源,即服务器上未保存有对应资源,则向终端返回服务器上未保存有对应资源的查询结果,终端接收查询结果,并在确定服务器上未保存有对应资源时,向服务器上传对应处理后资源,以使服务器上保存有对应处理后资源。
例如,假设终端存在的资源为1080P高清视频1,经过压缩处理后资源为4800P视频1, 若检测到服务器上没有保存对应的1080P高清视频1,则首先向服务器上传1080P高清视频1,以使服务器上保存有1080P高清视频1,然后,在终端上显示删除1080P高清视频1的提示信息,此时,终端将根据用户的执行操作删除对应的1080P高清视频1,由此,在清理1080P高清视频1之前,确保了服务器上保存原版的1080P高清视频1,方便用户日后需要观看1080P高清视频1时可以重新从服务器中获得高清视频。
另外,为了保证资源的安全性,还可以先对资源进行加密,然后再向服务器上传加密后的资源。
在该实施例中,在确定服务器上保存有对应资源后,在终端上显示删除提示信息,并根据用户执行的操作删除资源的同时,还可以生成与被删除资源对应的第一标记,以用于用户触发第一标记重新获得对应的资源。由此,可方便用户重新从服务器上获得未经过处理的资源,方便用户随时查看未经处理的资源。
在该实施例中,在生成与被删除资源对应的第一标记之后,若用户需要重新展现资源,终端将为用户展现对应的资源,终端为用户重新展现资源的过程如下:
S21',接收用户对第一标记的第一触发请求。
具体地,在用户需要查看资源即未经处理的资源时,用户可通过触发对应资源的第一标记,终端接收用户对对应资源的第一标记的第一触发请求。
S22',根据第一触发请求和处理后资源的标识信息向服务器发送资源获取请求,接收并保存服务器返回的资源。
具体地,在接收到用户对对应资源的第一标记的第一触发请求,终端获得该处理后资源的标识信息,并向服务器发送包含第一触发请求和处理后资源的标识信息的资源获取请求,服务器接收资源获取请求,并根据资源获取请求中的标识信息获得对应处理后资源的资源,即获得未经处理的资源,并将获得的对应的资源返回给终端,终端接收并保存服务器返回的未经处理的资源。
另外,若终端上传了加密后的资源,服务器根据资源获取请求将获得加密后的资源,并向终端返回加密后的资源,终端接收服务器返回的加密后的资源,并通过密码对加密后的资源进行解密,并在终端中保存解密后的资源。
例如,用户需要观看1080P高清视频1,此时,在用户可点击处理后480P视频1对应的第一标记后,终端接收用户对第一标记的第一触发请求,并获得处理后视频1的标识信息,并向服务器发送包含第一触发请求和标识信息的获取资源请求,服务器接收终端发送的获取资源请求,并根据请求中的标识信息,获得服务器上保存的1080P高清视频1,并将对应的1080P高清视频1返回给终端,终端接收并保存返回的1080P高清视频1。
S23',接收用户对返回资源的第二触发请求,并根据第二触发请求展现资源。
在终端获得未经处理的资源后,若用户触发资源的第二触发请求即资源的展现请求,终端将根据用户的触发操作展现对应的未经处理的资源,由此,使得用户可以重新展现未经处 理的资源。
例如,终端获得未经处理的资源为1080P高清视频1,在用户点击终端保存的1080P高清视频1时,终端将根据用户的触发操作播放高清视频1。
另外,在该实施例中,当资源为音频或视频时,在生成与被删除资源对应的第一标记之后,根据用户的触发操作还可以在服务器上直接播放位于服务器上的资源,具体地,终端接收用户对第一标记的第一触发请求,并根据触发请求和建立的处理后资源的标识信息播放位于服务器上的资源,由此,方便了在线查看服务器上的资源,减少了对应资源对终端存储空间的占用。
另外,在该实施例中,在保存处理后资源之后,还可以生成与处理后资源对应的第二标记,以用于用户触发第二标记获得对应的资源。
具体地,在用户查看终端保存的处理后资源的过程中,终端接收用户对对应处理后资源的查看请求,并根据查看请求展示对应的处理后资源,在用户查看对应处理后资源的过程中,终端还可以接收用户对对应资源的第二标记的第三触发请求,并根据第三触发请求和处理后资源的标识信息向服务器发送资源获取请求,服务器将根据资源获取请求中的标识信息获得对应的资源,并将对应的资源返回给终端,终端接收并保存服务器返回的资源。若用户触发对应资源的第四触发请求即展现请求,终端接接收用户对返回对应资源的第四触发请求,并根据第四触发请求展现对应资源。其中,上述处理后资源的标识信息可以唯一标识资源的信息,例如,标识信息可以是图片、音频、视频等资源的名称,还可以是其他可以标识资源的信息。
例如,终端中存在的资源为1080P高清视频1,通过该视频1中的多种静态图片制作成动画文件1,并将该动画文件1作为视频1的处理后资源保存在终端中,在用户播放动画文件1的过程中,若用户对其中的某个静态图片感兴趣,用户可通过点击该动画文件1中的第二标记,在用户点击该标记后,终端将为用户获得1080P高清视频1,以方便用户查看,具体而言,终端获得用户的第三触发请求和该动画文件1对应的标识信息向服务器发送资源获取请求,服务器根据请求中的标识信息获得服务器上保存的1080P高清视频1,并向终端返回对应的1080P高清视频1,终端接收并保存对应的1080P高清视频1,在用户点击该视频1时,终端接收用户的展现请求,并为用户播放1080P高清视频1。
当上述资源为应用程序的安装包时,处理器还可以执行以下步骤:
S301',接收清理指令,根据清理指令获取终端存在的应用程序的安装包。
在该实施例中,上述终端可以是个人计算机PC、手机、平板电脑等具有各种操作系统的硬件设备。
具体地,在接收清理指令后,可以通过不同信息源获得应用程序对应版本的安装包。例如,终端为基于安卓系统的智能手机,用户通过百度应用下载了5个应用程序,通过豌豆荚下载了3个应用程序,在用户触发清理按钮后,可接收清理指令,并从中获得通过百度应用、 豌豆荚等管理软件下载的8个应用程序的安装包。
S302',提取并保存安装包的特征信息,其中,特征信息占用的存储空间小于安装包占用的存储空间。
具体地,在获取终端存在的应用程序的安装包后,可直接提取并保存安装包的特征信息,也可以在检测到应用程序的安装包已经成功安装至该终端后,提取并保存安装包的特征信息,其中,上述安装包的特征信息可以包括但不限于安装包的名称、版本号、大小和消息摘要算法第五版MD5(Message Digest Algorithm 5)中的一种或几种,并且终端提取并保存的安装包的特征信息仅占用几十个字节,相对于占用终端存储空间为几兆(MByte)的应用程序的安装包来说,仅在终端中保存安装包的特征信息可有效减少占用空间。
另外,若检测到应用程序的安装包为未安装的安装包,则可以在终端上显示提示信息,以方便用户根据提示信息安装对应的应用程序,然后在安装对应的应用程序后,提取并保存对应应用程序的安装包的特征信息。然而,在终端上显示提示信息后,若用户决定暂不安装该应用程序,则直接提取并保存对应应用程序的安装包的特征信息。
S303',查询服务器上是否保存有应用程序的安装包,若服务器上保存有应用程序的安装包,则显示删除提示信息,并根据用户执行的操作删除应用程序的安装包。
具体地,在提取并保存对应应用程序的安装包的特征信息后,可根据安装包的特征信息向服务器发送查询请求,服务器接收终端发送的查询请求,并根据查询请求中的特征信息查询服务器上是否保存有对应应用程序的安装包,即查看服务器上是否保存有与下载的安装包一致的安装包,若服务器上保存有对应应用程序的安装包,则向终端返回服务器上保存有对应应用程序的安装包的查询结果,若终端根据查询结果确定服务器上保存对应应用程序的安装包,则可以在终端上显示删除提示信息,并根据用户执行的操作删除应用程序的安装包。
在该实施例中,若服务器上未保存有应用程序的安装包,则向服务器上传应用程序的安装包,以使服务器保存有应用程序的安装包。
具体地,若服务器根据查询请求未查找到对应应用程序的安装包,即服务器上未保存对应应用程序的安装包,则向终端返回服务器上未保存对应应用程序的安装包的查询结果,终端接收查询结果,并在确定服务器上未保存对应应用程序的安装包时,向服务器上传对应的应用程序的安装包,以使服务器上保存有对应应用程序的安装包。
例如,假定终端存在的应用程序的安装包为4.6.1版本的QQ的安装包,若检测到没有保存该版本的QQ的安装包,则首先向服务器上传4.6.1版本的QQ的安装包,以使服务器上保存该版本的QQ的安装包,然后,终端上显示删除QQ安装包的提示信息,此时,终端将根据用户的执行操作删除对应的QQ的安装包,由此,在清理QQ的安装包的同时确保了服务器上保存了QQ的安装包,方便用户日后需要时重新下载并安装对应版本的QQ安装包。
在该实施例中,在确定服务器上保存有对应应用程序的安装包后,在终端上显示删除提示信息,并根据用户执行的操作删除应用程序的安装包,并且在删除对应应用程序的安装包 时,还可以生成与被删除应用程序的安装包对应的标记,用户通过触发应用程序的安装包对应的标记可以重新获得对应应用程序的安装包,由此,可以减少用户从网络上重新查询并下载对应版本的应用程序的安装包的操作,提高用户获得对应版本的应用程序的安装包的效率,方便用户安装对应版本的应用程序。
在该实施例中,在生成与被删除应用程序的安装包对应的标记之后,若用户需要重新安装对应的应用程序可通过如下步骤实现:
S41',接收用户对标记的第一触发请求。
具体地,用户在需要重新安装应用程序时,用户可通过触发该应用程序对应的标记,终端接收用户对标记的第一触发请求。
S42',根据第一触发请求和特征信息向服务器发送安装包获取请求,接收并保存服务器返回的对应应用程序的安装包。
具体地,在接收到用户的第一触发请求后,终端获得该应用程序的对应的特征信息,并向服务器发送包含第一触发请求和特征信息的安装包获取请求,服务器接收获取请求,并根据获取请求中的特征信息获得对应应用程序的安装包,并将对应应用程序的安装包返回给终端,终端接收并保存服务器返回的对应应用程序的安装包。
S43',接收用户对对应应用程序的安装包的第二触发请求,并根据第二触发请求重新安装对应应用程序的安装包。
在终端中获得对应应用程序的安装包后,若用户触发对应应用程序的安装包的第二触发请求即对应安装包的安装请求,终端将根据用户的触发操作重新安装对应应用程序的安装包,由此,可以使得终端迅速安装对应版本的应用程序,方便用户继续体验对应版本的应用程序所提供的服务。
另外,在该实施例中,在提取保存对应应用程序的安装包的特征信息后,还可以建立并保存特征信息和应用程序的安装包的对应关系,通过建立的对应关系可以快速获知与该特征信息对应的安装包的信息,从而可以方便、快速地获得对应应用程序的安装包。
若终端中保存特征信息和应用程序的安装包的对应关系,则在生成与被删除应用程序的安装包对应的标记之后,在用户需要重新安装对应应用程序可通过如下步骤实现:
S51',接收用户对标记的第一触发请求。
步骤S51'与步骤S41'相同,对步骤S41'的解释说明也适用于步骤S51',此处不赘述。
S52',根据第一触发请求和建立的对应关系向服务器发送安装包获取请求,接收并保存服务器返回的对应应用程序的安装包。
具体地,在接收到用户的第一触发请求后,终端获得特征信息和应用程序的安装包的对应关系,根据第一触发请求和建立的对应关系向服务器发送安装包获取请求,服务器接收获取请求,并根据获取请求中的对应关系迅速获得对应应用程序的安装包,并将对应应用程序 的安装包返回给终端,终端接收并保存服务器返回的对应应用程序的安装包。
S53',接收用户对对应应用程序的安装包的第二触发请求,并根据第二触发请求重新安装对应应用程序的安装包。
步骤S53'与步骤S43'相同,对步骤S43'的解释说明也适用于步骤S53',此处不赘述。
上述终端实施例,根据清理指令获得终端保存的资源,对资源进行处理,并保存处理后资源,其中,处理后资源占用的存储空间小于资源占用的存储空间,以及查询服务器上是否保存资源,并在服务器上保存有资源时,显示删除提示信息,并根据用户执行的操作删除资源。由此,可大大减少资源对终端的存储空间的占用,同时,由于在删除资源之前,确保了服务器上保存有对应资源,进而可为用户重新展现资源提供方便。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储 器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (29)

  1. 一种终端资源的清理方法,其特征在于,包括:
    接收清理指令,根据所述清理指令获取所述终端保存的资源;
    对所述资源进行处理,并保存处理后资源,其中,所述处理后资源占用的存储空间小于所述资源占用的存储空间;以及
    查询服务器上是否保存有所述资源,若所述服务器上保存有所述资源,则显示删除提示信息,并根据用户执行的操作删除所述资源。
  2. 根据权利要求1所述的方法,其特征在于,在所述查询服务器上是否保存有所述资源之后,还包括:
    若所述服务器上未保存有所述资源,则向所述服务器上传所述资源,以使所述服务器保存有所述资源。
  3. 根据权利要求1或2所述的方法,其特征在于,在所述删除所述资源时,还包括:
    生成与被删除资源对应的第一标记,以用于用户触发所述第一标记重新获得对应的资源。
  4. 根据权利要求3所述的方法,其特征在于,在所述生成与被删除资源对应的第一标记之后,还包括:
    接收用户对所述第一标记的第一触发请求;
    根据所述第一触发请求和所述处理后资源的标识信息向所述服务器发送资源获取请求,接收并保存所述服务器返回的资源;以及
    接收用户对返回所述资源的第二触发请求,并根据所述第二触发请求展现所述资源。
  5. 根据权利要求3所述的方法,其特征在于,当所述资源为音频或视频时,在所述生成与被删除资源对应的第一标记之后,还包括:
    接收用户对所述第一标记的第一触发请求;
    根据所述第一触发请求和建立的所述处理后资源的标识信息播放位于所述服务器上的所述资源。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,在所述保存处理后资源之后,还包括:
    生成与所述处理后资源对应的第二标记,以用于用户触发所述第二标记获得对应的资源。
  7. 根据权利要求6所述的方法,其特征在于,在所述生成与所述处理后资源对应的第二标记之后,还包括:
    接收用户对所述处理后资源的查看请求,并根据所述查看请求展示对应的处理后资源;
    接收用户对所述第二标记的第三触发请求,并根据所述第三触发请求和所述处理后资源 的标识信息向所述服务器发送资源获取请求,接收并保存所述服务器返回的资源;以及
    接收用户对返回所述资源的第四触发请求,并根据所述第四触发请求展现所述资源。
  8. 根据权利要求4或7所述的方法,其特征在于,所述向所述服务器上传所述资源,包括:
    对所述资源进行加密,并向所述服务器上传加密后的所述资源。
  9. 根据权利要求8所述的方法,其特征在于,所述接收并保存所述服务器返回的资源,包括:
    接收所述服务器返回的加密后的所述资源,对所述加密后的所述资源进行解密,并保存解密后的所述资源。
  10. 根据权利要求1-9任一权利要求所述的方法,其特征在于,所述资源包括图片、音频和视频中的一种或几种。
  11. 根据权利要求10所述的方法,其特征在于,当所述资源为图片时,所述对所述资源进行处理,包括:对所述图片进行缩小处理;
    当所述资源为音频或视频时,所述对所述资源进行处理,包括:对所述音频或视频进行压缩处理。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,当所述资源为应用程序的安装包时,所述对所述资源进行处理,并保存处理后资源,包括:
    提取并保存所述安装包的特征信息,其中,所述特征信息占用的存储空间小于所述安装包占用的存储空间,所述安装包的特征信息包括所述安装包的名称、版本号、大小和MD5中的一种或几种。
  13. 根据权利要求12所述的方法,其特征在于,当所述资源为应用程序的安装包时,所述方法还包括:
    建立并保存所述特征信息和所述应用程序的安装包的对应关系。
  14. 根据权利要求13所述的方法,其特征在于,在所述生成与被删除资源对应的第一标记之后,还包括:
    接收用户对所述第一标记的第五触发请求;
    根据所述第五触发请求和建立的所述对应关系向所述服务器发送安装包获取请求,接收并保存所述服务器返回的对应应用程序的安装包;以及
    接收用户对所述对应应用程序的安装包的第六触发请求,并根据所述第六触发请求重新安装对应应用程序的安装包。
  15. 一种终端资源的清理装置,其特征在于,包括:
    获取模块,用于接收清理指令,根据所述清理指令获取所述终端保存的资源;
    第一处理模块,用于对所述资源进行处理,并保存处理后资源,其中,所述处理后资源占用的存储空间小于所述资源占用的存储空间;以及
    第二处理模块,用于查询服务器上是否保存有所述资源,若所述服务器上保存有所述资源,则显示删除提示信息,并根据用户执行的操作删除所述资源。
  16. 根据权利要求15所述的装置,其特征在于,还包括:
    上传模块,用于在所述第二处理模块查询服务器上是否保存有所述资源之后,若所述服务器上未保存有所述资源,则向所述服务器上传所述资源,以使所述服务器保存有所述资源。
  17. 根据权利要求15或16所述的装置,其特征在于,还包括:
    第一生成模块,用于在所述第二处理模块删除所述资源时,生成与被删除资源对应的第一标记,以用于用户触发所述第一标记重新获得对应的资源。
  18. 根据权利要求17所述的装置,其特征在于,还包括:
    第三处理模块,用于在所述第一生成模块生成与被删除资源对应的第一标记之后,接收用户对所述第一标记的第一触发请求;根据所述第一触发请求和所述处理后资源的标识信息向所述服务器发送资源获取请求,接收并保存所述服务器返回的资源;以及接收用户对返回所述资源的第二触发请求,并根据所述第二触发请求展现所述资源。
  19. 根据权利要求17所述的装置,其特征在于,还包括:
    第四处理模块,用于当所述资源为音频或视频时,在所述第一生成模块生成与被删除资源对应的第一标记之后,接收用户对所述第一标记的第一触发请求;根据所述触发请求和建立的所述处理后资源的标识信息播放位于所述服务器上的所述资源。
  20. 根据权利要求15-19任一项所述的装置,其特征在于,还包括:
    第二生成模块,用于在所述第一处理模块保存处理后资源之后,生成与所述处理后资源对应的第二标记,以用于用户触发所述第二标记获得对应的资源。
  21. 根据权利要求20所述的装置,其特征在于,还包括:
    第五处理模块,用于在所述第二生成模块生成与所述处理后资源对应的第二标记之后,接收用户对所述处理后资源的查看请求,并根据所述查看请求展示对应的处理后资源;接收用户对所述第二标记的第三触发请求,并根据所述第三触发请求和所述处理后资源的标识信息向所述服务器发送资源获取请求,接收并保存所述服务器返回的资源;以及接收用户对返回所述资源的第四触发请求,并根据所述第四触发请求展现所述资源。
  22. 根据权利要求18或21所述的装置,其特征在于,所述上传模块,具体用于:
    对所述资源进行加密,并向所述服务器上传加密后的所述资源。
  23. 根据权利要求22所述的装置,其特征在于,所述第三处理模块,具体用于:
    接收所述服务器返回的加密后的所述资源,对所述加密后的所述资源进行解密,并保存解密后的所述资源。
  24. 根据权利要求15-23任一权利要求所述的装置,其特征在于,所述资源包括图片、音频和视频中的一种或几种。
  25. 根据权利要求24所述的装置,其特征在于,当所述资源为图片时,所述第一处理 模块,具体用于:对所述图片进行缩小处理;
    当所述资源为音频或视频时,所述第一处理模块,具体用于:对所述音频或视频进行压缩处理。
  26. 根据权利要求15-25任一项所述的方法,其特征在于,当所述资源为应用程序的安装包时,所述第一处理模块,具体用于:
    提取并保存所述安装包的特征信息,其中,所述特征信息占用的存储空间小于所述安装包占用的存储空间,所述安装包的特征信息包括所述安装包的名称、版本号、大小和MD5中的一种或几种。
  27. 根据权利要求26所述的装置,其特征在于,当所述资源为应用程序的安装包时,所述装置还包括:
    保存模块,用于建立并保存所述特征信息和所述应用程序的安装包的对应关系。
  28. 根据权利要求27所述的装置,其特征在于,还包括:
    第六处理模块,用于在所述第一生成模块生成与被删除资源对应的第一标记之后,接收用户对所述第一标记的第五触发请求;根据所述第五触发请求和建立的所述对应关系向所述服务器发送安装包获取请求,接收并保存所述服务器返回的对应应用程序的安装包;以及接收用户对所述对应应用程序的安装包的第六触发请求,并根据所述第六触发请求重新安装对应应用程序的安装包。
  29. 一种移动终端,所述移动终端包括壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:
    接收清理指令,根据所述清理指令获取所述终端保存的资源;
    对所述资源进行处理,并保存处理后资源,其中,所述处理后资源占用的存储空间小于所述资源占用的存储空间;以及
    查询服务器上是否保存有所述资源,若所述服务器上保存有所述资源,则显示删除提示信息,并根据用户执行的操作删除所述资源。
PCT/CN2015/087401 2014-08-28 2015-08-18 终端资源的清理方法、装置及终端 WO2016029807A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/506,706 US10409773B2 (en) 2014-08-28 2015-08-18 Method and device for cleaning up terminal resource and terminal

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201410433471.1 2014-08-28
CN201410433471.1A CN104199913B (zh) 2014-08-28 2014-08-28 终端资源的清理方法、装置及终端
CN201410433004.9 2014-08-28
CN201410433004.9A CN104182532B (zh) 2014-08-28 2014-08-28 终端文件的清理方法、装置及终端

Publications (1)

Publication Number Publication Date
WO2016029807A1 true WO2016029807A1 (zh) 2016-03-03

Family

ID=55398746

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/087401 WO2016029807A1 (zh) 2014-08-28 2015-08-18 终端资源的清理方法、装置及终端

Country Status (2)

Country Link
US (1) US10409773B2 (zh)
WO (1) WO2016029807A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641376A (zh) * 2020-05-11 2021-11-12 深圳Tcl新技术有限公司 一种智能终端的升级优化方法及智能终端

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103124276A (zh) * 2011-11-18 2013-05-29 中国移动通信集团公司 一种扩展通信终端存储空间的方法及通信终端
CN103139264A (zh) * 2011-12-01 2013-06-05 比亚迪股份有限公司 删除数据的处理方法及处理系统
CN103167134A (zh) * 2012-08-23 2013-06-19 深圳市金立通信设备有限公司 一种手机无尽存储系统及方法
CN103281350A (zh) * 2013-04-18 2013-09-04 百度在线网络技术(北京)有限公司 移动终端及其应用程序的管理方法、系统和云端服务器
CN104182532A (zh) * 2014-08-28 2014-12-03 北京金山安全软件有限公司 终端文件的清理方法、装置及终端
CN104199913A (zh) * 2014-08-28 2014-12-10 北京金山安全软件有限公司 终端资源的清理方法、装置及终端

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7689510B2 (en) * 2000-09-07 2010-03-30 Sonic Solutions Methods and system for use in network management of content
US7779097B2 (en) * 2000-09-07 2010-08-17 Sonic Solutions Methods and systems for use in network management of content
CN100426298B9 (zh) 2006-08-28 2016-10-26 华为技术有限公司 一种垃圾文件清理方法及系统
CN102043655B (zh) 2011-01-04 2015-03-25 奇智软件(北京)有限公司 一种强力卸载软件的方法及系统
CN102129380B (zh) 2011-03-10 2015-05-13 宇龙计算机通信科技(深圳)有限公司 一种服务器及提供软件的方法、移动终端
EP2710510A4 (en) * 2011-05-14 2015-05-06 Bitcasa Inc CLOUD FILE SYSTEM WITH SERVER DEPLOYMENT OF USER UNKNOWN ENCRYPTED FILES
CN103309729A (zh) 2012-03-15 2013-09-18 宇龙计算机通信科技(深圳)有限公司 终端和应用程序的管理方法
WO2014036403A2 (en) * 2012-08-31 2014-03-06 Pkware, Inc. System and methods for data verification and replay prevention
CN103092650B (zh) 2013-01-09 2015-11-18 华中科技大学 云环境下基于软件预安装的虚拟机镜像生成方法和系统
KR20140119855A (ko) * 2013-03-27 2014-10-13 주식회사 팬택 클라우드 연동 기능을 갖는 휴대 단말 및 이를 위한 파일 관리 방법
US9442944B2 (en) * 2013-11-12 2016-09-13 Dropbox, Inc. Content item purging
CN103645914B (zh) 2013-11-26 2017-02-08 北京奇虎科技有限公司 一种软件清理方法及装置
CN103631603A (zh) 2013-12-16 2014-03-12 北京奇虎科技有限公司 软件清理方法和系统
CN103942067B (zh) 2014-03-31 2017-11-03 广东欧珀移动通信有限公司 智能设备自动清理软件安装包文件的方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103124276A (zh) * 2011-11-18 2013-05-29 中国移动通信集团公司 一种扩展通信终端存储空间的方法及通信终端
CN103139264A (zh) * 2011-12-01 2013-06-05 比亚迪股份有限公司 删除数据的处理方法及处理系统
CN103167134A (zh) * 2012-08-23 2013-06-19 深圳市金立通信设备有限公司 一种手机无尽存储系统及方法
CN103281350A (zh) * 2013-04-18 2013-09-04 百度在线网络技术(北京)有限公司 移动终端及其应用程序的管理方法、系统和云端服务器
CN104182532A (zh) * 2014-08-28 2014-12-03 北京金山安全软件有限公司 终端文件的清理方法、装置及终端
CN104199913A (zh) * 2014-08-28 2014-12-10 北京金山安全软件有限公司 终端资源的清理方法、装置及终端

Also Published As

Publication number Publication date
US10409773B2 (en) 2019-09-10
US20170255641A1 (en) 2017-09-07

Similar Documents

Publication Publication Date Title
US11356829B2 (en) Dynamic types for activity continuation between electronic devices
US9948728B2 (en) Continuing an activity commenced on a source device with a companion device
USRE48430E1 (en) Two-dimensional code processing method and terminal
US8996889B2 (en) Portable computing device with methodologies for client-side analytic data collection
US10193987B2 (en) Activity continuation between electronic devices
US20160147836A1 (en) Enhanced Network Data Sharing and Acquisition
US10698940B2 (en) Method for searching for multimedia file, terminal device, and server
US10855746B2 (en) Generating content fragments for content distribution
US9614882B2 (en) System independent remote storing of digital content
JP2020524337A (ja) ファイル処理方法及びモバイル端末
US9876846B2 (en) Data transmission
US20180373736A1 (en) Method and apparatus for storing resource and electronic device
CN107222759B (zh) 媒体文件加解密的方法、系统、设备和介质
US20140195589A1 (en) Cloud-based rendering
US9940333B2 (en) File format bundling
CN104199913A (zh) 终端资源的清理方法、装置及终端
CN109255249B (zh) 图像生成方法、装置,图像显示方法、装置和存储介质
US20170125062A1 (en) Multiple views recording
JP2015122054A (ja) 情報処理装置、情報処理方法、及びプログラム
TWI627541B (zh) 將與活動相關的資訊從源電子裝置轉遞至伴隨電子裝置
WO2016029807A1 (zh) 终端资源的清理方法、装置及终端
US20130339723A1 (en) Closed network presentation
US8811756B2 (en) Image compression
JP2019075611A (ja) サーバ、カメラおよび方法
CN113014956B (zh) 视频播放方法以及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15836945

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15506706

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23.06.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15836945

Country of ref document: EP

Kind code of ref document: A1