Data management and control method, electronic equipment and storage medium
By setting a unified data management and control function in electronic devices, users can enable the system traceless mode with one click, and the operating system automatically manages the traceless mode of multiple applications, solving the problem of cumbersome operation of managing multiple applications in the existing technology, and improving the management efficiency and privacy protection effect.
Patent Information
- Application Number
- CN202410101709.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-24
- Publication Date
- 2025-07-25
AI Technical Summary
In the prior art, users need to manage historical data through interface operations of each application, which makes it difficult to efficiently protect user privacy.
Provide a data management method. By setting a unified data management function in electronic devices, users can enable the system traceless mode with one click, and the operating system automatically manages the traceless mode of multiple applications, including not generating or automatically deleting operation data, to realize unified data management at the system level.
It enables users to manage the traceless mode status of all applications in one click without having to operate through each application interface alone, saving operation time, improving data management efficiency, and protecting user privacy.
Smart Images

Figure CN120378526A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of terminals, and specifically relates to a data control method, an electronic device, and a storage medium. Background Art
[0002] During the use of an electronic device, a large amount of historical data will be generated along with various user operations. For example, browser access data, video playback data, shopping data, etc. These historical data reflect the user's historical operation behaviors.
[0003] If it is necessary to manage the historical data in multiple applications to protect user privacy, such as setting private use or deleting historical data, the user needs to enter the operation interface of the application to perform operations, which takes a long time. Summary of the Invention
[0004] The purpose of this application is to provide a data control method, an electronic device, and a storage medium.
[0005] In a first aspect, an embodiment of this application provides a data control method, which is applied to an electronic device and includes: in response to a user operation, configuring a data control policy for data of multiple applications running on the electronic device, where the data control policy is used to control the data generated in multiple applications respectively, and the multiple applications include a first application and a second application; performing data control on the data generated in a first scenario when the first application runs based on the data control policy, and performing data control on the data generated in a second scenario when the second application runs based on the data control policy.
[0006] That is, in the embodiment of this application, the data control policy can be to perform private control on the application program, which means to control the operation data generated during the operation of the application program, such as not generating or automatically deleting the user's operation records, so as to protect user privacy. The data control policy can be enabled by a data control mode, and the data control mode can be the system private mode in the electronic device. When the electronic device is in the data control mode, batch private control is performed on multiple application programs in the electronic device. The first scenario and the second scenario can be the same scenario or different scenarios. For example, the first scenario and the second scenario can be the following scenarios respectively: a playback scenario, such as playing music, video, etc.; a consumption scenario, such as purchasing goods, rewarding the anchor, etc.; a communication scenario, such as making a call, chatting, etc.
[0007] Through the method of this application, system-level unified data control can be achieved, enabling the user to control the private mode status of all application programs with one key, without the user having to operate through the interface of each application program separately, thereby saving operation time and improving control efficiency.
[0008] In a possible implementation of the first aspect described above, in response to a user operation, a data control policy for multiple applications running on an electronic device is configured, including: in response to the user operation, a data control configuration interface is displayed, where the data control configuration interface includes a first control for triggering the configuration of the data control policy for the multiple applications; in response to the user's activation operation on the first control, the data control policy is configured to be in an enabled state.
[0009] In a possible implementation of the first aspect described above, the data control configuration interface includes a second control and a third control for triggering the configuration of a first application and a second application, and in response to a user operation, a data control policy for multiple applications running on an electronic device is configured, including: in response to the user's activation operation on the second control, a data control policy is configured for the first application; in response to the user's activation operation on the third control, a data control policy is configured for the second application.
[0010] In a possible implementation of the first aspect described above, in response to a user operation, configuring the data control policy for multiple applications running on an electronic device further includes: in response to the user's deactivation operation on the first control, the data control policy is configured to be in a disabled state.
[0011] In a possible implementation of the first aspect described above, the multiple applications further include a third application, the data control configuration interface includes a fourth control for triggering the configuration of the third application, and in response to a user operation, configuring the data control policy for multiple applications running on an electronic device further includes: in response to the user's deactivation operation on the fourth control, the data control policy configured for the third application is cancelled.
[0012] In a possible implementation of the first aspect described above, the data control configuration interface is an interface for setting applications or an interface of a control center.
[0013] In a possible implementation of the first aspect described above, the data control policy includes at least one data control type, and the data control type includes at least one of not generating data, not writing data, hiding data, and deleting data.
[0014] In a possible implementation of the first aspect described above, the data control configuration interface includes a fifth control, and in response to a user operation, configuring the data control policy for multiple applications running on an electronic device includes: in response to the user's click operation on the fifth control, a control type selection interface is displayed, and the control type selection interface includes a sixth control for triggering the configuration of a first data control type; in response to the user's activation operation on the sixth control, the data control policy is configured to include the first data control type.
[0015] That is, in the embodiments of the present application, the fifth control on the data control configuration interface can be used to trigger the control type selection interface. For example, the control type selection interface can be an interface for managing the unified functions of the system's stealth mode. For example, activating the sixth control corresponding to "delete data", that is, when the data control policy is executed, all the operation data generated during the operation of all applications controlled by the data control policy will be deleted. Another example is that the control type selection interface can be an interface for managing the stealth function of a single application. For example, by clicking the fifth control corresponding to the first application, the control type selection interface corresponding to the first application can be triggered. Among them, if the sixth control corresponding to "delete data" is activated, that is, when the data control policy is executed, the operation data generated during the operation of the first application will be deleted.
[0016] In a possible implementation of the first aspect above, the operating system of the electronic device includes a data processing engine, and performs data control on the data generated by the first application during operation in the first scenario, including: performing data control on the data generated by the first application during operation in the first scenario through the data processing engine of the operating system.
[0017] In a possible implementation of the first aspect above, performing data control on the data generated by the first application during operation in the first scenario includes: determining the data mark corresponding to the first application; performing data control on the data corresponding to the data mark.
[0018] In a possible implementation of the first aspect above, the data mark is generated by the first application during the operation of the first application.
[0019] In a possible implementation of the first aspect above, performing data control on the data generated by the first application during operation in the first scenario includes: performing data control on the data generated by the first application during operation in the first scenario through the first application.
[0020] In a second aspect, an embodiment of the present application provides an electronic device, including: a memory for storing instructions executed by one or more processors of the electronic device, and a processor, when the processor executes the instructions in the memory, the electronic device can be enabled to execute the data control method of the first aspect.
[0021] In a third aspect, an embodiment of the present application provides a readable medium, on which instructions are stored, and when the instructions are executed on an electronic device, the electronic device is enabled to execute the data control method of the first aspect.
[0022] In a fourth aspect, an embodiment of the present application provides a computer program product, including: a non-volatile computer-readable storage medium, and the non-volatile computer-readable storage medium contains computer program code for executing the data control method of the first aspect. Description of the Drawings
[0023] Figure 1A The first interface schematic diagram of an electronic device 100 is shown according to the present application;
[0024] Figure 1B The second interface schematic diagram of an electronic device 100 is shown according to the present application;
[0025] Figure 2A The first interface schematic diagram of an electronic device 100 is shown according to an embodiment of the present application;
[0026] Figure 2B The second interface schematic diagram of an electronic device 100 is shown according to an embodiment of the present application;
[0027] Figure 3 The flowchart schematic diagram of a data control method is shown according to an embodiment of the present application;
[0028] Figure 4A The third interface schematic diagram of an electronic device 100 is shown according to an embodiment of the present application;
[0029] Figure 4B The fourth interface schematic diagram of an electronic device 100 is shown according to an embodiment of the present application;
[0030] Figure 5 The software structure block diagram of an electronic device 100 is shown according to an embodiment of the present application;
[0031] Figure 6A The fifth interface schematic diagram of an electronic device 100 is shown according to an embodiment of the present application;
[0032] Figure 6B The sixth interface schematic diagram of an electronic device 100 is shown according to an embodiment of the present application;
[0033] Figure 6C The seventh interface schematic diagram of an electronic device 100 is shown according to an embodiment of the present application;
[0034] Figure 7 The hardware structure schematic diagram of an electronic device 100 is shown according to an embodiment of the present application. Detailed implementation manners
[0035] The illustrative embodiments of the present application include but are not limited to a data control method, an electronic device, and a storage medium.
[0036] In the embodiments of the present application, the data processing method can be applied to an electronic device 100, which can include various types of electronic devices such as smartphones, desktop computers, tablet computers, laptop computers, smart speakers, digital assistants, augmented reality (AR) / virtual reality (VR) devices, and smart wearable devices. Optionally, the operating system running on the electronic device 100 can include, but is not limited to, Android system, IOS system, Linux, Windows, etc.
[0037] As mentioned above, currently, in order to protect privacy, users need to delete the historical data generated by operations or set the device to be used without a trace. However, in most current electronic devices, most application programs manage the data they generate separately and independently. For example, the data of browsers, map software, and news software in a mobile phone are managed separately. Therefore, users need to perform data deletion operations through the operation interfaces of each application program, or set the application program to be used without a trace through the setting interfaces of each application.
[0038] Taking a browser as an example, users will generate historical browsing records during the use of the browser.
[0039] Reference Figure 1A , Figure 1A Taking the electronic device 100 as a mobile phone as an example, an optional setting interface of a browser is illustrated. When the user clicks "Incognito Browsing", the incognito access to the browser can be achieved. That is to say, the user will no longer generate historical data related to browsing when browsing the web.
[0040] Or, when the user clicks "Bookmarks / History" in the Figure 1A shown setting interface, the "Bookmarks / History" interface as shown in Figure 1B can be accessed. In the Figure 1B shown interface, by clicking "Clear All", all browsing records can be cleared, and the historical data related to browsing will be synchronously cleared on the mobile phone. By clicking "Edit", multiple browsing records can be selected, and then the selected browsing records can be deleted through the delete operation.
[0041] As described above, if the user wants to manage the data in the browser, it needs to be achieved through the application program interface of the browser. For example, the setting operation for incognito use is based on the Figure 1A shown interface, or the data deletion operation is based on the Figure 1B shown interface.
[0042] Similarly, if a user wants to manage data in other applications, they also need to open the other applications and find the application's own settings interface and data deletion interface to achieve data control. For example, through the application interface of a map, open the historical itinerary interface and then manually delete the historical itinerary, and so on. That is to say, in the case of needing to manage multiple applications, the time required for the user to perform management operations and the operation complexity are greatly increased.
[0043] To solve the problem of the cumbersome operation of the user managing data of multiple applications, the present application provides a data control method. This method sets a unified data control function in the electronic device 100, and this data control function can uniformly manage the incognito modes of multiple applications; that is, the user can preset which applications need to execute the incognito mode, and then by turning on the switch of the system incognito mode, when the applications selected by the user are running, the electronic device 100 will automatically delete the historical operation data of these applications. For example, referring to Figure 2A , after the user activates the switch of the system incognito mode (i.e., the first control) and selects the applications that the user wants to control, the operating system can uniformly control these applications, such as controlling these applications to enter the incognito mode and deleting the historical data of the applications. Through the method of the present application, system-level unified data control can be achieved without the user operating separately through the interfaces of each application, thereby saving operation time and improving control efficiency.
[0044] It can be understood that the data control in the present application, also known as the first data control and incognito control, refers to the control of the operation data generated during the operation of the application. These operation data can reflect the user's historical behavior. Through data control, the user's operation records can be not generated or automatically deleted, thereby protecting the user's privacy. The control operations performed by the operating system and the application during the control are also called data control, which can specifically include not writing, not generating, not deleting, hiding data, etc.
[0045] In an optional implementation manner, referring to Figure 2B , the user configures the data control functions of these two applications by performing an opening operation on the switches corresponding to the browser and the third-party application A. That is, when the system turns on the system incognito mode, the incognito modes of the browser and the third-party application A can be synchronously enabled, so that no operation data is written and the operation data is automatically deleted during the use of the two applications.
[0046] For applications that manage data by themselves, it can be understood that data operations such as storage, deletion, and modification of the operation data are controlled by the applications themselves. In this application, by associating the trace-free mode switches of these applications with the system trace-free mode switch, that is, after the system trace-free mode switch is turned on, the application can control the operation data generated by its own operation. As an example, an application that manages data by itself can be an application that does not open the operation data management permission to the operating system. And in this application, by associating the trace-free mode switches of these applications with the system trace-free mode switch, the operating system can uniformly turn on the trace-free mode switches of these applications, so that the application automatically enables the trace-free usage function during operation and clears the operation data generated during the operation of the controlled application. For example, a third-party video software can be an application that does not open the management permission to the system and manages data by itself. When the system trace-free mode is enabled, the trace-free mode of the third-party video software is synchronously enabled, and the third-party video software can delete the user's playback records by itself.
[0047] For applications that are directly managed by the system for data, it can be understood that data operations such as storage, deletion, and modification of the operation data are controlled by the system. This application can pre-mark the corresponding data or data locations of these applications, and disable data writing, data generation, etc. behaviors of the data at the data location after the system trace-free mode is enabled. As an example, an application that is directly managed by the system for data can be an application that opens the operation data management permission to the system. For example, call records can be an application that opens the management permission to the system and is managed by the system for data. When the system trace-free mode is enabled, the system can directly delete the user's call records.
[0048] Among them, the operation data can be record data related to user operations generated by the user during the use of the application, such as call records, music listening records, browsing records, video watching records, call recordings, game screen recordings, chat records, and so on.
[0049] In an optional implementation manner, this application can provide a system-level framework for trace-free management for applications to access. When an application accesses, it can select an access method, including a first access method and a second access method, and different access methods correspond to different data management methods. Among them, the first access method means that the application data is managed by the system, and the second access method means that the application data is independently managed by the application. It can be understood that the selection of the access method can be made by the application based on the access guidance. For example, provide access guidance for the trace-free function based on the operating system to the application. The access guidance can include development projects or development guidance, so that the application can complete the development according to different access methods under the access guidance. In this way, after the user downloads and installs the application, the application can complete the access to the system-level framework according to the access method selected during development.
[0050] In an alternative embodiment, the application accesses the framework using the first access method. In this embodiment, the framework can provide access guidance to the application program, receive feedback information from the application program based on the access guidance, and then mark the data or the data location according to the feedback information. For example, mark the database or data table file, or mark the data storage format, storage type, storage path, and so on. Specifically, data marking can be achieved in the following ways: adding a mark to the properties of the data file to mark the data file; marking the fields of the data table by marking on the fields of the data table; adding a mark to the data in a specific column in a row of the data table. For example, if there is a "category" field, add a mark to the "category" field in this row to mark a row of the data table; adding a mark to the category corresponding to the data table to mark the data table. When the user enables the private browsing mode of the system, the system can manage the data generated by the operation of these applications according to the data marking. The process of the application accessing the private browsing mode management framework will be introduced in detail below and will not be elaborated here.
[0051] In an alternative embodiment, the application accesses the framework using the second access method. In this embodiment, the framework can provide access guidance to the application program, receive feedback information from the application program based on the access guidance, and associate the private browsing mode switch at the application level with the private browsing mode switch at the system level. When the user enables the private browsing mode of the system, the private browsing mode of the application can be enabled synchronously.
[0052] For example, Figure 2B as an example, Figure 2B illustrates a mode switching interface 01 and a data control settings interface 02. Among the various applications displayed in the data control settings interface 02, the browser can be an application for the system to manage data, and the third-party application A can be an application that manages data by itself.
[0053] As an example, after the operating system detects that the switch corresponding to the browser in the data control settings interface 02 is turned on, it can mark the data or the marked data file corresponding to the browser in the system database and the system data storage space, and then delete the data in the marked data and the marked data file, or control the marked data file not to write new data.
[0054] While Figure 2B in the example shown, since the sub-switch of the third-party application A in the data control settings interface 02 and the main switch in the mode switching interface 01 are associated with the application-level switch of the third-party application A, when the system private browsing mode is enabled, the private browsing mode of the third-party application A is enabled synchronously. The third-party application A can independently enable the private browsing mode according to the private browsing function of the application itself, such as not generating or deleting operation data during the operation of the third-party application A.
[0055] For ease of description, in the embodiments of the present application, an application program that is configured by the user and needs to be controlled when the system's traceless mode is enabled is referred to as a controlled application. For example, the first application and the second application introduced above are controlled applications. The following is based on Figure 3 An exemplary process of a data control method in the embodiments of the present application will be introduced:
[0056] S301: In response to a user operation, configure a data control policy for multiple applications running on the electronic device.
[0057] In an optional implementation manner, the data control policy can be executed when the data control mode is enabled. It can be understood that the data control mode can be a traceless usage mode. In the traceless usage mode, the controlled application does not generate, store, delete, or hide the operation data generated during its operation.
[0058] It can be understood that the operation data generated during operation is stored as historical operation data. Optionally, the historical operation data in the present application can be generated based on the user's operation and passively retained in the electronic device 100 or in the cloud. This data can correspond to different application programs. For example, the web browsing records corresponding to the browser, the location records and navigation records corresponding to the map software, the music playing records and video playing records corresponding to the audio-visual software, the communication record information, the voice and text record information, the search record information in other applications, and so on.
[0059] As an example, the operation data can be all or part of the data associated with the user information in the operation data generated during the operation of the application program. Optionally, the operation data can be the operation data within a specified range. For example, for a third-party video software, the operation data can include the application program startup time data, the play record data, etc., and the operation data can be the play record data in the operation data.
[0060] In an optional embodiment, the user can open the security and privacy center and open the control center of the data control mode through the setting entry of the data control mode in the security and privacy center. For example, as Figure 4A shown, the user can find the icon of traceless browsing in the security and privacy center of the electronic device 100. After clicking the icon, the user can open the unified management interface of the system's traceless mode as Figure 2A shown, which can include the main switch of the system's traceless mode and the sub-switches of each application program.
[0061] Figure 2AThe interface shown includes a data control settings interface 02 for configuring controlled applications. Each application corresponds to a sub-switch (such as the second control and the third control). The user can configure the controlled applications in the data control mode by turning on and off the sub-switches corresponding to each application. That is to say, the application corresponding to the turned-on sub-switch is a controlled application; while the application corresponding to the turned-off sub-switch is an uncontrolled application. It can be understood that when the second control corresponding to the first application and the third control corresponding to the second application are in the active state, the first application and the second application are controlled applications. At the same time, when the fourth control corresponding to the third application is in the inactive state, the third application is not a controlled application.
[0062] It should be noted that Figure 2A This is only an example of the configuration interface of a controlled application. In some other alternative embodiments, the controlled applications can also be uniformly configured through other interfaces of the electronic device 100.
[0063] In an alternative embodiment, the user can pull down the screen to open the drop-down menu or the control center, and the electronic device 100 will display a mode switching interface as shown in Figure 4B Then, by clicking the data control button, the data control mode can be enabled. By clicking the quick switch, the system stealth mode can be configured to be in the enabled state or the disabled state, that is, the system stealth mode can be turned on or off.
[0064] In an alternative embodiment, the user can open the security and privacy center of the settings application and open the control center of the data control mode through the setting entry of the data control mode in the security and privacy center. For example, as shown in Figure 4A The user can find the icon of the incognito browsing in the security and privacy center of the electronic device 100. After clicking the icon, a unified management interface of the system incognito mode as shown in Figure 2A can be opened. The unified management interface includes a mode switching interface 01, and the mode switching interface 01 includes the main switch of the system incognito mode (i.e., the first control). If the main switch is switched to the on state, that is, the system incognito mode is configured to be in the enabled state, the incognito mode of the controlled application will be enabled synchronously.
[0065] In some other alternative embodiments, the user can also turn on and off the system incognito mode in other ways, such as voice commands, gesture commands, etc. The embodiments of the present application do not limit this.
[0066] In some other optional embodiments, the data control policy can also control other types of data, such as health data, that is, when the data control mode is turned on, the health data of each application in multiple applications is controlled, such as deleting or hiding the health data. As an example, the health data can include step data and heart rate data in sports applications, game time data in game applications, and so on.
[0067] S302: When the electronic device is in a data control mode, data control is performed on data generated when a controlled application is running.
[0068] It can be understood that the data generated by the controlled application includes historical operation data, which can be stored in a specific location in the database, such as a field in a specific data table, or in a specific coordinate range, where the specific data table can include a record data table, a trace data table, etc. The historical operation data can also be stored in a data file related to the historical data, such as a record data file and a trace data file.
[0069] Optionally, the data for which data control is performed may be data generated in a specific context (i.e., the first context or the second context described above). For example, a playback context, such as playing music or videos; a consumption context, such as purchasing goods or rewarding anchors; or a communication context, such as making calls or chatting. The present application embodiment does not limit the specific context type of the controlled data.
[0070] Optionally, data control may include not allowing the generation of files storing historical operation data.
[0071] Optionally, data control may include not allowing data to be written to files storing historical operation data.
[0072] Optionally, data control may include deleting all historical operation files.
[0073] Optionally, data control may include clearing data in all historical operation files.
[0074] In an optional embodiment, for the above four data control types, the user can configure to determine the data control types included in the data control policy. For example, it can be pre-configured before the data control mode is enabled, and can be adjusted in real time during the data control mode activation process.
[0075] For example, a user passes Figure 2A In the interface shown, click on the traceless function management 03 (ie, the fifth control introduced above), the electronic device 100 can display the following Figure 6AThe control type selection interface shown. As an example, this interface may include switches for clearing traces and hiding traces (i.e., the sixth control introduced above), and users can operate the switches to set the control content of the system's traceless mode. For example, turning on the clear trace switch corresponds to automatically clearing the operation data of the application; turning on the hide trace switch corresponds to hiding the operation data and operation data files of the application.
[0076] Next, in conjunction with Figure 5 introduce a possible software architecture provided by the embodiments of the present application.
[0077] Please refer to Figure 5 , as Figure 5 shown, the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the application program may include a series of application program packages. For example, the application program packages may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, dual SIM and mobile network. Among them, users can browse web pages through the browser application.
[0078] The traceless mode processing framework provides the framework capabilities of the system-level traceless mode for the application program, and can provide application programming interfaces (APIs) and programming frameworks for the application programs in the application layer, including predefined functions corresponding to traceless management. It can be understood that the traceless mode processing framework can provide relevant windows, contents, views, etc. of the traceless mode, including traceless mode interface reminders and traceless mode switches.
[0079] Exemplarily, the traceless mode processing framework can provide data processing engine 1, data processing engine 2, third-party developer engine 1, and third-party developer engine 2. Among them, data processing engine 1 and data processing engine 2 correspond to application programs that are managed by the system for data, also known as system application programs, while third-party developer engine 1 and third-party developer engine 2 correspond to application programs that are not managed by the system for data, also known as third-party application programs.
[0080] For the applications connected to the traceless mode processing framework, the first type of applications for system control of data introduced above can correspond to data processing engine 1 and data processing engine 2, and the second type of applications for independent control of data introduced above can correspond to third-party developer engine 1 and third-party custom engine 2.
[0081] Data processing engine 1 can provide system database management services, such as managing data with data tags in the control database.
[0082] The data processing engine 2 can provide relevant services for the file system, such as controlling files with file tags in XML files.
[0083] The third-party developer engine 1 can provide the business tagging function for data storage, enabling the application to perform business tagging on the stored data and control the data with business tags.
[0084] The third-party developer engine 2 can provide a seamless function, that is, an associated function switch, enabling the application to associate the seamless switch of the application with the seamless switch of the system.
[0085] In the embodiments of the present application, the application can adopt different access methods, including the first access method and the second access method. Among them, the first access method means that the application data is managed by the system, and the second access method means that the application data is independently managed by the application. It can be understood that the choice of access method can be automatically selected by the application program according to its own development content.
[0086] In an alternative embodiment, the electronic device 100 can provide a seamless mode processing framework as Figure 5 shown. Optionally, the application program is developed based on the access guidance provided by the seamless mode processing framework. During the installation process of the application program, or after the installation is completed, optionally, the application program can perform pre-configuration operations based on this access guidance, so that when the system-level seamless management function is enabled, the seamless use of the application program can be controlled from the system side. For example, mark the data to be controlled and associate the seamless mode switch with the system switch.
[0087] It can be understood that the pre-configuration process can be initiated or executed by the application program, or can be initiated or executed by the seamless mode processing framework. For example, after the application program is installed or during the installation process, it is initiated by the application program; or, when the seamless mode processing framework detects that the application program is being installed or has been installed, it is initiated by the seamless mode processing framework. The present application does not make any limitations in this regard.
[0088] The pre-configuration process of the application program with the first access method will be introduced below.
[0089] As an example, the first type of application is an application that adopts the first access method, which can be an application whose usage data is managed by the system. In an alternative implementation, the first type of application is a system application, including browsers, memo pads, recorders, communication software, SMS software, etc. In another alternative implementation, the first type of application can also be a third-party application that uses the first access method. Among them, the first access method means that the operation data of the first type of application is managed by the system.
[0090] For example, Figure 2BThe call records, browsers, and intelligent search shown are the first type of applications. Moreover, if there is an application in the third-party application A or the third-party application B that provides data management permissions to the system, then this application is also the first type of application.
[0091] In an alternative embodiment, during the operation of the first type of application, it can mark the operation data of the first type of application based on access guidance, that is, as Figure 5 shown, perform data marking on the data in the database, or perform file marking on the XML file to complete the pre-configuration operation.
[0092] For example, it is possible to mark the operation data or the storage location of the operation data. For example, a certain row, column, or coordinate range of data in the system database, or a certain folder or file in the local storage space of the electronic device 100, or a certain folder or file in the cloud storage space. That is, the operation data can be a part or all of the data in the database, such as a certain row, column, or coordinate range of data, or it can be all the data in the data file or folder.
[0093] In another alternative embodiment, the private mode processing framework can monitor the operation data of the first type of application during the operation of the first type of application, and mark the operation data or the operation data file therein.
[0094] In this implementation manner, after completing the above marking process, when the application is running, performing data control on the data generated during the application operation may include: when the first type of application is running, performing data control on the marked corresponding data through the operating system.
[0095] For example, as Figure 5 shown, the system can respectively perform data control on the corresponding data based on data marking through the data processing engine 1, and perform data control on the corresponding data file based on file marking through the data processing engine 2.
[0096] It can be understood that the control content of the data control can be consistent with the user's setting information. For example, according to the user's settings, the control content may include at least one of the following: not writing historical operation data to the marked data file, not allowing new data files to be generated under the marked file path, deleting all the marked data, deleting the data in the marked data file, deleting the data in the file under the data path, hiding the marked data. That is, it is possible not to generate new operation data since the user enables the private mode, or it is possible to delete the operation data stored historically in the cloud and locally by the relevant applications since the user enables the private mode. Optionally, the user can set the specific control content included in the data control based on the first system setting interface.
[0097] For example, the user passes throughFigure 2A For the interface shown, when the user clicks on the traceless function management 03 (which can be the fifth control introduced above), the electronic device 100 can display an interface as shown in Figure 6A the control type selection interface. As an example, this interface may include switches for clearing traces and hiding traces (which can be the sixth control introduced above). The user can operate the switches to set the management content of the system's traceless mode. For example, when the clear trace switch is turned on, it corresponds to automatically clearing the operation data of the application; when the hide trace switch is turned on, it corresponds to hiding the operation data and operation data files of the application.
[0098] In an alternative embodiment, the electronic device 100 can provide a traceless function management interface for each application. For example, the electronic device 100 can display an interface as shown in Figure 6B which includes traceless function controls corresponding to each application. For example, the traceless function control 04 corresponding to the call record (which can be the fifth control introduced above). It can be understood that the application traceless function controls can correspond one-to-one with each application. By clicking on the traceless function control, the electronic device 100 can display the traceless function management interface corresponding to each application.
[0099] For example, in response to the user clicking on the traceless function control 04 corresponding to the call record, the electronic device 100 can display an interface as shown in Figure 6C the traceless function management interface. In the interface shown in Figure 6C there are controls for triggering the functions of deleting traces and enabling hiding traces (which can be the sixth control introduced above). The user can operate these controls to configure the traceless management function corresponding to the call record. That is, after the system traceless mode is enabled, the traceless management function executed on the call record. As an example, the user can deactivate or turn off the control corresponding to deleting traces, and activate or turn on the control corresponding to hiding traces, so as to configure the traceless function management of the call record application, so that after the system traceless mode is enabled, only the record data in the call record is hidden, and the record data is not deleted.
[0100] Among them, the data generated by the operation of the first type of application can be stored in the system database, system data file, or in the corresponding cloud storage space and cloud database of the system.
[0101] Next, the pre-configuration process of the application for the second access method will be introduced.
[0102] As another example, the second type of application is an application that uses the second access method, that is, an application that independently manages its usage data by itself. In an alternative embodiment, the second type of application is a third-party application, including third-party map software, third-party video software, third-party image processing software, etc. It can be understood that the second type of application can be a third-party application that uses the second access method. Among them, the second access method means that the application trace-free switch of the second type of application is associated with the switch in the first system setting interface. For example, if the user turns on the overall switch of the trace-free mode based on the first system setting interface and the sub-switch of the second type of application is in the on state, then the application trace-free switch of the second type of application is synchronously turned on.
[0103] For example, as Figure 2B shown, if there is an application in third-party application A and third-party application B that does not provide data management permissions to the system, then this application is a second type of application.
[0104] In an alternative embodiment, the second type of application can associate the trace-free mode switch of the second type of application with the trace-free mode switch of the system based on the access guidance, that is, as Figure 5 shown, associate the function switches of the trace-free function to complete the pre-configuration operation.
[0105] Specifically, the application-level trace-free mode switch of the second type of application can be jointly associated with the overall switch in the trace-free management mode switch of the system and the sub-switch corresponding to the second type of application in the system. That is to say, when and only when both the overall switch and the sub-switch corresponding to the second type of application are turned on, the trace-free mode switch of the second type of application will be synchronously turned on; if any one of the overall switch and the sub-switch corresponding to the second type of application is not turned on, the trace-free mode switch of the second type of application will be turned off.
[0106] In another alternative embodiment, the trace-free mode processing framework can initiate the association between the trace-free mode switch of the system and the trace-free mode switch of the second type of application. The second type of application can open the association permission to the trace-free mode processing framework based on its own development content, enabling the trace-free mode processing framework to successfully complete the association operation between the switches.
[0107] In this embodiment, after completing the above association process, when the application is running, performing data control on the data generated during the application's operation may include: when the second type of application is running, through the second type of application, based on the setting information of the application trace-free mode, performing data control on the data generated during the operation of the second type of application.
[0108] For example, as Figure 5As shown, the second type of application can pre-mark the data storage for business, and then, when the application's traceless mode is enabled, manage its own operation data based on these business marks through the third-party developer engine 1.
[0109] It can be understood that the content of data control can be consistent with the setting information of the user in the interface of the second type of application. For example, according to the user's settings, the content of control can include at least one of the following: not writing historical operation data to the marked data file, not allowing new data files to be generated under the marked file path, deleting all marked data, deleting the data in the marked data file, and deleting the data in the files under the data path. That is, new operation data can be prevented from being generated since the user enables the traceless mode, or the operation data stored in the cloud and locally in history by the relevant application can be deleted since the user enables the traceless mode. Optionally, the user can set the specific content of data control based on the interface of the second type of application.
[0110] Among them, the data generated during the operation of the second type of application can be stored in the data location or data file corresponding to the second type of application, can also be stored in the cloud storage space of the second type of application, and can be stored in the cloud storage space of other applications. For example, in the folder used to store the data of the second type of application in the network disk application.
[0111] Through a data control method according to an embodiment of the present application, a system-level unified management function for the traceless mode can be provided, enabling the user to control the traceless mode status of all application programs with one key through the system settings interface, and the control content can be uniformly set, avoiding the cumbersome settings and deletion operations manually performed by the user through the interfaces of each application program, thereby improving the efficiency and convenience of data control. Moreover, two access methods can be provided for the application program, and the application program can adopt different access methods according to its own data characteristics and operation characteristics. For all access methods, the data control method according to the embodiment of the present application can achieve unified data control of the application program.
[0112] Figure 7 The schematic hardware structure diagram of the electronic device 100 is shown.
[0113] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0114] It can be understood that the structure schematically shown in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In some other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figures may be implemented in hardware, software, or a combination of software and hardware.
[0115] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0116] A memory may also be provided in the processor 110 for storing instructions and data corresponding to a data control method provided in an embodiment of the present application. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0117] In some embodiments, the processor 110 of the electronic device 100 is configured to, by invoking program instructions stored in the memory, in response to a user operation, configure data control policies for a plurality of applications running on the electronic device, where the data control policies are used to control the data generated in the plurality of applications respectively, and the plurality of applications include a first application and a second application; perform data control on the data generated in a first scenario when the first application is running based on the data control policy, and perform data control on the data generated in a second scenario when the second application is running based on the data control policy.
[0118] The wireless communication function of the electronic device 100 can be implemented by the antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor, and baseband processor, etc.
[0119] The electronic device 100 implements the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0120] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel may adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0121] The button 190 includes a power-on button, volume buttons, etc. The button 190 can be a mechanical button or a touch button, such as a shooting button for a camera application. The electronic device 100 can receive button inputs and generate key signal inputs related to the user settings and function controls of the electronic device 100.
[0122] Correspondingly, an embodiment of the present application provides an electronic device 100, including: a memory for storing instructions executed by one or more processors of the electronic device 100, and a processor for executing the instructions of the above data management method.
[0123] Correspondingly, an embodiment of the present application provides a storage medium having instructions stored thereon, and when the instructions are executed on the electronic device 100, the electronic device 100 executes the above data management method.
[0124] Correspondingly, an embodiment of the present application provides a computer program product, a non-volatile computer-readable storage medium, and the non-volatile computer-readable storage medium contains computer program code for executing the above data management method.
[0125] This specification provides methods or process operation steps as shown in the embodiments or flowcharts, but based on routine or non-creative labor, there may be more or fewer operation steps. The step sequences listed in the embodiments are only one of many execution sequences and do not represent the only execution sequence. In actual execution, the methods or process sequences shown in the embodiments or drawings can be executed sequentially or in parallel (for example, in an environment of a parallel controller or multi-threaded processing).
[0126] The various embodiments disclosed in the present application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memories and / or storage elements), at least one input device, and at least one output device.
[0127] The program code can be applied to input instructions to execute the various functions described in the present application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of the present application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0128] The program code can be implemented in a high-level procedural or object-oriented programming language to communicate with the processing system. When needed, the program code can also be implemented in assembly language or machine language. In fact, the mechanisms described in this application are not limited to the scope of any specific programming language. In any case, the language can be a compiled language or an interpreted language.
[0129] In some cases, the disclosed embodiments can be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments can also be implemented as instructions carried or stored on one or more transient or non-transitory machine-readable (e.g., computer-readable) storage media, which can be read and executed by one or more processors. For example, the instructions can be distributed via a network or via other computer-readable media. Thus, machine-readable media can include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to, floppy disks, optical disks, optical discs, compact discs read-only memory (CD-ROMs), magneto-optical discs, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) in electrical, optical, acoustic, or other forms using the Internet. Thus, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
[0130] As used herein, the term "module" can refer to, as part of, or include: a memory (shared, dedicated, or group) for running one or more software or firmware programs, an application-specific integrated circuit (ASIC), an electronic circuit, and / or a processor (shared, dedicated, or group), combinational logic circuits, and / or other suitable components providing the functionality.
[0131] In the drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or ordering is not required. Rather, in some embodiments, these features can be presented in a different manner and / or order than shown in the illustrative drawings. Additionally, the structural or method features included in a particular drawing do not mean that all embodiments require such features. In some embodiments, these features may not be included, or these features may be combined with other features.
[0132] The embodiments of the present application have been described in detail above with reference to the accompanying drawings. However, the use of the technical solutions of the present application is not limited to the various applications mentioned in the embodiments of this patent. Various structures and variations can be easily implemented with reference to the technical solutions of the present application to achieve the various beneficial effects mentioned herein. All changes made without departing from the spirit of the present application within the scope of knowledge possessed by those of ordinary skill in the art shall fall within the scope covered by the patent of the present application.
Claims
1. A data control method, characterized in that, Applied to an electronic device, including: In response to a user operation, configuring a data control policy for multiple applications running on the electronic device, the data control policy being used to control the data generated by the multiple applications respectively, the multiple applications including a first application and a second application; Performing data control on the data generated by the first application in a first scenario during its operation, and Performing data control on the data generated by the second application in a second scenario during its operation.
2. The method according to claim 1, wherein The step of, in response to a user operation, configuring a data control policy for multiple applications running on the electronic device, includes: In response to a user operation, displaying a data control configuration interface, wherein the data control configuration interface includes a first control for triggering the configuration of the data control policy for the multiple applications; In response to the user's activation operation on the first control, configuring the data control policy to an enabled state.
3. The method according to claim 2, wherein The data control configuration interface includes a second control and a third control for triggering the configuration of the first application and the second application, and The step of, in response to a user operation, configuring a data control policy for multiple applications running on the electronic device, includes: In response to the user's activation operation on the second control, configuring the data control policy for the first application; In response to the user's activation operation on the third control, configuring the data control policy for the second application.
4. The method according to claim 2, wherein The step of, in response to a user operation, configuring a data control policy for multiple applications running on the electronic device, further includes: In response to the user's deactivation operation on the first control, configuring the data control policy to a disabled state.
5. The method according to claim 3, wherein The multiple applications further include a third application, the data control configuration interface includes a fourth control for triggering the configuration of the third application, and The step of, in response to a user operation, configuring a data control policy for multiple applications running on the electronic device, further includes: In response to the user's deactivation operation on the fourth control, canceling the configuration of the data control policy for the third application.
6. The method according to any one of claims 2-5, characterized in that The data control configuration interface is an interface for setting applications or an interface of a control center.
7. The method according to claim 2, wherein The data control policy includes at least one data control type, and the data control type includes at least one of not generating data, not writing data, hiding data, and deleting data.
8. The method according to claim 7, wherein The data control configuration interface includes a fifth control, and The step of, in response to a user operation, configuring a data control policy for multiple applications running on the electronic device, includes: In response to the user's click operation on the fifth control, displaying a control type selection interface, the control type selection interface including a sixth control for triggering the configuration of a first data control type; In response to the user's activation operation on the sixth control, configuring the data control policy to include the first data control type.
9. The method according to claim 1, characterized in that, The operating system of the electronic device includes a data processing engine, and The step of performing data control on the data generated by the first application in a first scenario during its operation, includes: Execute data control on the data generated by the first application during operation in a first scenario through the data processing engine of the operating system.
10. The method according to claim 9, wherein Executing data control on the data generated by the first application during operation in a first scenario includes: Determine the data tag corresponding to the first application; Execute data control on the data corresponding to the data tag.
11. The method according to claim 10, wherein The data tag is generated by the first application during the operation of the first application.
12. The method according to claim 1, wherein The execution of data control on the data generated by the first application during operation in a first scenario includes: Execute data control on the data generated by the first application during operation in a first scenario through the first application.
13. An electronic device, characterized in that, Including: A memory for storing instructions executed by one or more processors of an electronic device, and A processor that, when the processor executes the instructions in the memory, enables the electronic device to execute the method according to any one of claims 1-12.
14. A storage medium, characterized in that, Instructions are stored on the storage medium, and when the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1-12.