A method, device, equipment and storage medium for seamless browsing
By backing up the basic file and system file data when the application is first started, the startup problem caused by the clearing of the application local data in the prior art is solved, and data security and normal application startup are achieved.
Patent Information
- Application Number
- CN202111249782.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-10-26
AI Technical Summary
When the prior art protects application data security, it will cause the application's local data to be cleared, affecting the application's next startup and data access to other applications.
By obtaining the first startup instruction of the target application, the response instruction backs up the basic file data and/or system file data to obtain the backup data. This backup data is used to restore the application startup data when the local application data of the target application is determined to be deleted.
It ensures that the application is launched and used normally next time while protecting the security of the application's local data, and does not affect the normal startup and use of other applications that share data with the target application.
Smart Images

Figure CN113934576B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer processing technologies, and more particularly to the field of data security technologies. Specifically, the present invention relates to a method, apparatus, device, and storage medium for private browsing. Background Art
[0002] With the development of Internet technologies, data security is particularly important. To protect the data security of an application (APP), when a violation of the data security rules by a user is detected, the general practice is to clear all relevant data of the application on the user's local device. Since all the data of the application is cleared, it will affect the next use of the application and the data access of other applications. Therefore, there is an urgent need for improvement. Summary of the Invention
[0003] The present invention provides a method, apparatus, device, and storage medium for private browsing to ensure the data security of an application while ensuring the normal startup of the application next time.
[0004] In a first aspect, an embodiment of the present invention provides a method for private browsing, the method comprising:
[0005] Obtaining a first startup instruction of a target application;
[0006] In response to the first startup instruction, backing up the basic file data and / or system file data of the target application to obtain backup data; wherein the backup data is used to restore the startup data of the target application in the case where the local application data of the target application is determined to be deleted.
[0007] In a second aspect, an embodiment of the present invention further provides a device for private browsing, the device comprising:
[0008] A startup instruction obtaining module, configured to obtain a first startup instruction of a target application;
[0009] A backup data determining module, configured to, in response to the first startup instruction, back up the basic file data and / or system file data of the target application to obtain backup data; wherein the backup data is used to restore the startup data of the target application in the case where the local application data of the target application is determined to be deleted.
[0010] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0011] One or more processors;
[0012] A memory, configured to store one or more programs;
[0013] When the one or more programs are executed by the one or more processors, the one or more processors implement the private browsing method provided in any embodiment of the present invention.
[0014] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the private browsing method provided in any embodiment of the present invention is implemented.
[0015] The technical solution of the embodiment of the present invention includes obtaining a first start instruction of a target application program; then, in response to the first start instruction, backing up the basic file data and / or system file data of the target application program to obtain backup data; wherein the backup data is used to restore the start data of the target application program when it is determined that the local application data of the target application program is deleted. The above technical solution solves the problem that in order to protect the local data of the target application program from being erased, it does not affect the next normal start and use of the target application program, as well as the normal start and use of other application programs that share data with the target application program. Description of the Drawings
[0016] Figure 1 is a flowchart of a private browsing method provided in Embodiment 1 of the present invention;
[0017] Figure 2 is a flowchart of a private browsing method provided in Embodiment 2 of the present invention;
[0018] Figure 3 is a schematic structural diagram of a private browsing device provided in Embodiment 3 of the present invention;
[0019] Figure 4 is a schematic structural diagram of an electronic device provided in Embodiment 4 of the present invention. Detailed Embodiments
[0020] The present invention will be further described in detail below with reference to the drawings and embodiments. It can be understood that the specific embodiments described herein are only for explaining the present invention, rather than limiting the present invention. In addition, it should be noted that for the sake of description, only parts related to the present invention are shown in the drawings, rather than all the structures.
[0021] Embodiment 1
[0022] Figure 1The figure is a flowchart of a method for private browsing provided in the first embodiment of the present invention. This embodiment is applicable to the case of private browsing in a local application. This method can be executed by a private browsing device, which can be implemented in software and / or hardware and integrated into an electronic device with private browsing function, such as a mobile phone terminal, etc.
[0023] S110. Obtain the first startup instruction of the target application.
[0024] In this embodiment, the target application refers to an application downloaded locally by the user. Further, the target application integrates a toolkit of the application management Vss engine, such as a private erasure module based on the Vss engine SDK, which can be implemented by code. Optionally, the toolkit of the application management Vss engine can be integrated into the target application through manual integration; specifically, directly integrate the toolkit of the application management Vss engine at a certain position in the agreed life cycle of the target application. Optionally, the toolkit of the application management Vss engine can also be integrated into the target application through containerized integration; specifically, upload the toolkit of the application management Vss engine to the containerized platform, and the containerized platform automatically integrates the toolkit of the application management Vss engine into the target application, and regenerates an installation package of the target application integrated with the toolkit of the application management Vss engine for the user to download and install.
[0025] In addition, the toolkit of the application management Vss engine includes at least a Hook tool and a File tool.
[0026] In this embodiment, the first startup instruction refers to the instruction for starting the target application after it is first installed locally.
[0027] Specifically, if it is recognized that the target application is downloaded and installed locally by the user, obtain the first startup instruction of the target application.
[0028] S120. In response to the first startup instruction, back up the basic file data and / or system file data of the target application to obtain backup data.
[0029] In this embodiment, the backup data refers to the data obtained by copying the basic file data generated by the target application and the system file data involved when the target application is started for the first time, and is used to restore the startup data of the target application when it is determined that the local application data of the target application is deleted. Among them, the startup data refers to the basic file data involved when the target application is installed and the system file data involved. Further, the system file data involved may be system data shared with other application programs; the basic file data may include the data that comes with the target application when it is downloaded, and the data generated by the target application after it is downloaded to the local. The local application data includes the data of the target application involved in the local memory, and may include, for example, the basic file data, system file data, cache data, registration data related to the user, etc. of the target application.
[0030] In this embodiment, after responding to the first startup instruction, the Hook in the toolkit of the application management Vss engine in the target application starts to work, and backs up the basic file data and / or system file data of the target application to obtain backup data. Then the target application starts successfully.
[0031] After the target application is started for the first time, when the user violates the data security rules during the process of accessing the target application, if the traceless erasure module based on the Vss engine SDK in the target application receives the erasure instruction sent by the server, it erases the local application data of the target application. After the erasure is completed, it restores the startup data of the target application and executes the exit operation of the target application.
[0032] It should be noted that the server will monitor the target application. When it detects that the user violates the data security rules during the process of using the application, it sends an erasure instruction to the target application. For example, when the user takes a screenshot or records a screen during the payment interface of the application, it is an operation that violates information leakage. Another example is that an application is used by multiple employees in a company. If an employee leaves the company and then uses the application (such as starting the application), it is considered to violate the data security rules.
[0033] The technical solution of the embodiment of the present invention obtains the first startup instruction of the target application; then, in response to the startup instruction, backs up the basic file data and / or system file data of the target application to obtain backup data; wherein, the backup data is used to restore the startup data of the target application when it is determined that the local application data of the target application is deleted. The above technical solution solves the problem that in order to protect the local data of the target application from being erased, it does not affect the next normal startup and use of the target application, as well as the normal startup and use of other applications that share data with the target application.
[0034] Embodiment 2
[0035] Figure 2 It is a flowchart of a private browsing method provided by Embodiment 2 of the present invention. On the basis of the above embodiment, it is further optimized to provide an optional real-time solution.
[0036] As Figure 2 shown, the method may specifically include:
[0037] S210. Obtain the first startup instruction of the target application.
[0038] S220. In response to the first startup instruction, back up the basic file data and / or system file data of the target application to obtain backup data.
[0039] Optionally, backing up the basic file data of the target application to obtain backup data may be to copy the basic file data at the first startup of the target application to a hidden folder and create a basic configuration file; wherein the basic configuration file is used to record the correspondence between the basic file data and the storage location of the basic file data; the hidden folder and the basic configuration file are used as backup data.
[0040] Specifically, the internal function of Hook in the toolkit of the application management Vss engine in the target application will create a hidden folder (hidden.backup folder) in the root directory, traverse the location in the local memory where the basic file data of the target application is stored, copy the basic file data to the hidden folder, and at the same time, generate a basic configuration file to record the storage location of the copied basic file data in the local memory, so that when restoring according to the backup data later, the location of the basic file data in the local memory can be found (that is, the location in the local memory where the basic file data of the target application was located when it was first installed).
[0041] Optionally, backup the system file data of the target application. The obtained backup data may be to read the system file data, create a system backup file identical to the system file data, and create a system configuration file. The system configuration file is used to record the data source of the system backup file and the data storage data structure of the data. The system backup file and the system configuration file are used as the backup data.
[0042] Exemplarily, when the tool kit of the application management Vss engine in the standard application does not have the permission to copy the system file data, read the system file data, create a file identical to the system file data, and record the data in the system file. At the same time, create a system configuration file to record the copied system file, that is, the data source of the data in the system backup file, that is, the location in the local memory; also record the data storage structure of the backed-up system file data, such as json structure, array structure, and data hierarchy, etc.
[0043] Optionally, backup the system file data of the target application. The obtained backup data may be to use the above method to backup the basic file data and system file data of the target application to obtain the backup data.
[0044] The technical solution of the embodiment of the present invention obtains the first startup instruction of the target application; then responds to the first startup instruction to backup the basic file data and / or system file data of the target application to obtain the backup data. The backup data is used to restore the startup data of the target application when it is determined that the local application data of the target application is deleted. The above technical solution solves the problem that in order to protect the local data of the target application from being erased, it does not affect the next normal startup and use of the target application, and the normal startup and use of other application programs that share data with the target application.
[0045] Embodiment Three
[0046] Figure 3 It is a schematic structural diagram of a traceless browsing device provided by the third embodiment of the present invention. This embodiment is applicable to the case of local traceless browsing of application programs. This method can be executed by a traceless browsing device. The device can be implemented in software and / or hardware, and can be integrated into an electronic device with traceless browsing function, such as a mobile phone terminal, etc.
[0047] As Figure 3 shown, the device may specifically include:
[0048] A startup instruction acquisition module 310, configured to acquire the first startup instruction of the target application;
[0049] A backup data determination module 320, configured to respond to a first startup instruction, back up the basic file data and / or system file data of a target application to obtain backup data; wherein the backup data is used to restore the startup data of the target application when it is determined that the local application data of the target application is deleted.
[0050] In the technical solution of the embodiment of the present invention, a first startup instruction of a target application is obtained; then, in response to the first startup instruction, the basic file data and / or system file data of the target application are backed up to obtain backup data; wherein the backup data is used to restore the startup data of the target application when it is determined that the local application data of the target application is deleted. The above technical solution solves the problem that in order to protect the local data of the target application from being erased, it does not affect the next normal startup and use of the target application, as well as the normal startup and use of other application programs that share data with the target application.
[0051] Further, the backup data determination module is specifically configured to:
[0052] Copy the basic file data when the target application is first started to a hidden folder, and create a basic configuration file; wherein the basic configuration file is used to record the correspondence between the basic file data and the storage location of the basic file data;
[0053] Use the hidden folder and the basic configuration file as backup data.
[0054] Further, the backup data determination module is also specifically configured to:
[0055] Read the system file data, create a system backup file identical to the system file data, and create a system configuration file; wherein the system configuration file is used to record the data source of the system backup file and the data structure of the stored data;
[0056] Use the system backup file and the system configuration file as backup data.
[0057] Further, the device further includes:
[0058] An exit module, configured to perform an exit operation of the target application.
[0059] Further, a toolkit integrating an application management Vss engine is integrated in the target application.
[0060] The above incognito browsing device can execute the incognito browsing method provided by any embodiment of the present invention, and has corresponding function modules and beneficial effects for executing the method.
[0061] Embodiment 4
[0062] Figure 4 FIG. 135 is a schematic structural diagram of an electronic device provided by Embodiment 4 of the present invention. Figure 4 FIG. 136 shows a block diagram of an exemplary device suitable for implementing the embodiments of the present invention. Figure 4 The device shown is merely an example and should not impose any limitation on the functions and usage scope of the embodiments of the present invention.
[0063] As Figure 4 shown, the electronic device 12 is presented in the form of a general-purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0064] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the multiple bus structures. By way of example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0065] The electronic device 12 typically includes a variety of computer system-readable media. These media can be any available media accessible by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0066] The system memory 28 may include computer system-readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory (cache 32). The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used for reading and writing non-removable, non-volatile magnetic media ( Figure 4 not shown, commonly referred to as a "hard disk drive"). Although Figure 4 not shown in FIG. 150, a disk drive for reading and writing removable non-volatile disks (such as a "floppy disk") and an optical disk drive for reading and writing removable non-volatile optical disks (such as CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 through one or more data media interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0067] A program / utilities 40 having a set (at least one) of program modules 42 can be stored in, for example, the system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment. The program modules 42 generally execute the functions and / or methods in the embodiments described in the embodiments of the present invention.
[0068] The electronic device 12 can also communicate with one or more external devices 14 (such as a keyboard, a pointing device, a display 24, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 12, and / or communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 22. Moreover, the electronic device 12 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 20. As shown in the figure, the network adapter 20 communicates with other modules of the electronic device 12 through the bus 18. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0069] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the incognito browsing method provided by the embodiments of the present invention.
[0070] Embodiment Five
[0071] Embodiment Five of the present invention provides a computer-readable storage medium, on which a computer program (or computer-executable instructions) is stored. When the program is executed by a processor, it is used to execute the incognito browsing method provided by the embodiments of the present invention. The method includes:
[0072] Obtain the first start instruction of the target application program;
[0073] In response to the start instruction, back up the basic file data and / or system file data of the target application program to obtain backup data; wherein, the backup data is used to restore the start data of the target application program when it is determined that the local application data of the target application program is deleted.
[0074] The computer storage medium of the embodiments of the present invention may employ any combination of one or more computer-readable media. The computer-readable media may be computer-readable signal media or computer-readable storage media. The computer-readable storage media may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage media include: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, the computer-readable storage media may be any tangible medium that contains or stores a program which can be used by or in connection with an instruction execution system, apparatus, or device.
[0075] The computer-readable signal media may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal media may also be any computer-readable media other than the computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
[0076] The program code contained on the computer-readable media may be transmitted using any appropriate media, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0077] The computer program code for performing the operations of the embodiments of the present invention may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0078] Note that the above is only the preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments only. Without departing from the concept of the present invention, more other equivalent embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for private browsing, characterized in that, it includes: Obtain the first startup instruction of the target application; wherein, a toolkit of the application management Vss engine is integrated in the target application; the toolkit of the application management Vss engine includes a Hook tool and a File tool; In response to the first startup instruction, back up the basic file data and system file data of the target application to obtain backup data; wherein, the first startup instruction refers to the instruction for the target application to start after being first installed locally; the backup data is used to restore the startup data of the target application when it is determined that the local application data of the target application is deleted; the basic file data includes the data that comes with the target application when it is downloaded and the data generated after the target application is downloaded locally; the system file data is the system data shared with other application programs; the local application data includes the basic file data, system file data, cache data and user-related registration data of the target application; After the target application is first started, if the user violates the data security rules and the private erasure module based on the Vss engine SDK in the target application receives an erasure instruction sent by the server, erase the local application data of the target application; Among them, backing up the system file data of the target application to obtain backup data includes: Read the system file data, create a system backup file identical to the system file data, and create a system configuration file; wherein, the system configuration file is used to record the data source of the system backup file and the data storage data structure; Use the system backup file and the system configuration file as backup data.
2. The method according to claim 1, characterized in that, Backing up the basic file data of the target application to obtain backup data includes: Copy the basic file data when the target application is first started to a hidden folder, and create a basic configuration file; wherein the basic configuration file is used to record the correspondence between the basic file data and the storage location of the basic file data; Use the hidden folder and the basic configuration file as backup data.
3. The method according to claim 1, characterized in that, After restoring the startup data of the target application, it further includes: Execute the exit operation of the target application.
4. A private browsing device, characterized in that, it includes: A startup instruction acquisition module, configured to obtain the first startup instruction of the target application; wherein, a toolkit of the application management Vss engine is integrated in the target application; the toolkit of the application management Vss engine includes a Hook tool and a File tool; A backup data determination module, configured to respond to the first startup instruction, back up the basic file data and system file data of the target application to obtain backup data; wherein, the first startup instruction refers to the instruction for the target application to start after being first installed locally; the backup data is used to restore the startup data of the target application in case the local application data of the target application is determined to be deleted; the basic file data includes the data that comes with the target application when it is downloaded and the data generated by the target application after being downloaded to the local; the system file data is the system data shared with other applications; the local application data includes the basic file data, system file data, cache data and user-related registration data of the target application; A local application data erasure module, configured to, after the target application is first started, if the user violates the data security rules and the traceless erasure module based on the Vss engine SDK in the target application receives an erasure instruction sent by the server, erase the local application data of the target application; Wherein, the backup data determination module is specifically configured to read the system file data, create a system backup file identical to the system file data, and create a system configuration file; wherein, the system configuration file is used to record the data source of the system backup file and the data structure of the stored data; use the system backup file and the system configuration file as backup data.
5. The apparatus according to claim 4, wherein, the backup data determination module is specifically configured to: Copy the basic file data at the first startup of the target application to a hidden folder, and create a basic configuration file; wherein the basic configuration file is used to record the correspondence between the basic file data and the storage location of the basic file data; Use the hidden folder and the basic configuration file as backup data.
6. An electronic device, wherein, comprises: One or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the traceless browsing method according to any one of claims 1-3.
7. A computer-readable storage medium, on which a computer program is stored, wherein, the program, when executed by a processor, implements the traceless browsing method according to any one of claims 1-3.
Citation Information
Patent Citations
Cloud data backup and recovery method
CN104301382A
Data operation method and device, electronic equipment and readable storage medium
CN113297616A