Private data processing method and device, electronic equipment and readable storage medium
By configuring and encapsulating the privacy API on the mobile platform, the problem of privacy data processing in the existing technology being difficult to deal with changing privacy policies is solved, and efficient and low-cost privacy data processing and compliance guarantees are achieved.
Patent Information
- Application Number
- CN202411480941.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-10-23
AI Technical Summary
When the prior art processes privacy data on mobile platforms, it is difficult to efficiently respond to changing privacy policies, resulting in long R&D cycles, high labor costs, and easy to introduce new problems.
By configuring and encapsulating multiple privacy application programming interfaces (APIs) according to preset privacy rules, a calling API is generated for provisioning application function module calls, ensuring that the processing of privacy data by the privacy API complies with the privacy policy.
It realizes that without changing each application functional module, ensures that its processing of privacy data complies with the privacy policy, reduces R&D cycle and labor costs, and improves the efficiency of response to changing privacy policies.
Smart Images

Figure CN119557915A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, in particular to the technical fields of mobile platform technology, application development, etc. Specifically, the present disclosure relates to a privacy data processing method and device, an electronic device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the development of technology and society, the protection of personal privacy data has become a focus of widespread concern from all walks of life. As the protection of personal privacy data becomes increasingly important, the need to build a legal and solid privacy protection system has become more urgent. Summary of the invention
[0003] The present disclosure provides a method and apparatus for processing privacy data, an electronic device, a computer-readable storage medium, and a computer program product.
[0004] According to a first aspect of the present disclosure, a privacy data processing method is provided, the method comprising:
[0005] A plurality of privacy application programming interfaces are configured according to preset privacy rules; each of the privacy application programming interfaces corresponds to at least one functional function, and the functional function of the functional function is to process privacy data;
[0006] The configured multiple privacy application programming interfaces are encapsulated to generate a calling application programming interface for the application function module to call.
[0007] According to a second aspect of the present disclosure, a privacy data processing device is provided, the device comprising:
[0008] A configuration module, configured to configure a plurality of privacy application programming interfaces according to preset privacy rules; each of the privacy application programming interfaces corresponds to at least one functional function, and the functional function of the functional function is to process privacy data;
[0009] The encapsulation module is used to encapsulate multiple configured privacy application programming interfaces and generate a calling application programming interface for the application function module to call.
[0010] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising:
[0011] at least one processor; and
[0012] A memory communicatively connected to the at least one processor; wherein,
[0013] The memory stores instructions that can be executed by the above-mentioned at least one processor, and the instructions are executed by the above-mentioned at least one processor so that the above-mentioned at least one processor can execute the above-mentioned privacy data processing method.
[0014] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above-mentioned privacy data processing method.
[0015] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program, which implements the above-mentioned privacy data processing method when executed by a processor.
[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0018] Figure 1 is a flowchart of a privacy data processing method provided by an embodiment of the present disclosure;
[0019] Figure 2 It is a flowchart of some steps of another privacy data processing method provided by an embodiment of the present disclosure;
[0020] Figure 3 It is a flowchart of some steps of another privacy data processing method provided by an embodiment of the present disclosure;
[0021] Figure 4 It is a flowchart of some steps of another privacy data processing method provided by an embodiment of the present disclosure;
[0022] Figure 5 It is a flowchart of some steps of another privacy data processing method provided by an embodiment of the present disclosure;
[0023] Figure 6 It is a flowchart of some steps of another privacy data processing method provided by an embodiment of the present disclosure;
[0024] Figure 7 It is a flowchart of some steps of another privacy data processing method provided by an embodiment of the present disclosure;
[0025] Figure 8 is a structural diagram of a privacy data processing device provided by an embodiment of the present disclosure;
[0026] Fig. 9 The block diagram is a block diagram of an electronic device used to implement the privacy data processing method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0028] Since the software development kit corresponding to the mobile terminal (such as the mobile phone terminal) contains many business modules, once the privacy policy is adjusted, these business modules need to be transformed for privacy compliance, even if these functional modules meet the requirements of the privacy policy.
[0029] In some related technologies, each functional module can be adapted according to the privacy policy to ensure that each functional module meets the requirements of the privacy policy. However, this method relies on the response of each functional module. On the one hand, the R&D cycle is long and the labor cost is high. On the other hand, the developers of each functional module may have inconsistent interpretations of the privacy policy, which can easily introduce new problems and fail to effectively respond to the ever-changing privacy policy.
[0030] In some related technologies, the application can be scanned through the mobile platform to obtain the call status of the API (Application Programming Interface) involved in the privacy policy, and then notify the corresponding functional modules to make rectifications.
[0031] However, this method relies on the scanning results of the mobile platform and is difficult to cover all user scenarios. There may be omissions in the privacy API of individual scenarios, and the scanned functional modules need to be modified separately. Therefore, there are still problems such as long R&D cycle, high labor cost, easy introduction of new problems, and inability to effectively respond to the ever-changing privacy policy.
[0032] The privacy data processing method and device, electronic device, computer-readable storage medium, and computer program product provided in the embodiments of the present disclosure are intended to solve at least one of the above technical problems in the prior art.
[0033] The privacy data processing method provided in the embodiments of the present disclosure may be executed by an electronic device such as a terminal device or a server, and the terminal device may be a vehicle-mounted device, a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The method may be implemented by a processor calling a computer-readable program instruction stored in a memory. Alternatively, the method may be executed by a server.
[0034] Figure 1 FIG. 1 is a flow chart showing a privacy data method provided by an embodiment of the present disclosure. Figure 1 As shown in , the privacy data method provided by the embodiment of the present disclosure may include step S110 and step S120.
[0035] In step S110, multiple privacy application programming interfaces are configured according to preset privacy rules;
[0036] In step S120, the configured multiple privacy application programming interfaces are encapsulated to generate a calling application programming interface for the application function module to call.
[0037] For example, the privacy data processing method provided in the embodiments of the present disclosure can be used for application development on mobile development platforms (such as Android platform, Hongmeng platform, IOS platform, etc.).
[0038] In some possible implementations, in step S110 , the plurality of privacy application programming interfaces (ie, privacy APIs) may be APIs related to privacy data in a mobile development platform.
[0039] APIs are predefined functions that can implement certain functions. Their purpose is to provide developers with the ability to access a set of routines based on certain software or hardware without having to access the source code or understand the details of the internal working mechanism. Similarly, each privacy API also includes one or more functions, at least one of which can implement the function of processing privacy data.
[0040] That is to say, the API related to privacy data, that is, the function function of the corresponding function, is an API for processing privacy data.
[0041] Among them, processing privacy data may include collecting privacy data, storing privacy data, modifying privacy data, deleting privacy data, etc.
[0042] Taking the Hongmeng NEXT platform as an example, Accessibility Kit, TelephonyKit, NetworkKit, LocationKit, AbilityKit, InputKit, SensorServiceKit, etc. all include APIs related to privacy data.
[0043] In some possible implementations, the preset privacy rules can be generated based on the privacy policy, which may include the types of privacy data that can be collected and the corresponding collection frequency and collection scenarios, as well as the storage method of the privacy data and any rules for processing the privacy data, such as the modification permissions of the privacy data.
[0044] In some possible implementations, the preset privacy rules may be obtained by manually interpreting the privacy policy, or by interpreting the privacy policy through a large language model, etc. The disclosed embodiments do not limit the method for obtaining the privacy rules.
[0045] In some possible implementations, configuring multiple privacy APIs according to preset privacy rules can be done by restricting the use conditions of the privacy APIs so that the privacy APIs process the private data in accordance with the preset privacy rules. Since the privacy rules are obtained through the interpretation of the privacy policy, the privacy APIs' processing of the private data in accordance with the preset privacy rules is equivalent to the privacy APIs' processing of the private data in accordance with the privacy policy.
[0046] In some possible implementations, in step S120, the configured multiple privacy APIs are packaged into a new calling API for the application function module to call.
[0047] In some possible implementations, encapsulating multiple configured privacy APIs may include establishing API calling functions, standards, access protocols, authentication methods, etc. according to the configured privacy APIs, so that the API calling can be integrated into the software development environment for application function modules to call.
[0048] Of course, any other method that can implement API encapsulation for application function modules to call is also within the protection scope of the embodiments of the present disclosure.
[0049] In some possible implementations, the application function module may be a software development kit of a mobile development platform.
[0050] Taking Hongmeng NEXT platform as an example, the application function module can be HAP; taking Android platform as an example, the application function module can be SDK (Software Development Kit)
[0051] After the privacy API configuration is completed, if the privacy API's processing of privacy data complies with the privacy policy, then the encapsulated calling API's processing of privacy data also complies with the privacy policy. The application's functional modules can process privacy data by calling the API and using the functional functions corresponding to the calling API to ensure that the application's functional modules' processing of privacy data complies with the privacy policy.
[0052] In the privacy data processing method provided in the embodiment of the present disclosure, the privacy API is configured and encapsulated according to the privacy rules so that the processing of privacy data by the privacy API complies with the privacy policy, thereby ensuring that the processing of privacy data by the application function module through the privacy API also complies with the privacy policy.
[0053] The following is a detailed introduction to the privacy data processing method provided by the embodiment of the present disclosure.
[0054] As described above, in some possible implementations, configuring multiple privacy APIs according to preset privacy rules may be to restrict the usage conditions of the privacy APIs so that the privacy APIs process privacy data in accordance with the preset privacy rules.
[0055] Figure 2 A flowchart diagram is shown of a specific implementation method of limiting the usage conditions of the privacy API so that the privacy API's processing of privacy data complies with preset privacy rules.
[0056] like Figure 2 As shown, limiting the usage conditions of the privacy API so that the privacy API processes the privacy data in accordance with the preset privacy rules may include step S210 and step S220.
[0057] In step S210, according to the preset privacy rules, the use conditions of the function functions of the corresponding functions of the plurality of privacy application programming interfaces are determined;
[0058] In step S220, multiple privacy application programming interfaces are configured according to the usage conditions.
[0059] In some possible implementations, in step S210, the usage restrictions of the privacy data can be determined according to preset privacy rules, and the usage conditions of the function functions of the function used to process the privacy data can be determined according to the usage restrictions of the privacy data, and then the usage conditions of the function functions of each privacy API corresponding to the function can be determined.
[0060] In some possible implementations, in step S220, the usage conditions of the function functionality of the function corresponding to the privacy API configure the privacy API so that the use of the function corresponding to the privacy API satisfies the usage conditions of the function functionality of the function corresponding to the privacy API.
[0061] Since APIs are predefined functions, configuring privacy APIs by restricting the usage conditions of the corresponding function functions can avoid modifying the pre-defined functions in the API. On the one hand, this reduces the workload of configuring the privacy API. On the other hand, if the privacy rules change, you only need to change the usage conditions of the corresponding function functions.
[0062] As described above, in some specific implementations, the privacy rules may include the types of private data that can be collected. Figure 3 The flowchart shows a specific implementation method of limiting the usage conditions of the privacy API so that the privacy API's processing of privacy data complies with the preset privacy rules when the privacy rules include the types of privacy data that can be collected.
[0063] like Figure 3 As shown, limiting the usage conditions of the privacy API so that the privacy API processes the privacy data in accordance with the preset privacy rules may include step S310, step S320, and step S330.
[0064] In step S310, according to the preset privacy rules, it is determined whether the privacy data can be collected or not collected;
[0065] In step S320, the function function of the corresponding function is to configure the privacy application programming interface for collecting collectible privacy data to be called by the application function module;
[0066] In step S330, the privacy application programming interface of the corresponding function for collecting non-collectible privacy data is configured as non-callable.
[0067] In some possible implementations, in step S310, collectible privacy data and non-collectible privacy data may be determined according to the types of collectible privacy data.
[0068] In some possible implementations, in step S320 and step S330, a switch can be set for each privacy API, and the privacy API switch for the corresponding function to collect collectible privacy data is turned on for the application function module to call, and the privacy switch for the corresponding function to collect non-collectible privacy data is turned off to make it uncallable.
[0069] By making some privacy APIs uncallable, it is possible to simply and directly make it impossible to collect specific types of privacy data. For example, the user identity information can be made uncollectable by setting the privacy API that collects the user identity information to be uncallable.
[0070] In some specific implementations, the privacy rules may also include collection scenarios for collecting privacy data. Figure 4 The flowchart shows a specific implementation method of limiting the usage conditions of the privacy API so that the privacy API processes the privacy data in accordance with the preset privacy rules when the privacy rules include the collection scenario of the privacy data.
[0071] like Figure 4 As shown, limiting the usage conditions of the privacy API so that the privacy API processes the privacy data in accordance with the preset privacy rules may include step S410 and step S420.
[0072] In step S410, according to the preset privacy rules, the data collection scenario of the private data is determined;
[0073] In step S420, the first privacy application programming interface is configured to be called by the application function module when the usage scenario of the application function module meets the data collection scenario.
[0074] In some possible implementations, in step S410, the collection scenario for collecting the privacy data in the privacy rule is the data collection scenario for the privacy data.
[0075] In some specific implementations, data collection scenarios may include foreground scenarios, background scenarios, screen-on scenarios, screen-off scenarios, etc.
[0076] In some possible implementations, in step S420, the first privacy application programming interface (first privacy API) corresponds to at least one function, and the function of the function is to collect privacy data, that is, the first privacy API is also a privacy API, which is a privacy API used to collect privacy data.
[0077] In some possible implementations, scene information representing the current scene of the application function module can be received, and by comparing the scene information with the data collection scene, when the comparison is consistent, the corresponding privacy API (i.e., the first privacy API) can be called by the referenced program function module.
[0078] Through the above settings, privacy data can be protected in some specific scenarios. For example, setting the background scenario to not call the privacy API can prevent the application function module from collecting privacy data in the background.
[0079] In some specific implementations, the privacy rules may also include a frequency for collecting privacy data. Figure 5 The flowchart shows a specific implementation method of limiting the usage conditions of the privacy API so that the privacy API processes the privacy data in accordance with the preset privacy rules when the privacy rules include the frequency of collecting privacy data.
[0080] like Figure 5 As shown, limiting the usage conditions of the privacy API so that the privacy API processes the privacy data in accordance with the preset privacy rules may include step S510 and step S520.
[0081] In step S510, the data collection frequency of the privacy data is determined according to the preset privacy rules;
[0082] In step S520, the second privacy application programming interface is configured to be called by the application function module when the frequency of the application function module calling the privacy data is not greater than the data collection frequency.
[0083] In some possible implementations, in step S510, the collection frequency of the privacy data in the privacy rule is the data collection frequency of the privacy data.
[0084] In some specific implementations, the data collection frequency may be based on natural days as a basic unit, or the collection frequency may be freely set.
[0085] In some possible implementations, in step S520, the second privacy application programming interface (second privacy API) corresponds to at least one function function, and the function function of the function function is to collect privacy data, that is, the second privacy API is also a privacy API, which is a privacy API used to collect privacy data.
[0086] In some possible implementations, frequency information representing the frequency at which an application function module collects privacy information can be received, and by comparing the frequency information with the data collection frequency, if the frequency information is not greater than the data collection frequency, the corresponding privacy API (i.e., the second privacy API) can be called by the referenced program function module.
[0087] Through the above settings, it is possible to limit the frequency of privacy data collection, such as setting it to collect privacy data only on a daily basis.
[0088] In some specific implementations, the privacy rules may also include the storage method of the privacy data. Figure 6The flowchart shows a specific implementation method of limiting the use conditions of the privacy API so that the privacy API's processing of privacy data complies with the preset privacy rules when the privacy rules include the storage method of the privacy data.
[0089] like Figure 6 As shown, limiting the usage conditions of the privacy API so that the privacy API processes the privacy data in accordance with the preset privacy rules may include step S610 and step S620.
[0090] In step S610, a data caching method of the private data is determined according to a preset privacy rule;
[0091] In step S620, the third privacy application programming interface is configured to write the private data into the storage device using a data cache method.
[0092] In some possible implementations, in step S610, the storage method of the privacy data in the privacy rule is the data caching method of the privacy data.
[0093] In some specific implementations, the data caching methods of private data may include memory caching (ie, temporary storage) and file caching (ie, persistent storage).
[0094] In some possible implementations, in step S620, the third privacy application programming interface (third privacy API) corresponds to at least one function, and the function of the function is to write privacy data to a storage device, that is, the third privacy API is also a privacy API, which is a privacy API for storing privacy data.
[0095] In some possible implementations, when the data caching mode of the private data is temporary storage, the privacy API corresponding to the function of the memory cache can be set to be callable, and the privacy API corresponding to the function of the file cache can be set to be non-callable. Conversely, the privacy API corresponding to the function of the memory cache can be set to be non-callable, and the privacy API corresponding to the function of the file cache can be set to be callable.
[0096] Through the above settings, it is possible to limit the storage method of private data, such as setting it to only temporary private data.
[0097] In some possible implementations, the above settings for the privacy API can be implemented by setting a function module.
[0098] Figure 7 A flowchart of a specific implementation method of setting a privacy API by setting a functional module is shown, such as Figure 7 As shown, setting the privacy API by setting the functional module may include step S710, step S720, and step S730.
[0099] In step S710, a function module is provided for calling the privacy application programming interface function according to preset conditions;
[0100] In step S720, calling conditions of multiple privacy application programming interfaces are determined according to preset privacy rules;
[0101] In step S730, multiple privacy application programming interfaces are configured according to the calling conditions by combining the set functional modules.
[0102] In some specific implementations, in step S710, the functional module may be a cloud-controlled switch.
[0103] In some specific implementations, a separate cloud control switch can be set for each privacy API. When the cloud control switch is turned on, the privacy API can be called; when the cloud control switch is turned off, the privacy API cannot be called.
[0104] In some specific implementations, separate cloud control switches can be set for the foreground scene, background scene, screen-on scene, and screen-off scene. When the cloud control switch corresponding to the foreground scene is turned on, the privacy API can be called in the foreground scene; when the cloud control switch corresponding to the foreground scene is turned off, the privacy API cannot be called in the foreground scene.
[0105] Similarly, when the cloud control switch corresponding to the background scene is turned on, the privacy API can be called in the background scene; when the cloud control switch corresponding to the background scene is turned off, the privacy API cannot be called in the background scene. When the cloud control switch corresponding to the screen-on scene is turned on, the privacy API can be called in the screen-on scene; when the cloud control switch corresponding to the screen-on scene is turned off, the privacy API cannot be called in the screen-on scene. When the cloud control switch corresponding to the screen-off scene is turned on, the privacy API can be called in the screen-off scene; when the cloud control switch corresponding to the screen-off scene is turned off, the privacy API cannot be called in the screen-off scene.
[0106] In some specific implementations, you can set a cloud control switch corresponding to the collection frequency in days and a cloud control switch corresponding to the free setting. When the cloud control switch corresponding to the collection frequency in days is turned on, the privacy API can be called at a frequency of days. When the cloud control switch corresponding to the free setting is turned on, the frequency of calling the privacy API can be freely set.
[0107] In some specific implementations, a cloud control switch corresponding to the cloud control switch of temporary storage may be set. When the cloud control switch corresponding to the temporary storage is turned on, the function function of the corresponding function is a callable privacy API setting for the memory cache, and when the cloud control switch corresponding to the temporary storage is turned off, the function function of the corresponding function is a callable privacy API setting for the memory cache.
[0108] In some specific implementations, a cloud control switch corresponding to the cloud control switch of permanent storage may be set. When the cloud control switch corresponding to the permanent storage is turned on, the function function of the corresponding function is that the privacy API setting of the memory cache is callable, and when the cloud control switch corresponding to the permanent storage is turned off, the function function of the corresponding function is that the privacy API setting of the memory cache is not callable.
[0109] The two storage modes can be opened and closed separately, or opened and closed simultaneously, and the corresponding storage intervals can be configured separately.
[0110] In some specific implementations, in step S720 and step S730, the configuration of the privacy API is achieved by combining cloud control switches according to the calling conditions.
[0111] By setting cloud control switches, developers can configure privacy APIs through a combination of switches, further reducing developers' workload and improving the efficiency of API configuration.
[0112] In some possible implementations, when the privacy policy changes, new privacy rules are generated. When the privacy rules are updated, the above-mentioned method is used to reconfigure and encapsulate multiple privacy application programming interfaces according to the updated privacy rules.
[0113] The privacy API is configured and encapsulated according to the updated privacy rules, so that the privacy API's processing of privacy data complies with the updated privacy policy, thereby ensuring that the processing of privacy data by the application function modules through the privacy API also complies with the updated privacy policy. This does not require each application function module to be modified separately according to the updated privacy policy, solving the problems of long R&D cycle, high labor cost, easy introduction of new problems, and inability to efficiently respond to ever-changing privacy policies.
[0114] In order to better support the application function modules to call the API, facilitate the access of various businesses, and improve the protection of privacy compliance, the disclosed embodiment also controls the quality of privacy data processing in the development stage, compilation stage, testing stage, and online stage.
[0115] In some possible implementations, during the development phase, a software development kit is generated based on calling an application programming interface, and the generated software development kit is used for being called by an application function module.
[0116] During the development phase, you can generate a software development kit based on the API call through integration. Specifically, the API call supports two integration methods: HAR (static shared library) and OHPM (OpenHarmony Package Manager, which is referenced by the OpenHarmony third-party library center website and command line tool) repository. After integration, developers do not need to record or consult the privacy API during development using HAR or OHPM. When writing code involving the privacy API, the system will automatically prompt you to replace it with the API call.
[0117] In some possible implementations, during the compilation phase, the submitted code is checked to obtain the privacy interface code in the submitted code; and the privacy interface code is replaced with the interface call code.
[0118] Among them, the privacy interface code is the code used to call the privacy application programming interface; the interface calling code is the code used to call the encapsulated generated calling application programming interface.
[0119] During the compilation phase, when the code is submitted to the repository, the submitted code will be automatically scanned and detected. If it is found that the privacy API has not been replaced with the call API, a prompt will be given, and it needs to be modified before it can be submitted to the repository. During the compilation process, all the code in the code library will be checked, and when the privacy data processing method is updated, it will be prompted to modify it to call the API.
[0120] In some possible implementations, during the testing phase, the test results of the application function module testing phase are received, and the plurality of privacy application programming interfaces are configured according to the test results.
[0121] During the testing phase, static testing and dynamic testing are performed. Static testing includes decompilation and scanning to check whether the processing of private data complies with the privacy policy. Dynamic testing can dynamically detect whether the processing of private data complies with the privacy policy by monitoring the privacy API calls, scenarios, and cache logs.
[0122] When static testing and dynamic testing show that the processing of private data does not comply with the privacy policy, the privacy API is configured according to the test results so that the processing of private data by the privacy API complies with the privacy policy.
[0123] In some possible implementations, in the online stage, monitoring results of the application function module after going online are received, and multiple privacy application programming interfaces are configured according to the monitoring results.
[0124] In the online stage, after the application function module is launched, online privacy data compliance monitoring and early warning are carried out through data reports based on data collection indicators, and the privacy API is configured based on the monitoring results after launch to ensure that the privacy API's processing of privacy data complies with the privacy policy.
[0125] Based on Figure 1 The same principle as shown in the method, Figure 8 A schematic diagram of the structure of a privacy data processing device provided by an embodiment of the present disclosure is shown. Figure 8 As shown, the privacy data processing device 80 may include:
[0126] Configuration module 810, configured to configure multiple privacy application programming interfaces according to preset privacy rules; each privacy application programming interface corresponds to at least one function, and the function of the function function is to process privacy data;
[0127] The encapsulation module 820 is used to encapsulate the configured multiple privacy application programming interfaces and generate a calling application programming interface for the application function module to call.
[0128] In the privacy data processing device provided in the embodiment of the present disclosure, the privacy API is configured and encapsulated according to the privacy rules so that the processing of privacy data by the privacy API complies with the privacy policy, thereby ensuring that the processing of privacy data by the application function module through the privacy API also complies with the privacy policy.
[0129] In some possible implementations, the configuration module includes: a condition determination unit, used to determine the usage conditions of the function functions corresponding to multiple privacy application programming interfaces according to preset privacy rules; and an interface configuration unit, used to configure multiple privacy application programming interfaces according to the usage conditions.
[0130] In some possible implementations, the condition determination unit is used to: determine the privacy data that can be collected and the privacy data that cannot be collected according to preset privacy rules; the interface configuration unit is used to: configure the privacy application programming interface whose function corresponds to the function of collecting the privacy data that can be collected to be called by the application function module; and configure the privacy application programming interface whose function corresponds to the function of collecting the privacy data that cannot be collected to be non-callable.
[0131] In some possible implementations, the condition determination unit is used to: determine the data collection scenario of privacy data according to preset privacy rules; the interface configuration unit is used to: configure the first privacy application programming interface to be called by the application function module when the usage scenario of the application function module meets the data collection scenario; the first privacy application programming interface corresponds to at least one function function, and the function function of the function function is to collect privacy data.
[0132] In some possible implementations, the condition determination unit is used to: determine the data collection frequency of privacy data according to preset privacy rules; the interface configuration unit is used to: configure the second privacy application programming interface to be called by the application function module when the frequency of the application function module calling the privacy data is not greater than the data collection frequency; the second privacy application programming interface corresponds to at least one function function, and the function function of the function function is to collect privacy data.
[0133] In some possible implementations, the condition determination unit is used to: determine the data caching method of privacy data according to preset privacy rules; the interface configuration unit is used to: configure the third privacy application programming interface to write the privacy data to the storage device using the data caching method; the third privacy application programming interface corresponds to at least one function function, and the function function of the function function is to write the privacy data to the storage device.
[0134] In some possible implementations, the privacy data processing device also includes: a functional module, which is used to set a functional module that calls the privacy application programming interface function according to preset conditions; a configuration module is used to: determine the calling conditions of multiple privacy application programming interfaces according to preset privacy rules; and configure multiple privacy application programming interfaces according to the calling conditions by combining the set functional modules.
[0135] In some possible implementations, the privacy data processing device further includes: an update module, configured to reconfigure a plurality of privacy application programming interfaces according to the updated privacy rules when the privacy rules are updated.
[0136] In some possible implementations, the privacy data processing device also includes: a development module, which is used to generate a software development kit based on calling an application programming interface, and the software development kit is used for being called by the application function module.
[0137] In some possible implementations, the privacy data processing device also includes: a compilation module, used to detect the submitted code and obtain the privacy interface code in the submitted code; the privacy interface code is used to call the privacy application programming interface; the privacy interface code is replaced with the interface calling code; the interface calling code is used to call the encapsulated generated calling application programming interface.
[0138] In some possible implementations, the privacy data processing device also includes: a testing module, which is used to receive test results of the application function module testing phase and configure multiple privacy application programming interfaces according to the test results.
[0139] In some possible implementations, the privacy data processing device also includes: an online module, which is used to receive monitoring results after the application function module goes online, and configure multiple privacy application programming interfaces according to the monitoring results.
[0140] It can be understood that the above modules of the privacy data processing device in the embodiment of the present disclosure have the function of implementing Figure 1 The functions of the corresponding steps of the privacy data processing method in the embodiment shown in . The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. The above modules can be software and / or hardware, and the above modules can be implemented separately or integrated with multiple modules. For the functional description of each module of the above privacy data processing device, please refer to Figure 1 The corresponding description of the privacy data processing method in the embodiment shown in will not be repeated here.
[0141] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0142] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0143] The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the privacy data processing method provided in the embodiment of the present disclosure.
[0144] Compared with the prior art, this electronic device configures and encapsulates the privacy API according to privacy rules so that the processing of privacy data by the privacy API complies with the privacy policy, thereby ensuring that the processing of privacy data by the application function module through the privacy API also complies with the privacy policy.
[0145] The readable storage medium is a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the privacy data processing method provided in the embodiment of the present disclosure.
[0146] Compared with the prior art, the readable storage medium configures and encapsulates the privacy API according to privacy rules so that the privacy API's processing of privacy data complies with the privacy policy, thereby ensuring that the application function module's processing of privacy data through the privacy API also complies with the privacy policy.
[0147] The computer program product includes a computer program, and when the computer program is executed by a processor, the privacy data processing method provided in the embodiment of the present disclosure is implemented.
[0148] Compared with the existing technology, this computer program product configures and encapsulates the privacy API according to privacy rules so that the privacy API's processing of privacy data complies with the privacy policy, thereby ensuring that the application function module's processing of privacy data through the privacy API also complies with the privacy policy.
[0149] Fig. 9 A schematic block diagram of an example electronic device 900 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0150] like Fig. 9 As shown, the device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0151] A number of components in the device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0152] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above, such as the privacy data processing method. For example, in some embodiments, the privacy data processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the privacy data processing method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the privacy data processing method in any other appropriate manner (e.g., by means of firmware).
[0153] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0154] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0155] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.
[0156] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0157] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0158] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0159] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0160] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for processing private data, comprising: A plurality of privacy application programming interfaces are configured according to preset privacy rules; each of the privacy application programming interfaces corresponds to at least one functional function, and the functional function of the functional function is to process privacy data; The configured multiple privacy application programming interfaces are encapsulated to generate a calling application programming interface for the application function module to call.
2. The method according to claim 1, wherein: The configuring of multiple privacy application programming interfaces according to preset privacy rules includes: Determining usage conditions of the function functions corresponding to the plurality of privacy application programming interfaces according to preset privacy rules; According to the usage conditions, a plurality of the privacy application programming interfaces are configured.
3. The method according to claim 2, wherein: The determining, according to the preset privacy rules, the usage conditions of the function functions corresponding to the plurality of privacy application programming interfaces comprises: According to the preset privacy rules, determine the private data that can be collected and the private data that cannot be collected; The configuring of the plurality of privacy application programming interfaces according to the usage conditions includes: The function function of the corresponding function is to configure the privacy application programming interface for collecting the collectible privacy data to be called by the application function module; The privacy application programming interface of the corresponding function, whose function is to collect the non-collectible privacy data, is configured to be non-callable.
4. The method according to claim 2, wherein: The determining, according to the preset privacy rules, the usage conditions of the function functions corresponding to the plurality of privacy application programming interfaces comprises: Determine the data collection scenario for private data based on preset privacy rules; The configuring of the plurality of privacy application programming interfaces according to the usage conditions includes: The first privacy application programming interface is configured to be called by the application function module when the usage scenario of the application function module meets the data collection scenario; the first privacy application programming interface corresponds to at least one function function, and the function function of the function function is to collect the privacy data.
5. The method according to claim 2, wherein: The determining, according to the preset privacy rules, the usage conditions of the function functions corresponding to the plurality of privacy application programming interfaces comprises: Determine the frequency of data collection for private data based on preset privacy rules; The configuration of the usage conditions of the function functions of the plurality of privacy application programming interfaces corresponding to the functions according to the preset privacy rules includes: The second privacy application programming interface is configured to be called by the application function module when the frequency of the application function module calling the privacy data is not greater than the data collection frequency; the second privacy application programming interface corresponds to at least one function function, and the function function of the function function is to collect the privacy data.
6. The method according to claim 2, wherein: The determining, according to the preset privacy rules, the usage conditions of the function functions corresponding to the plurality of privacy application programming interfaces comprises: Determine the data caching method for private data according to preset privacy rules; The configuration of the usage conditions of the function functions of the plurality of privacy application programming interfaces corresponding to the functions according to the preset privacy rules includes: The third privacy application programming interface is configured to use the data caching method to write the privacy data into the storage device; the third privacy application programming interface corresponds to at least one function, and the function of the function is to write the privacy data into the storage device.
7. The method according to claim 1, further comprising: Setting a function module for calling the privacy application programming interface function according to preset conditions; The configuring of multiple privacy application programming interfaces according to preset privacy rules includes: Determining calling conditions of a plurality of the privacy application programming interfaces according to preset privacy rules; According to the calling conditions, the plurality of privacy application programming interfaces are configured by combining the functional modules.
8. The method according to claim 1, further comprising: When the privacy rules are updated, multiple privacy application programming interfaces are reconfigured according to the updated privacy rules.
9. The method according to claim 1, further comprising: A software development kit is generated according to the calling application programming interface, and the software development kit is used for being called by the application function module.
10. The method according to claim 1, further comprising: Detect the submitted code and obtain the privacy interface code in the submitted code; The privacy interface code is used to call the privacy application programming interface; Replace the privacy interface code with the interface calling code; The interface calling code is used to call the calling application programming interface.
11. The method according to claim 1, further comprising: Receive test results of the application function module testing phase, and configure the plurality of privacy application programming interfaces according to the test results.
12. The method according to claim 1, further comprising: Receive monitoring results after the application function module goes online, and configure the plurality of privacy application programming interfaces according to the monitoring results.
13. A privacy data processing device, comprising: A configuration module, configured to configure a plurality of privacy application programming interfaces according to preset privacy rules; each of the privacy application programming interfaces corresponds to at least one functional function, and the functional function of the functional function is to process privacy data; The encapsulation module is used to encapsulate multiple configured privacy application programming interfaces and generate a calling application programming interface for the application function module to call.
14. The device according to claim 13, wherein: The configuration module includes: a condition determination unit, configured to determine, according to a preset privacy rule, usage conditions of the function functions of the plurality of privacy application programming interfaces corresponding to the functions; An interface configuration unit is used to configure the plurality of privacy application programming interfaces according to the usage conditions.
15. The device according to claim 14, wherein: The condition determination unit is used to: determine the privacy data that can be collected and the privacy data that cannot be collected according to the preset privacy rules; The interface configuration unit is used to: configure the privacy application programming interface of the corresponding function for collecting the collectible privacy data to be called by the application function module; and configure the privacy application programming interface of the corresponding function for collecting the non-collectible privacy data to be non-callable.
16. The device according to claim 14, wherein: The condition determination unit is used to: determine the data collection scenario of the privacy data according to the preset privacy rules; The interface configuration unit is used to: configure the first privacy application programming interface to be called by the application function module when the usage scenario of the application function module meets the data collection scenario; the first privacy application programming interface corresponds to at least one function function, and the function function of the function function is to collect the privacy data.
17. The device according to claim 14, wherein: The condition determination unit is used to: determine the data collection frequency of the privacy data according to the preset privacy rules; The interface configuration unit is used to configure the second privacy application programming interface to be called by the application function module when the frequency of the application function module calling the privacy data is not greater than the data collection frequency; the second privacy application programming interface corresponds to at least one function function, and the function function of the function function is to collect the privacy data.
18. The device according to claim 14, wherein: The condition determination unit is used to: determine the data caching mode of the private data according to the preset privacy rules; The interface configuration unit is used to: configure the third privacy application programming interface to use the data caching method to write the privacy data into the storage device; the third privacy application programming interface corresponds to at least one function, and the function of the function function is to write the privacy data into the storage device.
19. The apparatus according to claim 13, further comprising: A function module, used to set a function module that calls the privacy application programming interface function according to preset conditions; The configuration module is used to: determine the calling conditions of the multiple privacy application programming interfaces according to the preset privacy rules; and configure the multiple privacy application programming interfaces according to the calling conditions by combining the functional modules.
20. The apparatus according to claim 13, further comprising: An update module is used to reconfigure multiple privacy application programming interfaces according to the updated privacy rules when the privacy rules are updated.
21. The apparatus according to claim 13, further comprising: The development module is used to generate a software development kit according to the calling application programming interface, and the software development kit is used for being called by the application function module.
22. The apparatus according to claim 13, further comprising: Compilation module, used to detect the submitted code and obtain the privacy interface code in the submitted code; The privacy interface code is used to call the privacy application programming interface; Replace the privacy interface code with the interface calling code; The interface calling code is used to call the calling application programming interface.
23. The apparatus according to claim 13, further comprising: The testing module is used to receive the test results of the application function module testing phase and configure the multiple privacy application programming interfaces according to the test results.
24. The apparatus of claim 13, further comprising: The online module is used to receive the monitoring results of the application function module after it goes online, and configure the multiple privacy application programming interfaces according to the monitoring results.
25. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 12.
26. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-12.
27. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Private access condition detection method and device, computer equipment and medium
CN114238973A
Privacy computing device and privacy computing method
CN115603890A
Privacy calculation method based on API (Application Program Interface), API calling end and API providing end
CN115987690A
Interface calling monitoring method and device, electronic equipment and storage medium
CN117170978A
Privacy protection method and device, equipment, medium and product
CN117786671A