Data cleaning method and device, equipment and medium

Through inter-process communication between the operating system and the client, cleaning instructions are sent to automatically clean up data in the sandbox, which solves the problem that the operating system cannot directly clean up data in the client sandbox, and improves data cleaning efficiency and equipment operation efficiency.

CN120295547APending Publication Date: 2025-07-11BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410046553.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-11
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

The operating system of the mobile terminal device cannot directly access the data in the client's sandbox, resulting in low data cleaning efficiency and low user manual cleaning efficiency, which can easily lead to data backlog and occupy storage resources.

Method used

The operating system communicates with the client through an inter-process communication interface, and sends cleaning instructions to trigger the client to clean up the data in the sandbox, including information acquisition and conditional judgment to improve the accuracy and efficiency of cleaning.

Benefits of technology

It realizes the automatic cleaning of data in the client sandbox by the operating system, improves cleaning efficiency, reduces the need for manual operations, and optimizes the storage resource management of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295547A_ABST
    Figure CN120295547A_ABST
Patent Text Reader

Abstract

The invention discloses a data cleaning method, device, equipment and medium applied to the technical field of data cleaning, in the method, an operating system obtains a first cleaning instruction for data in a sandbox of a target client, and sends a second cleaning instruction to the target client through an inter-process communication interface connected with the target client. And the target client acquires a second cleaning instruction sent by the operating system from the inter-process communication interface in response to the inter-process communication interface, and cleans the data in the sandbox. In this way, communication between the operating system and the target client can be achieved through the inter-process communication interface, the operating system triggers cleaning of the data in the sandbox of the client, and the efficiency of cleaning of the data in the sandbox of the client is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data cleaning, and particularly relates to a data cleaning method, apparatus, device, and medium. Background Art

[0002] With the development of Internet technology, the number of clients installed in mobile terminals used by users is increasing, and a large amount of data is required for the operation of the clients. It is necessary to clean the data of the clients stored in the mobile terminal to release the storage resources for storing the data of the clients in the mobile terminal and improve the operation performance of the mobile terminal.

[0003] The data of the client is generally stored in a sandbox created by the client. The sandbox can restrict other systems or other clients except the client from accessing the data. This causes the operating system of the mobile terminal device to be unable to clean the data in the sandbox of the client. Summary of the Invention

[0004] In view of this, this application provides a data cleaning method, apparatus, device, and medium, aiming to clean the data in the sandbox of the client by the operating system and improve the cleaning efficiency.

[0005] Based on this, the technical solutions provided in this application are as follows:

[0006] In a first aspect, this application provides a data cleaning method, which is applied to the operating system of a device, and the method includes:

[0007] Obtain a first cleaning instruction for the data in the sandbox of a target client, where the target client is a client installed on the device;

[0008] Send a second cleaning instruction to the target client through an inter-process communication interface connected to the target client, where the second cleaning instruction is used to instruct the target client to clean the data in the sandbox of the target client.

[0009] In a possible implementation, after obtaining the first cleaning instruction for the data in the sandbox of the target client and before sending the second cleaning instruction to the target client through the inter-process communication interface connected to the target client, the method further includes:

[0010] Send a cleaning information acquisition request to the target client installed on the device through the inter-process communication interface;

[0011] Obtain the cleaning information sent by the target client through the inter-process communication interface, where the cleaning information includes information about the data in the sandbox of the target client;

[0012] Determine that the information of the data in the sandbox meets the cleaning conditions.

[0013] In a possible implementation, the cleaning information further includes the cleaning interface information of the target client, and the cleaning interface information is used to describe the cleaning interface of the target client, and the cleaning interface is used to clean the data in the sandbox of the target client.

[0014] In a possible implementation, the sending the second cleaning instruction to the target client includes:

[0015] Send a call instruction to the cleaning interface of the target client, and the cleaning interface is used to clean the data in the sandbox of the target client.

[0016] In a possible implementation, the information of the data in the sandbox includes the information of the cleanable data in the data in the sandbox, and the second cleaning instruction is used to instruct the target client to clean the cleanable data that meets the cleaning conditions.

[0017] In a second aspect, the present application provides a data cleaning method, and the method is applied to a client installed on a device, and the method includes:

[0018] In response to obtaining a second cleaning instruction sent by the operating system of the device from the inter-process communication interface, clean the data in the sandbox.

[0019] In a possible implementation, before the responding to obtaining the second cleaning instruction sent by the operating system of the device and cleaning the data in the sandbox, the method further includes:

[0020] Obtain a cleaning information acquisition request sent by the operating system of the device through the inter-process communication interface;

[0021] Send cleaning information to the operating system through the inter-process communication interface, and the cleaning information includes the information of the data in the sandbox of the client.

[0022] In a possible implementation, the cleaning information further includes the cleaning interface information of the client, and the cleaning interface information is used to describe the cleaning interface of the client, and the cleaning interface is used to clean the data in the sandbox of the client.

[0023] In a possible implementation, the responding to obtaining the second cleaning instruction sent by the operating system of the device from the inter-process communication interface and cleaning the data in the sandbox includes:

[0024] In response to obtaining, from the inter-process communication interface, a call instruction for the cleaning interface sent by the operating system, call the cleaning interface to clean the data in the sandbox, where the cleaning interface is used to clean the data in the sandbox of the target client.

[0025] In a possible implementation, the information of the data in the sandbox includes the information of the cleanable data in the data in the sandbox, and the second cleaning instruction is used to instruct the client to clean the cleanable data that meets the cleaning conditions. Cleaning the data in the sandbox includes:

[0026] Clean the cleanable data in the sandbox that meets the cleaning conditions.

[0027] In a third aspect, the present application provides a data cleaning device, which is applied to the operating system of a device. The device includes:

[0028] A first obtaining unit, configured to obtain a first cleaning instruction for the data in the sandbox of a target client, where the target client is a client installed on the device;

[0029] A first sending unit, configured to send a second cleaning instruction to the target client through an inter-process communication interface connected to the target client, where the second cleaning instruction is used to instruct the target client to clean the data in the sandbox of the target client.

[0030] In a possible implementation, the device further includes:

[0031] A second sending unit, configured to send a cleaning information acquisition request to the target client installed on the device through the inter-process communication interface;

[0032] A second obtaining unit, configured to obtain the cleaning information sent by the target client through the inter-process communication interface, where the cleaning information includes the information of the data in the sandbox of the target client;

[0033] A determination unit, configured to determine that the information of the data in the sandbox meets the cleaning conditions.

[0034] In a possible implementation, the cleaning information further includes the cleaning interface information of the target client, where the cleaning interface information is used to describe the cleaning interface of the target client, and the cleaning interface is used to clean the data in the sandbox of the target client.

[0035] In a possible implementation, the first sending unit is configured to send a second cleaning instruction to the target client, including:

[0036] A first sending unit, configured to send a call instruction to a cleaning interface of a target client, where the cleaning interface is used to clean data in a sandbox of the target client.

[0037] In a possible implementation manner, the information of the data in the sandbox includes the information of the cleanable data in the data in the sandbox, and the second cleaning instruction is used to instruct the target client to clean the cleanable data that meets the cleaning conditions.

[0038] Fourthly, the present application provides a data cleaning device, which is applied to a client installed on a device. The device includes:

[0039] A cleaning unit, configured to clean data in a sandbox in response to obtaining a second cleaning instruction sent by an operating system of the device from an inter - process communication interface.

[0040] In a possible implementation manner, the device further includes:

[0041] An obtaining unit, configured to obtain a cleaning information obtaining request sent by the operating system of the device through the inter - process communication interface;

[0042] A sending unit, configured to send cleaning information to the operating system through the inter - process communication interface, where the cleaning information includes information of data in a sandbox of the client.

[0043] In a possible implementation manner, the cleaning information further includes cleaning interface information of the client, where the cleaning interface information is used to describe a cleaning interface of the client, and the cleaning interface is used to clean data in a sandbox of the client.

[0044] In a possible implementation manner, the cleaning unit is specifically configured to, in response to obtaining, from the inter - process communication interface, a call instruction for a cleaning interface sent by the operating system, call the cleaning interface to clean data in the sandbox, where the cleaning interface is used to clean data in a sandbox of the target client.

[0045] In a possible implementation manner, the information of the data in the sandbox includes the information of the cleanable data in the data in the sandbox, and the second cleaning instruction is used to instruct the client to clean the cleanable data that meets the cleaning conditions. The cleaning unit is configured to clean the data in the sandbox, including:

[0046] The cleaning unit is configured to clean the cleanable data in the sandbox that meets the cleaning conditions.

[0047] Fifthly, the present application provides an electronic device, including:

[0048] One or more processors;

[0049] A storage device on which one or more programs are stored,

[0050] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in the first aspect and any implementation manner of the first aspect, or implement the method described in the second aspect and any implementation manner of the second aspect.

[0051] In a sixth aspect, the present application provides a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, it implements the method described in the first aspect and any implementation manner of the first aspect, or implements the method described in the second aspect and any implementation manner of the second aspect.

[0052] In a seventh aspect, the present application provides a computer program product, which, when running on a device, causes the device to execute the method described in the first aspect and any implementation manner of the first aspect, or implements the method described in the second aspect and any implementation manner of the second aspect.

[0053] Thus, the present application has the following beneficial effects:

[0054] The present application provides a data cleaning method, apparatus, device and medium. In this method, the operating system obtains a first cleaning instruction for the data in the sandbox of the target client, and sends a second cleaning instruction to the target client through the inter-process communication interface connected to the target client. The target client responds to the second cleaning instruction sent by the operating system obtained from the inter-process communication interface, and cleans the data in the sandbox. In this way, the communication between the operating system and the target client can be realized by using the inter-process communication interface, and the operating system triggers the cleaning of the data in the sandbox of the client, thereby improving the efficiency of cleaning the data in the sandbox of the client. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a framework schematic diagram of an exemplary application scenario provided by an embodiment of the present application;

[0056] Figure 2 It is a flowchart of a data cleaning method provided by an embodiment of the present application;

[0057] Figure 3 It is a flowchart of another data cleaning method provided by an embodiment of the present application;

[0058] Figure 4 It is a structural schematic diagram of a data cleaning apparatus provided by an embodiment of the present application;

[0059] Figure 5Schematic diagram of another data cleaning device provided by an embodiment of the present application;

[0060] Figure 6 Schematic diagram of the basic structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0061] To facilitate the understanding and explanation of the technical solutions provided by the embodiments of the present application, the background technology of the present application will be described first below.

[0062] The secure sandbox technology is a security mechanism that can provide an isolated environment for the client. The virtual environment constructed using the secure sandbox technology is called a sandbox, which can also be referred to as a sand box. The data of the client of the mobile terminal device is stored in the sandbox of the client to prevent other systems or other clients from accessing it. The operating system of the mobile terminal device cannot directly access the data in the sandbox of the client, resulting in difficulty for the operating system to clean the data in the sandbox of the client, and the data cleaning efficiency is relatively low. In a possible scenario, it is necessary for the user to manually trigger the data cleaning function provided by the client to clean the data in the sandbox. The efficiency of the user manually triggering the data cleaning is relatively low, which easily leads to the backlog of the data to be cleaned and occupies storage resources.

[0063] Based on this, the embodiments of the present application provide a data cleaning method. In this method, the operating system obtains a first cleaning instruction for the data in the sandbox of the target client, and sends a second cleaning instruction to the target client through the inter-process communication interface connected to the target client. In response to obtaining the second cleaning instruction sent by the operating system from the inter-process communication interface, the target client cleans the data in the sandbox. In this way, the communication between the operating system and the target client can be realized by using the inter-process communication interface, and the operating system triggers the cleaning of the data in the sandbox of the client, thereby improving the efficiency of cleaning the data in the sandbox of the client.

[0064] The following will be described with reference to the scenario example shown in the accompanying drawings. Those skilled in the art can understand that Figure 1 The shown framework schematic diagram is only an example in which the embodiments of the present application can be implemented. The scope of application of the embodiments of the present application is not limited by any aspect of this framework.

[0065] In a possible implementation, refer to Figure 1 as shown Figure 1It is a schematic framework diagram of an exemplary application scenario provided by an embodiment of the present application. The data cleaning method provided by the embodiment of the present application can be applied to a mobile terminal device. The mobile terminal device is, for example, a mobile phone, a tablet computer, or other devices. The operating system 100 of the mobile terminal device communicates with the client 101 of the mobile device through an IPC (Inter-Process Communication) interface. As an example, the operating system 100 includes a cleaning management module 1001. The client 101 includes a cleaning management module 1011. The cleaning management module 1001 communicates with the cleaning management module 1011 through the IPC interface. The cleaning management module 1001 included in the operating system 100 is used to manage the cleaning tasks of the operating system 100. The cleaning tasks of the operating system 100 can be triggered and created by the user, or automatically created based on the running requirements of the operating system 100. The created cleaning tasks can be triggered and executed in real time, or triggered and executed at a scheduled time. The cleaning management module 1001 obtains a first cleaning instruction for the data in the sandbox of the client 101, and sends a second cleaning instruction to the cleaning management module 1011 through the inter-process communication interface connected to the cleaning management module 1011 of the client 101. The second cleaning instruction is used to instruct the client 101 to clean the data in the sandbox of the client 101. The cleaning management module 1011 of the client 101 responds to obtaining the second cleaning instruction and cleans the data in the sandbox of the client 101. In this way, it can be realized that the operating system triggers the cleaning of the data in the sandbox of the client, improving the data cleaning efficiency.

[0066] To facilitate understanding of a data cleaning method provided by an embodiment of the present application, a data cleaning method provided by an embodiment of the present application will be described below with reference to the accompanying drawings.

[0067] See Figure 2 As shown, this figure is a schematic flowchart of a data cleaning method provided by an embodiment of the present application. As Figure 2 shown, the method may include S201 - S203:

[0068] S201: The operating system obtains a first cleaning instruction for the data in the sandbox of the target client.

[0069] The target client and the operating system belong to the same device. The target client is a client installed on this device. The target client can be a pre-configured client that can perform data cleaning in the sandbox. As an example, the information of the client that can clean the data in the sandbox is pre-configured. Based on the information of the client that can clean the data in the sandbox configured, the operating system can determine the client that can clean the data in the sandbox.

[0070] The operating system obtains a first cleaning instruction for the data within the sandbox of the target client. The embodiments of this application do not limit the triggering manner of the first cleaning instruction. In a possible implementation, the first cleaning instruction is generated by the user's trigger or automatically triggered by the operating system. The user and the operating system can configure the time to execute the first cleaning instruction. For example, configure to execute the first cleaning instruction immediately or configure to execute it at a scheduled time. In another possible implementation, the first cleaning instruction can be triggered when a cleaning task is executed. The cleaning task can be set by the user or automatically generated by the operating system. The cleaning task can be executed in real time, that is, after obtaining the cleaning task information, the cleaning task information is immediately executed to generate the first cleaning task. The cleaning task can also be executed at a scheduled time. The scheduled execution time can be set in advance. For example, for a cleaning task set by the user, the user can set the time to execute the cleaning task. The cleaning task can also be executed periodically. For example, for a cleaning task set by the user, the user can set the cycle duration for periodic execution of the cleaning task.

[0071] The first cleaning instruction is for the data within the sandbox of the target client. The target client targeted by the first cleaning instruction can be determined according to the user or the operating system's running requirements. For example, the target client targeted by the first cleaning instruction can be a client selected by the user. The first cleaning instruction includes the client information of the target client. For another example, the target client targeted by the first cleaning instruction can be all the clients that can clean the data within the sandbox. In this way, flexible selection of the target client can be achieved, and the cleaning requirements can be met.

[0072] S202: The operating system sends a second cleaning instruction to the target client through the inter-process communication interface connected to the target client.

[0073] The operating system and the target client communicate through the IPC interface. The IPC interface between the operating system and the target client can be established in advance.

[0074] The operating system sends a second cleaning instruction to the target client through the IPC interface connected to the target client. The second cleaning instruction is used to instruct the target client to clean the data within the sandbox of the target client. The operating system can use the second cleaning instruction to trigger the target client to clean the data within the sandbox. The data format of the second cleaning instruction can be a predefined data format for the target client to process the second cleaning instruction.

[0075] S203: In response to obtaining the second cleaning instruction sent by the operating system of the device from the inter-process communication interface, the target client cleans the data within the sandbox.

[0076] After the target client obtains the second cleaning instruction through the IPC interface, it cleans the data in the sandbox. The cleaning of the data in the sandbox by the target client can be implemented by the cleaning function configured by the target client. In some possible implementation manners, the target client obtains information about the data in the sandbox, determines the data that can be cleaned based on the information about the data in the sandbox, and cleans the data that can be cleaned.

[0077] Based on the relevant content of S201 - S203 above, it can be seen that the operating system can trigger the target client to clean the data in the sandbox, without manually triggering the client to clean the data in the sandbox, improving the cleaning efficiency of the data in the sandbox of the client, facilitating the management of the running resources of the device, and improving the running efficiency of the device.

[0078] In some possible implementation manners, the operating system can also interact with the target client to obtain information about the data in the sandbox of the target client, and then determine whether it is necessary to clean the target client.

[0079] See Figure 3 As shown, the data cleaning method provided by the embodiment of the present application includes the following steps:

[0080] S301: The operating system obtains a first cleaning instruction for the data in the sandbox of the target client.

[0081] For the introduction of the target client and the first cleaning instruction, please refer to the specific description of S201 above, which will not be repeated here.

[0082] It should be noted that in some possible implementation manners, the first cleaning instruction may also include a cleaning condition. The cleaning condition is the condition for triggering the target client to execute the cleaning operation. The cleaning condition included in the first cleaning instruction is related to the cleaning requirement. For the introduction of the cleaning condition, please refer to the following text.

[0083] S302: The operating system sends a cleaning information acquisition request to the target client through the inter - process communication interface.

[0084] After the operating system obtains the first cleaning instruction, it first sends a cleaning information acquisition request to the target client. The cleaning information acquisition request is used to request to obtain information about the data in the sandbox of the target client. The data format of the cleaning information acquisition request can be a pre - agreed data format so that the target client can process the cleaning information acquisition request.

[0085] The embodiments of the present application do not limit the specific content included in the cleaning information acquisition request. In a possible implementation, the content included in the cleaning information acquisition request is determined based on the cleaning condition included in the first cleaning instruction. For example, the cleaning condition is that the data type is a preset type. The first cleaning instruction includes the preset type. The cleaning information acquisition request includes a request for the data type of the data in the sandbox. As another example, the cleaning condition is that the data volume is greater than the cleaning threshold. The first cleaning instruction includes the cleaning threshold. The cleaning information acquisition request includes a request for the data volume of the data in the sandbox. In another possible implementation, the content included in the cleaning information acquisition request is preset content. For example, the cleaning information acquisition request includes a request for information on cleanable data among the data in the sandbox of the target client. By using the obtained information on cleanable data, it is possible to determine the data that can be safely cleaned, avoid incorrect data cleaning, and improve the accuracy of data cleaning. The information on cleanable data includes, for example, one or more of the data volume and data type of the cleanable data.

[0086] S303: The target client obtains a cleaning information acquisition request sent by the operating system of the device through an inter-process communication interface.

[0087] S304: The target client sends cleaning information to the operating system through an inter-process communication interface.

[0088] After obtaining the cleaning information acquisition request, the target client processes the cleaning information acquisition request. Based on the situation of the data in the sandbox, cleaning information is generated. The cleaning information includes information on the data in the sandbox of the client.

[0089] The embodiments of the present application do not limit the specific content included in the information on the data in the sandbox of the client. As an example, the content included in the cleaning information generated by the target client can be preset content. For example, it is pre-set that the information on the data in the sandbox includes information on cleanable data. The information on cleanable data includes one or more of the data volume and data type. As another example, the content included in the cleaning information generated by the target client is related to the content included in the cleaning information acquisition request. For example, the cleaning information acquisition request includes a request for the data type. The information on the data in the sandbox generated by the target client includes the data type of the data in the sandbox. As another example, the cleaning information acquisition request includes a request for the data volume. The information on the data in the sandbox generated by the target client includes the data volume of the data in the sandbox.

[0090] In a possible implementation, the cleaning information further includes cleaning interface information of the target client. The cleaning interface is used to clean the data in the sandbox of the target client. The cleaning interface information is used to describe the cleaning interface of the target client.

[0091] S305: The operating system obtains the cleaning information sent by the target client through the inter-process communication interface.

[0092] The operating system processes the obtained cleaning information. It determines whether the cleaning information meets the cleaning conditions. The cleaning conditions are the conditions for triggering the target client to perform the cleaning operation.

[0093] The embodiments of this application do not limit the specific content of the cleaning conditions. In one possible implementation, the cleaning conditions are pre-set fixed cleaning conditions. For example, the data volume of the cleanable data is greater than the cleaning threshold. Another example is that the preset cleaning time is reached. In another possible implementation, the first cleaning instruction includes the cleaning conditions. The cleaning conditions can be configured by the user or the operating system that triggers the generation of the first cleaning instruction, or the cleaning conditions are determined by the cleaning task executed by the one that triggers the generation of the first cleaning instruction.

[0094] As an example, the cleaning conditions are related to the cleanable data. For example, the cleaning condition is that the data volume of the cleanable data is greater than the cleaning threshold. Another example is that the data type of the cleanable data is a preset type.

[0095] S306: The operating system determines that the information of the data in the sandbox meets the cleaning conditions.

[0096] After the operating system determines that the information of the data in the sandbox included in the obtained cleaning information meets the cleaning conditions, it then executes S307. If the operating system determines that the information of the data in the sandbox does not meet the cleaning conditions, it does not send the second cleaning instruction to the target client. In this way, it can be used to judge whether it is necessary to trigger the target client to clean the data, improving the fine degree of control over the data cleaning of the target client.

[0097] S307: The operating system sends the second cleaning instruction to the target client through the inter-process communication interface connected to the target client.

[0098] For the specific description of the second cleaning instruction, please refer to the specific description of the second cleaning instruction in S202 above, which will not be elaborated here.

[0099] In some possible implementations, the cleaning information includes information about the data that can be cleaned. The second cleaning instruction sent by the operating system to the target client is used to instruct the target client to clean the data that can be cleaned. Further, the second cleaning instruction is used to instruct the target client to clean the data that can be cleaned and meets the cleaning conditions. For example, the cleaning condition is that the amount of the data that can be cleaned is greater than the cleaning threshold. The second cleaning instruction is used to instruct the target client to clean all the data that can be cleaned, or to instruct the target client to clean a part of the data that can be cleaned and whose amount is greater than the cleaning threshold. Another example is that the cleaning condition is that the data type of the data that can be cleaned is a preset type. The second cleaning instruction is used to instruct the target client to clean the data that can be cleaned and is of the preset type.

[0100] In addition, when the cleaning information further includes the cleaning interface information of the target client, the operating system can determine the cleaning interface of the target client by using the cleaning interface information. Or, in some possible implementations, the cleaning interface information of the target client is obtained or configured in advance. The operating system can determine the cleaning interface of the target client by using the cleaning interface information.

[0101] An embodiment of the present application provides a possible implementation manner for the operating system to send a second cleaning instruction to the target client, including: the operating system sends a call instruction to the cleaning interface of the target client. The call instruction is used to trigger the call of the cleaning interface to implement the cleaning of the data in the sandbox of the target client. In this way, the cleaning function provided by the client, that is, the cleaning interface of the client, can be used to implement the cleaning of the data in the sandbox of the client, reducing the additional configuration for the cleaning function of the client and lowering the cost.

[0102] S308: In response to the second cleaning instruction sent by the operating system of the device obtained from the inter-process communication interface, the target client cleans the data in the sandbox.

[0103] For the specific description of S308, please refer to the specific description of S203 above, which will not be repeated here.

[0104] When the second cleaning instruction instructs the target client to clean the data that can be cleaned and meets the cleaning conditions, the target client can, based on the second cleaning instruction, clean the data that can be cleaned and meets the cleaning conditions in the sandbox.

[0105] In a possible implementation manner, an embodiment of the present application provides a specific implementation manner for the target client to clean the data in the sandbox in response to the second cleaning instruction sent by the operating system of the device obtained from the inter-process communication interface, including:

[0106] In response to obtaining, from the inter-process communication interface, a call instruction sent by the operating system for the cleaning interface, the cleaning interface is called to clean the data in the sandbox.

[0107] After the target client obtains the call instruction for the cleaning interface from the IPC interface, the cleaning interface is called to clean the data in the sandbox. The embodiments of the present application do not limit the manner in which the cleaning interface cleans the data in the sandbox. In a possible implementation manner, the manner in which the cleaning interface cleans the data is set in advance. The cleaning interface cleans the data in the sandbox based on the preset manner of cleaning the data. In another possible implementation manner, the cleaning interface can perform data cleaning based on the cleaning manner indicated by the call instruction. For example, the call instruction indicates to clean the cleanable data that meets the cleaning conditions. The cleaning interface can, based on the call instruction, clean the cleanable data in the sandbox that meets the cleaning conditions. In this way, the data that needs to be cleaned can be determined more accurately, the probability of cleaning important data that should not be cleaned can be reduced, and the waste of resources caused by over-cleaning can be avoided.

[0108] Based on the relevant content of S301 - S308 above, the operating system interacts with the target client to obtain cleaning information. In this way, fine-grained cleaning of the data in the sandbox of the target client can be achieved, and the degree of control and the accuracy of cleaning of the data in the sandbox of the target client can be improved.

[0109] Based on the data cleaning method for the operating system of a device provided in the above method embodiments, the embodiments of the present application further provide a data cleaning device, which can be applied to the operating system of a device. The data cleaning device will be described below with reference to the accompanying drawings.

[0110] See Figure 4 As shown, this figure is a schematic structural diagram of a data cleaning device provided in an embodiment of the present application. As Figure 4 shown, the data cleaning device includes:

[0111] A first obtaining unit 401, configured to obtain a first cleaning instruction for the data in the sandbox of the target client, where the target client is a client installed on the device;

[0112] A first sending unit 402, configured to send a second cleaning instruction to the target client through an inter-process communication interface connected to the target client, where the second cleaning instruction is used to instruct the target client to clean the data in the sandbox of the target client.

[0113] In a possible implementation manner, the device further includes:

[0114] A second sending unit 403, configured to send a cleaning information acquisition request to a target client installed on the device through the inter-process communication interface;

[0115] A second acquisition unit 404, configured to acquire cleaning information sent by the target client through the inter-process communication interface, where the cleaning information includes information about data in a sandbox of the target client;

[0116] A determination unit 405, configured to determine that the information about the data in the sandbox meets a cleaning condition.

[0117] In a possible implementation manner, the cleaning information further includes cleaning interface information of the target client, where the cleaning interface information is used to describe a cleaning interface of the target client, and the cleaning interface is used to clean data in the sandbox of the target client.

[0118] In a possible implementation manner, the first sending unit 402 is configured to send a second cleaning instruction to the target client, including:

[0119] The first sending unit 402 is configured to send a call instruction to a cleaning interface of the target client, where the cleaning interface is used to clean data in the sandbox of the target client.

[0120] In a possible implementation manner, the information about the data in the sandbox includes information about cleanable data in the data in the sandbox, and the second cleaning instruction is used to instruct the target client to clean the cleanable data that meets the cleaning condition.

[0121] Based on the data cleaning method for a client installed on a device provided in the foregoing method embodiment, an embodiment of the present application further provides a data cleaning device, and this data cleaning device can be applied to a client installed on a device. The data cleaning device will be described below with reference to the accompanying drawings.

[0122] See Figure 5 As shown in Figure 5 As shown, this is a schematic structural diagram of a data cleaning device provided in an embodiment of the present application. As

[0123] A cleaning unit 501, configured to clean data in a sandbox in response to obtaining a second cleaning instruction sent by an operating system of the device from an inter-process communication interface.

[0124] In a possible implementation manner, the device further includes:

[0125] An acquisition unit 502, configured to acquire a cleaning information acquisition request sent by an operating system of the device through the inter-process communication interface;

[0126] A sending unit 503, configured to send cleaning information to the operating system through the inter-process communication interface, where the cleaning information includes information about data in the sandbox of the client.

[0127] In a possible implementation manner, the cleaning information further includes cleaning interface information of the client, where the cleaning interface information is used to describe the cleaning interface of the client, and the cleaning interface is used to clean data in the sandbox of the client.

[0128] In a possible implementation manner, the cleaning unit 501 is specifically configured to, in response to obtaining, from the inter-process communication interface, a call instruction sent by the operating system for the cleaning interface, call the cleaning interface to clean data in the sandbox, where the cleaning interface is used to clean data in the sandbox of the target client.

[0129] In a possible implementation manner, the information about data in the sandbox includes information about cleanable data in the data in the sandbox, and the second cleaning instruction is used to instruct the client to clean the cleanable data that meets the cleaning conditions. The cleaning unit 501 is configured to clean data in the sandbox, including:

[0130] The cleaning unit 501 is configured to clean the cleanable data in the sandbox that meets the cleaning conditions.

[0131] Based on the data cleaning method for the operating system of a device and the data cleaning method for a client installed on the device provided in the foregoing method embodiments, the present application further provides an electronic device, including: one or more processors; a storage device storing one or more programs thereon, where when the one or more programs are executed by the one or more processors, the one or more processors implement the data cleaning method for the operating system of a device or the data cleaning method for a client installed on the device as described in any of the foregoing embodiments.

[0132] Next, refer to Figure 6 , which shows a schematic structural diagram of an electronic device 600 suitable for implementing the embodiments of the present application. The terminal device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable android devices, tablet computers), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs (televisions), desktop computers, etc.Figure 6 The electronic device shown is merely an example and should not impose any restrictions on the functions and scope of use of the embodiments of the present application.

[0133] As Figure 6 shown, the electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0134] Generally, the following devices may be connected to the I / O interface 605: an input device 608 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 6 the electronic device 600 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.

[0135] In particular, according to the embodiments of the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, the embodiments of the present application include a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the methods of the embodiments of the present application are executed.

[0136] The electronic device provided by the embodiments of the present application and the data cleaning method for the operating system applied to the device provided by the above embodiments or the data cleaning method for the client installed on the device provided by the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment may be referred to the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0137] Based on the data cleaning method for the operating system of a device and the data cleaning method for the client installed on the device provided in the above method embodiments, an embodiment of the present application provides a computer storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the data cleaning method for the operating system of a device or the data cleaning method for the client installed on the device as described in any of the above embodiments.

[0138] It should be noted that the computer-readable medium in the present application may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0139] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (Hyper Text Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0140] The above computer-readable medium may be included in the above electronic device; or it may exist independently without being assembled into the electronic device.

[0141] The above computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to execute the above Method A.

[0142] Computer program code for performing the operations of this application may be written in one or more programming languages or combinations thereof. The above programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, and C++; and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or it may be connected to an external computer (for example, by connecting through the Internet using an Internet service provider).

[0143] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0144] The units described in the embodiments of this application may be implemented in software or in hardware. Among them, the name of the unit / module does not, in some cases, constitute a limitation on the unit itself. For example, the voice data acquisition module may also be described as the "data acquisition module".

[0145] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

[0146] In the context of this application, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM or Flash Memory), an optical fiber, a portable Compact Disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0147] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the systems or devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description in the method section.

[0148] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects and indicates that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist simultaneously. Here, A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or its similar expressions refer to any combination of these items, including any combination of single item (one) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0149] It should also be noted that, in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising said element.

[0150] The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data cleaning method, characterized in that, The method is applied to the operating system of a device, and the method includes: Obtaining a first cleaning instruction for data in a sandbox of a target client, where the target client is a client installed on the device; Sending a second cleaning instruction to the target client through an inter-process communication interface connected to the target client, where the second cleaning instruction is used to instruct the target client to clean the data in the sandbox of the target client.

2. The method according to claim 1, characterized in that, After obtaining the first cleaning instruction for data in the sandbox of the target client and before sending the second cleaning instruction to the target client through the inter-process communication interface, the method further includes: Sending a cleaning information acquisition request to the target client installed on the device through the inter-process communication interface; Obtaining, through the inter-process communication interface, the cleaning information sent by the target client, where the cleaning information includes information about the data in the sandbox of the target client; Determining that the information about the data in the sandbox meets the cleaning conditions.

3. The method according to claim 2, wherein The cleaning information further includes cleaning interface information of the target client, where the cleaning interface information is used to describe the cleaning interface of the target client, and the cleaning interface is used to clean the data in the sandbox of the target client.

4. The method according to any one of claims 1 to 3, characterized in that, The sending the second cleaning instruction to the target client includes: Sending a call instruction to the cleaning interface of the target client, where the cleaning interface is used to clean the data in the sandbox of the target client.

5. The method according to claim 2, wherein The information about the data in the sandbox includes information about cleanable data in the data in the sandbox, and the second cleaning instruction is used to instruct the target client to clean the cleanable data that meets the cleaning conditions.

6. A data cleaning method, characterized in that, The method is applied to a client installed on a device, and the method includes: In response to obtaining a second cleaning instruction sent by the operating system of the device from the inter-process communication interface, cleaning the data in the sandbox.

7. The method according to claim 6, characterized in that, Before responding to obtaining the second cleaning instruction sent by the operating system of the device and cleaning the data in the sandbox, the method further includes: Obtaining, through the inter-process communication interface, a cleaning information acquisition request sent by the operating system of the device; Sending cleaning information to the operating system through the inter-process communication interface, where the cleaning information includes information about the data in the sandbox of the client.

8. The method according to claim 7, wherein The cleaning information further includes cleaning interface information of the client, where the cleaning interface information is used to describe the cleaning interface of the client, and the cleaning interface is used to clean the data in the sandbox of the client.

9. The method according to any one of claims 6 - 8, characterized in that, The responding to obtaining the second cleaning instruction sent by the operating system of the device from the inter-process communication interface and cleaning the data in the sandbox includes: In response to obtaining, from the inter-process communication interface, a call instruction for the cleaning interface sent by the operating system, calling the cleaning interface to clean the data in the sandbox, where the cleaning interface is used to clean the data in the sandbox of the target client.

10. The method according to claim 7, wherein The information of the data in the sandbox includes the information of the cleanable data in the data in the sandbox. The second cleaning instruction is used to instruct the client to clean the cleanable data that meets the cleaning conditions. The cleaning of the data in the sandbox includes: Clean the cleanable data in the sandbox that meets the cleaning conditions.

11. A data cleaning device, characterized in that, The device is applied to the operating system of the device. The device includes: A first acquisition unit, configured to acquire a first cleaning instruction for the data in the sandbox of the target client, where the target client is the client installed on the device; A first sending unit, configured to send a second cleaning instruction to the target client through an inter-process communication interface connected to the target client, where the second cleaning instruction is used to instruct the target client to clean the data in the sandbox of the target client.

12. A data cleaning device, characterized in that, The device is applied to the client installed on the device. The device includes: A cleaning unit, configured to clean the data in the sandbox in response to acquiring the second cleaning instruction sent by the operating system of the device from the inter-process communication interface.

13. An electronic device, characterized in that, Includes: One or more processors; A storage device, on which one or more programs are stored. When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-5, or implement the method according to any one of claims 6-10.

14. A computer-readable medium, characterized in that, A computer program is stored thereon, where the program, when executed by a processor, implements the method according to any one of claims 1-5, or implements the method according to any one of claims 6-10.