CN114896219B - Method and device for storing resource data, computer equipment and storage medium - Google Patents
Method and device for storing resource data, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114896219B CN114896219B CN202210830819.5A CN202210830819A CN114896219B CN 114896219 B CN114896219 B CN 114896219B CN 202210830819 A CN202210830819 A CN 202210830819A CN 114896219 B CN114896219 B CN 114896219B
- Authority
- CN
- China
- Prior art keywords
- resource data
- client
- server
- system file
- storage path
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1435—Saving, restoring, recovering or retrying at system level using file system or storage system metadata
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1438—Restarting or rejuvenating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/174—Redundancy elimination performed by the file system
- G06F16/1744—Redundancy elimination performed by the file system using compression, e.g. sparse files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Quality & Reliability (AREA)
- Human Computer Interaction (AREA)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to the field of data storage, and discloses a method, a device, computer equipment and a storage medium for storing resource data, wherein the method comprises the following steps: the client sends a storage request of the resource data to a preset server; loading the resource data into a target folder under a specified system file storage path through the server; and when the client successfully restores the factory settings and monitors a restart instruction, acquiring the resource data in the target folder under the system file storage path, and copying the resource data to a first set position under the internal storage path of the client. The client can freely backup the required resource data into the system file storage area, so that when a user restores the factory setting to the client, the user does not need to worry about that the resource data required to be reserved is deleted, and the data lower path does not need to be processed by using recovery codes in a default mode and is not restored, and the speed of restoring the factory setting is improved.
Description
Technical Field
The present invention relates to the field of data storage, and in particular, to a method, an apparatus, a computer device, and a storage medium for resource data storage.
Background
A plurality of learning materials are preset in the learning tablet and are default to be built in a system software flashing package. It remains after each restoration of factory settings. But the learning materials downloaded by the client can not be preserved.
Therefore, a method for retaining the resource data downloaded by the user after the factory configuration is recovered is needed.
Disclosure of Invention
The invention mainly aims to provide a method and a device for storing resource data, computer equipment and a storage medium, and aims to solve the technical problem that a client cannot reserve the resource data downloaded by the client when factory settings are restored.
In order to achieve the above object, the present invention provides a method for storing resource data, including:
the client sends a storage request of the resource data to a preset server;
loading the resource data into a target folder under a specified system file storage path through the server;
and when the client successfully restores the factory settings and monitors a restart instruction, acquiring the resource data in the target folder under the system file storage path, and copying the resource data to a first set position under the internal storage path of the client.
Further, after the step of copying the resource data to the first set position under the internal storage path of the client, the method includes:
and setting a copy mark which is copied to the resource data in the target folder.
Further, the step of sending, by the client, a storage request of the resource data to a preset server includes:
the client reads a resource data browsing page of a downloading platform of the server;
and after receiving the selected information of the resource data, the client generates the storage request and sends the storage request to the server.
Further, the step of sending, by the client, a storage request of the resource data to a preset server includes:
the client downloads the resource data based on a third-party platform and stores the resource data to a second set position under the internal storage path;
and receiving an instruction for selecting the resource data in the second set position, and sending the resource data and the storage request to the server based on the instruction.
Further, the step of sending the resource data and the storage request to the server based on the instruction comprises:
compressing the resource data based on the instruction to obtain compressed resource data;
and sending the compressed resource data and the storage request to the server.
Further, after the step of setting the copy flag that has been copied to the resource data in the target folder, the method includes:
after the client is restarted, judging whether each resource data in the target folder carries the copy marks or not;
copying the second resource data without the copy flag to the first set position under the internal storage path, and setting the copied copy flag for the second resource data.
Further, before the step of sending, by the client, a storage request of the resource data to the preset server, the method includes:
and setting the system file storage path through a research and development server.
The present application further provides a device for storing resource data, including:
the sending unit is used for sending a storage request of the resource data to a preset server;
the loading unit is used for loading the resource data into a target folder under a specified system file storage path through the server;
and the recovery unit is used for finding the resource data in the target folder under the system file storage path and copying the resource data to a first set position under the internal storage path of the client when the client successfully recovers the factory settings and monitors a restart instruction.
The present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method for storing resource data according to any one of the above methods when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of resource data storage as described in any of the above.
According to the resource data storage method, the resource data storage device, the computer equipment and the storage medium, the client can freely backup the required resource data into the system file storage area, so that when a user restores the factory setting to the client, the user does not need to worry about that the resource data which needs to be reserved is deleted, and the path under the data is not restored without using recovery codes for default processing, and the speed of restoring the factory setting is improved. After rebooting, the resource data can be copied to the internal storage path in the target folder under the specified system file storage path.
Drawings
FIG. 1 is a schematic block flow diagram of a method for resource data storage according to an embodiment of the present application;
FIG. 2 is a schematic block flow diagram of a method for resource data storage according to an embodiment of the present application;
FIG. 3 is a block diagram illustrating an exemplary configuration of an apparatus for resource data storage according to an embodiment of the present application;
fig. 4 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, an embodiment of the present application provides a method for storing resource data, including the following steps:
s1, the client sends a storage request of the resource data to a preset server;
s2, loading the resource data into a target folder under a specified system file storage path through the server;
and S3, when the client successfully restores the factory settings and monitors a restart instruction, acquiring the resource data in the target folder under the system file storage path, and copying the resource data to a first set position under the internal storage path of the client.
The client generally refers to a mobile phone, a tablet and other computer devices. In one embodiment, the client is a learning tablet for students.
The resource data refers to data that needs to be stored in a designated storage path of the system file, such as an application program, learning materials, files, video, audio, and the like.
The server refers to a server corresponding to the client. The production, the research and the development, the use and the like of the learning tablet need to be completed cooperatively by multiple parties, wherein the research and development server, the server and the client used by a client are used by research and development personnel. Through a research and development server, a research and development staff can build a required application program in a system file storage area of a learning tablet and has the authority to store data, delete data and modify data in the system file storage area; the server refers to a terminal providing a service to the client, and may be a cloud server. The client is a terminal used by the user, such as the learning tablet and the like, and the client does not have the authority to store data, delete data and modify data in the system file storage area.
The storage request is a request generated by the client based on a selection operation by the user. After receiving the storage request, the server directly loads the corresponding resource data into a target folder under the specified system file storage path of the client. The server is endowed with the authority of loading data in a system file storage path appointed to the client by the research and development server. In this way, the client can load data into the system file storage without permission.
In another embodiment, the client may also download the resource data to the client, and when it is necessary to prevent the resource data from being deleted when the client recovers the factory settings, the client may send an authority request for "requiring to store the resource data in the system file" to the research and development server, and when the research and development server gives a corresponding authority to the client, the client may directly copy and store the resource data in the target folder in the system file storage path. Further, when the research and development server does not give the client the corresponding right, the client cannot copy the data resource under the internal storage path to the target folder under the system file storage path, so that the use safety of the client can be improved, and the situation that the user stores data in the target folder under the system file storage path according to the intention to influence the operating efficiency of the client and the like is prevented.
Because the resource data is stored in the system file storage area, the resource data is not deleted when factory settings are restored for the client, and after the factory settings are restored for the client, the resource data is found in the system file storage path and copied to the internal storage path of the client. Specifically, after the factory settings are restored and the animation is entered after the system is started for the first time, traversing each resource data of the system file storage area, and then copying the resource data to an internal storage path (i.e. data/media/0) through a jni mode (in which java and c are combined to accelerate the copying speed).
In the embodiment of the application, the client can freely backup the required resource data into the system file storage area, so that when a user restores the factory setting to the client, the user does not need to worry about that the resource data required to be reserved is deleted, and the path under the data is not restored without using recovery code default processing, thereby improving the speed of restoring the factory setting. After rebooting, the resource data can be copied to the internal storage path (i.e. data/media/0) in the target folder under the specified system file storage path.
Referring to fig. 2, in an embodiment, after the step of copying the resource data to the first set position under the internal storage path of the client, the method includes:
s4, setting a copied mark for the resource data in the target folder;
s5, after the client is restarted, judging whether each resource data in the target folder has the copy marks;
s6, copying the second resource data without the copy flag to the first set position in the internal storage path, and setting the copied copy flag to the second resource data.
As described above in steps S3-S5, after the resource data in the target folder in the system file storage path is copied to the first set location in the internal storage path, the resource data in the target folder in the system file storage path is marked so that it can be distinguished which data is copied to the first set location in the internal storage path. When a user loads resource data into a target folder under a system file storage path through a server, the resource data is not displayed in an internal storage path, so that the resource data cannot be directly referred by a client, but can be used only after being copied into the internal storage, and therefore the resource data is automatically copied into the target folder under the system file storage path by utilizing a restarting process of the client. Before restarting, a plurality of resource data may be stored in the target folder under the system file storage path, and part of the resource data is copied to the first set position under the internal storage path, so that the resource data is not required to be copied again. It should be noted that when the client restores the factory settings, the copy flag on the resource data in the target folder in the system file storage path is cleared, so as to prevent the resource data in the target folder in the system file storage path from being copied to the first set position in the internal storage path after the client is started for the first time after restoring the factory settings.
In an embodiment, the step S1 of sending, by the client, a storage request of the resource data to a preset server includes:
s101, the client reads a resource data browsing page of a downloading platform of the server;
and S102, after receiving the information that the resource data is selected, the client generates the storage request and sends the storage request to the server.
As described in steps S101 and S102, the resource data does not need to be data already downloaded by the client itself, but may be data provided by the server itself, so that the user can load the resource data that needs not to be deleted by the factory reset directly into the target folder in the system file storage path through the server, and can obtain the resource data conveniently and quickly. The resource data browsing page is a display webpage of a download store such as an application program, book data and the like, and can be displayed at the client, and when the client selects a corresponding downloaded commodity, the client can directly generate a storage request and send the storage request to the server, so that the server can directly load the selected commodity (resource data) into the target folder under the storage path of the system file. When the data is loaded, the server compresses the data first and then loads the data to the client. After the loading is finished, the client will pop up an indication whether to restart, if the restarting is agreed, the client restarts, the resource data loaded after the restarting is copied to a first set position under the internal storage path for the user to use, and if the restarting is not agreed, the corresponding resource data can not be used currently.
In another embodiment, the step S1 of sending, by the client, a storage request of the resource data to a preset server includes:
s111, the client downloads the resource data based on a third-party platform and stores the resource data to a second set position under the internal storage path;
s112, receiving an instruction for selecting the resource data in the second set position, and sending the resource data and the storage request to the server based on the instruction.
As described in the foregoing steps S111 and S112, the third-party platform may be any platform that can download resource data to a client, and the client cannot directly store the resource data in the target folder in the system file storage path after downloading the resource data, and at this time, the third-party platform may select the resource data that needs to be stored in the target folder in the system file storage path, and then send the resource data to the server, so that the server can obtain the resource data, and then load the resource data into the target folder in the system file storage path of the client. The client can load the data downloaded by the third-party platform into the target folder under the system file storage path, so that the storage freedom of a user of the client is improved, and the user experience is improved.
Further, in order to improve the safe use of the client, the server checks the resource data uploaded by the client, for example, whether the resource data carries viruses or not, whether the data conforms to the network security or not, and the server loads the resource data to the client only through the check.
Further, the step of sending the resource data and the storage request to the server based on the instruction includes:
compressing the resource data based on the instruction to obtain compressed resource data;
and sending the compressed resource data and the storage request to the server.
As mentioned above, the resource data is compressed and then uploaded, so that network resources can be saved.
In an embodiment, before the step S1 of sending, by the client, a storage request of the resource data to a preset server, the method includes:
and setting the system file storage path through a research and development server.
As described above, when the research and development server creates a system of a client, the system file storage path is preset, so that the system file storage paths of all clients are consistent. The research and development server also gives the right to directly load the resource data into the system file storage path to the server, so that the user of the client can load the resource data into the system file storage path under the condition of not calling the right of the system file.
In an embodiment, the step S2 of loading, by the server, the resource data into the target folder in the specified system file storage path further includes:
reading the data volume of the resource data stored in the target folder under the system file storage path; judging whether the data volume is larger than a quantity threshold value; if so, an instruction is issued whether to continue loading the resource data, if so, step S2 is executed, and if an instruction to stop loading is received, step S2 is stopped. And the influence on the normal use of the client caused by the excessive loading of data to the storage path of the system file is prevented.
In an embodiment, before the step S1 of sending, by the client, a storage request of the resource data to a preset server, the method further includes: and identifying whether the user currently operating the client is a designated user, if so, continuing to execute the step S1, otherwise, prohibiting to execute the step S1. The safe use of the client can be improved, and the situation that other people maliciously operate the client to load meaningless or potential safety hazard data into the system file storage path is prevented.
Referring to fig. 3, an embodiment of the present application further provides an apparatus for resource data storage, including:
a sending unit 10, configured to send a storage request of resource data to a preset server;
a loading unit 20, configured to load, through the server, the resource data into a target folder in a specified system file storage path;
and the restoring unit 30 is configured to, after the client successfully restores the factory settings and monitors a restart instruction, acquire the resource data in the target folder in the system file storage path, and copy the resource data to a first set position in an internal storage path of the client.
The client generally refers to a mobile phone, a tablet and other computer devices. In one embodiment, the client is a learning tablet for students.
The resource data refers to data that needs to be stored in a designated storage path of the system file, such as an application program, learning materials, files, video, audio, and the like.
The server refers to a server corresponding to the client. The production, the research and the development, the use and the like of the learning tablet need to be completed cooperatively by multiple parties, wherein the research and development server, the server and the client used by a client are used by research and development personnel. Through a research and development server, a research and development staff can build a required application program in a system file storage area of a learning tablet and has the authority to store data, delete data and modify data in the system file storage area; the server refers to a terminal providing a service to the client, and may be a cloud server. The client is a terminal used by the user, such as the learning tablet and the like, and the client does not have the authority to store data, delete data and modify data in the system file storage area.
The storage request is a request generated by the client based on a selection operation of the user. After receiving the storage request, the server directly loads the corresponding resource data into a target folder under the specified system file storage path of the client. The server is endowed with the authority of loading data in a system file storage path appointed to the client by the research and development server. In this way, the client can load data into the system file storage without permission.
In another embodiment, the client may also download the resource data to the client, and when it is necessary to prevent the resource data from being deleted when the client recovers the factory settings, the client may send an authority request for "requiring to store the resource data in the system file" to the research and development server, and when the research and development server gives a corresponding authority to the client, the client may directly copy and store the resource data in the target folder in the system file storage path. Further, when the research and development server does not give the client the corresponding right, the client cannot copy the data resource under the internal storage path to the target folder under the system file storage path, so that the use safety of the client can be improved, and the user is prevented from storing data in the target folder under the system file storage path as intended, and the operation efficiency of the client is not influenced.
Because the resource data is stored in the system file storage area, the resource data is not deleted when factory settings are restored for the client, and after the factory settings are restored for the client, the resource data is found in the system file storage path and copied to the internal storage path of the client. Specifically, after the factory settings are restored and the animation is entered after the system is started for the first time, the resource data in the system file storage area are traversed, and then the resource data are copied to the internal storage path (namely data/media/0) in a jni mode (in the mode, java and c are combined to accelerate the copying speed).
In the embodiment of the application, the client can freely backup the required resource data into the system file storage area, so that when a user restores the factory setting to the client, the user does not need to worry about that the resource data required to be reserved is deleted, and the path under the data is not restored without using recovery code default processing, thereby improving the speed of restoring the factory setting. After rebooting, the resource data can be copied to the internal storage path (i.e. data/media/0) in the target folder under the specified system file storage path.
In an embodiment, the apparatus for storing resource data further includes:
a marking unit configured to set a copy flag that has been copied to the resource data in the target folder;
the judging unit is used for judging whether each resource data in the target folder carries the copy mark or not after the client is restarted;
and the copying unit is used for copying the second resource data without the copying marks to the first set position under the internal storage path and setting the copied copying marks for the second resource data.
As described above, after the resource data in the destination folder in the system file storage path is copied to the first set position in the internal storage path, the resource data in the destination folder in the system file storage path is marked, so that it is possible to distinguish which data is copied to the first set position in the internal storage path. When a user loads resource data into a target folder under a system file storage path through a server, the resource data is not displayed in an internal storage path, so that the resource data cannot be directly referred by a client, but can be used only after being copied into the internal storage, and therefore the resource data is automatically copied into the target folder under the system file storage path by utilizing a restarting process of the client. Before restarting, a plurality of resource data may be stored in the target folder under the system file storage path, and part of the resource data is already copied to the first set position under the internal storage path, so that the resource data which is copied is marked in order to prevent the resource data from being repeatedly copied to the first set position under the internal storage path. It should be noted that when the client restores the factory settings, the copy flag on the resource data in the target folder in the system file storage path is cleared, so as to prevent the resource data in the target folder in the system file storage path from being copied to the first set position in the internal storage path after the client is started for the first time after restoring the factory settings.
In one embodiment, the sending unit 10 includes:
the browsing module is used for reading a resource data browsing page of a downloading platform of the server;
and the first generation module is used for generating the storage request and sending the storage request to the server after receiving the selected information of the resource data.
As described above, the resource data does not need to be data already downloaded by the client itself, but may be data provided by the server itself, so that the user can load the resource data that needs not to be deleted by the factory reset into the target folder in the system file storage path directly through the server, and can conveniently and quickly obtain the resource data. The resource data browsing page is a display webpage of a download store such as an application program, book data and the like, and can be displayed at the client, and when the client selects a corresponding downloaded commodity, the client can directly generate a storage request and send the storage request to the server, so that the server can directly load the selected commodity (resource data) into the target folder under the storage path of the system file. When the data is loaded, the server compresses the data first and then loads the data to the client. After the loading is finished, the client will pop up an indication whether to restart, if the restarting is agreed, the client restarts, the resource data loaded after the restarting is copied to a first set position under the internal storage path for the user to use, and if the restarting is not agreed, the corresponding resource data can not be used currently.
In another embodiment, the sending unit 10 includes:
the download storage module is used for downloading the resource data based on a third-party platform and storing the resource data to a second set position under the internal storage path;
and the second generation module is used for receiving an instruction for selecting the resource data in the second set position and sending the resource data and the storage request to the server based on the instruction.
As described above, the third-party platform may be any platform that can download resource data to the client, and the client cannot directly store the resource data in the target folder in the system file storage path after downloading the resource data, and at this time, the resource data that needs to be stored in the target folder in the system file storage path may be selected and then sent to the server, so that the server can obtain the resource data and then load the resource data into the target folder in the system file storage path of the client. The client can load the data downloaded by the third-party platform into the target folder under the system file storage path, so that the storage freedom of a user of the client is improved, and the user experience is improved.
Further, in order to improve the safe use of the client, the server checks the resource data uploaded by the client, for example, whether the resource data carries viruses or not, whether the data conforms to the network security or not, and the server loads the resource data to the client only through the check.
Further, the second generation module includes:
the compressing subunit is used for compressing the resource data based on the instruction to obtain compressed resource data;
and the sending subunit is configured to send the compressed resource data and the storage request to the server.
As mentioned above, the resource data is compressed and then uploaded, so that network resources can be saved.
In an embodiment, the apparatus for resource data storage further includes:
and the setting unit is used for setting the system file storage path through the research and development server.
As described above, when the research and development server creates a system of a client, the system file storage path is preset, so that the system file storage paths of all clients are consistent. The research and development server also gives the right to directly load the resource data into the system file storage path to the server, so that the user of the client can load the resource data into the system file storage path under the condition of not calling the right of the system file.
In an embodiment, the apparatus for storing resource data further includes:
the data judging unit is used for reading the data volume of the resource data stored in the target folder under the system file storage path; judging whether the data volume is larger than a quantity threshold value; if yes, an instruction whether to continue loading the resource data is sent, if the instruction to continue loading is received, the loading unit 20 is operated, and if the instruction to stop loading is received, the loading unit 20 is stopped. And the influence on the normal use of the client caused by the excessive loading of data to the storage path of the system file is prevented.
In an embodiment, the apparatus for resource data storage further includes:
and the identification unit is used for identifying whether the user currently operating the client is a designated user, if so, the transmission unit 10 is operated, and otherwise, the transmission unit 10 is prohibited to be operated. The safe use of the client can be improved, and the situation that other people maliciously operate the client to load meaningless or potential safety hazard data into the system file storage path is prevented.
Referring to fig. 4, a computer device is further provided in the embodiment of the present application, and an internal structure of the computer device may be as shown in fig. 4. The computer equipment comprises a processor, a memory, a network interface, a display device and an input device which are connected through a system bus. Wherein, the network interface of the computer equipment is used for connecting and communicating with an external terminal through a network. The display device of the computer equipment is used for displaying the interactive page. The input means of the computer device is for receiving input from a user. The computer device is designed with a processor for providing computing and control capabilities. The memory of the computer device includes non-volatile storage media. The non-volatile storage medium stores an operating system, a computer program, and a database. The database of the computer device is used for storing resource data and the like. The computer program when executed by a processor to implement a method of resource data storage comprising:
the client sends a storage request of the resource data to a preset server;
loading the resource data into a target folder under a specified system file storage path through the server;
and when the client successfully restores the factory settings and monitors a restart instruction, acquiring the resource data in the target folder under the system file storage path, and copying the resource data to a first set position under the internal storage path of the client.
In one embodiment, after the step of copying the resource data to the set position under the internal storage path of the client, the method includes:
and setting a copy mark which is copied to the resource data in the target folder.
In one embodiment, the step of sending, by the client, a storage request of the resource data to a preset server includes:
the client reads a resource data browsing page of a downloading platform of the server;
and after receiving the selected information of the resource data, the client generates the storage request and sends the storage request to the server.
In one embodiment, the step of sending, by the client, a storage request of the resource data to a preset server includes:
the client downloads the resource data based on a third-party platform and stores the resource data to a second set position under the internal storage path;
and receiving an instruction for selecting the resource data in the second set position, and sending the resource data and the storage request to the server based on the instruction.
In one embodiment, the step of sending the resource data and the storage request to the server based on the instruction comprises:
compressing the resource data based on the instruction to obtain compressed resource data;
and sending the compressed resource data and the storage request to the server.
In one embodiment, the step of setting a copy flag that has been copied to the resource data in the target folder includes:
after the client is restarted, judging whether each resource data in the target folder carries the copy mark or not;
copying the second resource data without the copy flag to the first set position under the internal storage path, and setting the copied copy flag for the second resource data.
In one embodiment, the step of sending, by the client, a storage request of the resource data to a preset server includes:
and setting the system file storage path through a research and development server.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by the processor, implements a method of resource data storage comprising:
the client sends a storage request of the resource data to a preset server;
loading the resource data into a target folder under a specified system file storage path through the server;
and when the client successfully restores the factory settings and monitors a restart instruction, acquiring the resource data in the target folder under the system file storage path, and copying the resource data to a first set position under the internal storage path of the client.
In one embodiment, after the step of copying the resource data to the set position under the internal storage path of the client, the method includes:
and setting a copy mark which is copied to the resource data in the target folder.
In one embodiment, the step of sending, by the client, a storage request of the resource data to a preset server includes:
the client reads a resource data browsing page of a downloading platform of the server;
and after receiving the selected information of the resource data, the client generates the storage request and sends the storage request to the server.
In one embodiment, the step of sending, by the client, a storage request of the resource data to a preset server includes:
the client downloads the resource data based on a third-party platform and stores the resource data to a second set position under the internal storage path;
and receiving an instruction for selecting the resource data in the second set position, and sending the resource data and the storage request to the server based on the instruction.
In one embodiment, the step of sending the resource data and the storage request to the server based on the instruction comprises:
compressing the resource data based on the instruction to obtain compressed resource data;
and sending the compressed resource data and the storage request to the server.
In one embodiment, the step of setting a copy flag that has been copied to the resource data in the target folder includes:
after the client is restarted, judging whether each resource data in the target folder carries the copy marks or not;
copying the second resource data without the copy flag to the first set position under the internal storage path, and setting the copied copy flag for the second resource data.
In one embodiment, the step of sending, by the client, a storage request of the resource data to a preset server includes:
and setting the system file storage path through a research and development server.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.
Claims (9)
1. A method of resource data storage, comprising:
the client sends a storage request of the resource data to a preset server;
loading the resource data into a target folder under a specified system file storage path through the server;
when the client successfully restores the factory settings and monitors a restart instruction, the resource data is obtained in the target folder under the system file storage path and copied to a first set position under the internal storage path of the client;
before the step of sending the storage request of the resource data to the preset server by the client, the method comprises the following steps:
setting a system file storage path through a research and development server;
the step of loading the resource data to the target folder under the specified system file storage path through the server further comprises: reading the data volume of the resource data stored in the target folder under the system file storage path; judging whether the data volume is larger than a quantity threshold value; if yes, sending an instruction whether to continuously load the resource data, if receiving the instruction to continuously load, executing the step of loading the resource data to the target folder under the appointed system file storage path through the server, and if receiving the instruction to stop loading, stopping executing the step of loading the resource data to the target folder under the appointed system file storage path through the server.
2. The method for storing resource data according to claim 1, wherein the step of copying the resource data to the first set position under the internal storage path of the client is followed by:
and setting a copy mark which is copied to the resource data in the target folder.
3. The method for storing resource data according to claim 1, wherein the step of sending the storage request of the resource data to the preset server by the client comprises:
the client reads a resource data browsing page of a downloading platform of the server;
and after receiving the selected information of the resource data, the client generates the storage request and sends the storage request to the server.
4. The method for storing resource data according to claim 1, wherein the step of sending the storage request of the resource data to the preset server by the client comprises:
the client downloads the resource data based on a third-party platform and stores the resource data to a second set position under the internal storage path;
and receiving an instruction for selecting the resource data in the second set position, and sending the resource data and the storage request to the server based on the instruction.
5. The method of claim 4, wherein the step of sending the resource data and the storage request to the server based on the instruction comprises:
compressing the resource data based on the instruction to obtain compressed resource data;
and sending the compressed resource data and the storage request to the server.
6. The method for storing resource data according to claim 2, wherein the step of setting the copy flag that has been copied to the resource data in the target folder comprises:
after the client is restarted, judging whether each resource data in the target folder carries the copy marks or not;
copying the second resource data without the copy flag to the first set position under the internal storage path, and setting the copied copy flag for the second resource data.
7. An apparatus for resource data storage, comprising:
the sending unit is used for sending a storage request of the resource data to a preset server;
the loading unit is used for loading the resource data into a target folder under a specified system file storage path through the server;
the recovery unit is used for acquiring the resource data in the target folder under the system file storage path and copying the resource data to a first set position under the internal storage path of the client when the client successfully recovers the factory settings and monitors a restart instruction;
the setting unit is used for setting the system file storage path through a research and development server;
the data judging unit is used for reading the data volume of the resource data stored in the target folder under the system file storage path; judging whether the data volume is larger than a quantity threshold value; if yes, an instruction whether to continue loading the resource data is sent out, if the instruction for continuing loading is received, the loading unit is operated, and if the instruction for stopping loading is received, the loading unit is stopped from operating.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of resource data storage of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for resource data storage according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210830819.5A CN114896219B (en) | 2022-07-15 | 2022-07-15 | Method and device for storing resource data, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210830819.5A CN114896219B (en) | 2022-07-15 | 2022-07-15 | Method and device for storing resource data, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114896219A CN114896219A (en) | 2022-08-12 |
CN114896219B true CN114896219B (en) | 2022-09-20 |
Family
ID=82729704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210830819.5A Active CN114896219B (en) | 2022-07-15 | 2022-07-15 | Method and device for storing resource data, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114896219B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105512544A (en) * | 2015-11-30 | 2016-04-20 | 深圳市创想天空科技股份有限公司 | Method and device for obtaining superuser permission of mobile terminal |
CN110750507A (en) * | 2019-09-30 | 2020-02-04 | 华中科技大学 | Client persistent caching method and system under global namespace facing DFS |
CN111400091A (en) * | 2020-03-06 | 2020-07-10 | Oppo(重庆)智能科技有限公司 | Factory setting restoring method, factory setting restoring device and mobile terminal |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915263B (en) * | 2012-10-19 | 2016-05-11 | 小米科技有限责任公司 | A kind of data back up method, system and equipment |
CN104426718B (en) * | 2013-09-10 | 2018-04-13 | 方正宽带网络服务股份有限公司 | Data decryptor server, cache server and redirection method for down loading |
CN103942121A (en) * | 2014-04-04 | 2014-07-23 | 上海斐讯数据通信技术有限公司 | Data recovery system and mobile terminal |
CN104123199A (en) * | 2014-07-03 | 2014-10-29 | 可牛网络技术(北京)有限公司 | Method and device for recovering application program and mobile terminal |
CN104932955A (en) * | 2015-05-29 | 2015-09-23 | 深圳市创维电器科技有限公司 | Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal |
CA2941948A1 (en) * | 2015-09-21 | 2017-03-21 | Wal-Mart Stores, Inc. | Adjustable dual-tone multi-frequency phone system |
US11012496B2 (en) * | 2017-08-10 | 2021-05-18 | Citrix Systems, .Inc. | Mobile-optimized file transfer mechanism based on QR code |
CN107656706A (en) * | 2017-10-30 | 2018-02-02 | 努比亚技术有限公司 | A kind of data processing method, terminal and computer-readable storage medium |
WO2020010584A1 (en) * | 2018-07-12 | 2020-01-16 | 华为技术有限公司 | Data recovery method for when restoring factory settings of terminal, and terminal |
WO2020015259A1 (en) * | 2018-07-20 | 2020-01-23 | 华为技术有限公司 | Data backup method and terminal |
-
2022
- 2022-07-15 CN CN202210830819.5A patent/CN114896219B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105512544A (en) * | 2015-11-30 | 2016-04-20 | 深圳市创想天空科技股份有限公司 | Method and device for obtaining superuser permission of mobile terminal |
CN110750507A (en) * | 2019-09-30 | 2020-02-04 | 华中科技大学 | Client persistent caching method and system under global namespace facing DFS |
CN111400091A (en) * | 2020-03-06 | 2020-07-10 | Oppo(重庆)智能科技有限公司 | Factory setting restoring method, factory setting restoring device and mobile terminal |
Non-Patent Citations (3)
Title |
---|
Android应用程序加固与隐私保护技术研究;束骏亮;《中国博士学位论文全文数据库 信息科技辑》;20200615(第06(2020)期);I138-6 * |
Safe driving: A mobile application for detecting traffic accidents;Samah Jamal 等;《2018 IEEE Middle East and North Africa Communications Conference (MENACOMM)》;20180604;1-6 * |
面向Android手机远程取证分析的研究与应用;常亚翠;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180415(第04(2018)期);I136-1697 * |
Also Published As
Publication number | Publication date |
---|---|
CN114896219A (en) | 2022-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108108181B (en) | Function updating method and device of application program and computer readable storage medium | |
CN106569859B (en) | Target file loading method and device | |
CN107783795B (en) | Application program starting method and device, computer equipment and storage medium | |
CN110363026B (en) | File operation method, device, equipment, system and computer readable storage medium | |
US20090292710A1 (en) | Management of mobile-device data | |
CN107015801B (en) | Webpage display method and application terminal | |
CN110531984B (en) | Code compiling method, device, system, computer equipment and storage medium | |
CN114118971A (en) | Cloud-native-based online development method, device, equipment and storage medium | |
CN111552535A (en) | Interface picture replacing method and device, computer equipment and storage medium | |
CN106155723B (en) | Method and device for upgrading service application program, terminal and computer storage medium | |
US8549166B2 (en) | Execution of unverified programs in a wireless, device operating environment | |
CN114896219B (en) | Method and device for storing resource data, computer equipment and storage medium | |
CN113641987B (en) | Interception method and device for silent installation of application and computer equipment | |
CN114417202A (en) | Artificial intelligence-based mixed page skipping method, device and equipment | |
CN112596816B (en) | Form processing method and device and electronic equipment | |
CN109298895B (en) | APP management method and device on mobile equipment | |
US12135825B2 (en) | Method and apparatus for custom development of payment application, computer device, and storage medium | |
US20150154388A1 (en) | Information processing apparatus and user authentication method | |
CN113157337A (en) | Application program starting method and device, terminal equipment and storage medium | |
CN109240712B (en) | Data migration method of secure working space, terminal and storage medium | |
CN111262934A (en) | File analysis method and device | |
CN114090055A (en) | Application program updating method and device, terminal and storage medium | |
CN106156608B (en) | Method and device for forbidding self-starting of background application | |
CN116150711A (en) | Software processing method and device, electronic equipment and storage medium | |
CN110673869B (en) | Library file loading method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |