CN114896219A - 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 PDF

Info

Publication number
CN114896219A
CN114896219A CN202210830819.5A CN202210830819A CN114896219A CN 114896219 A CN114896219 A CN 114896219A CN 202210830819 A CN202210830819 A CN 202210830819A CN 114896219 A CN114896219 A CN 114896219A
Authority
CN
China
Prior art keywords
resource data
client
server
storage path
system file
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.)
Granted
Application number
CN202210830819.5A
Other languages
Chinese (zh)
Other versions
CN114896219B (en
Inventor
宋清林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Waterward Information Co Ltd
Original Assignee
Shenzhen Waterward Information Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Waterward Information Co Ltd filed Critical Shenzhen Waterward Information Co Ltd
Priority to CN202210830819.5A priority Critical patent/CN114896219B/en
Publication of CN114896219A publication Critical patent/CN114896219A/en
Application granted granted Critical
Publication of CN114896219B publication Critical patent/CN114896219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy 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

Method and device for storing resource data, computer equipment and storage medium
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 do not 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, 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.
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 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 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 a user, such as the learning tablet, 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, 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 resource data storage 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 copy marks to the first set position under the internal storage path and setting the copied copy 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 resource data storage 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 communicating with an external terminal through network connection. The display device of the computer device 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 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.
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 (10)

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;
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.
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. The method for storing resource data according to claim 2, wherein the step of sending the storage request of the resource data to the preset server by the client is preceded by:
and setting the system file storage path through a research and development server.
8. 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;
and 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.
9. 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 according to any of claims 1 to 7.
10. 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 7.
CN202210830819.5A 2022-07-15 2022-07-15 Method and device for storing resource data, computer equipment and storage medium Active CN114896219B (en)

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 true CN114896219A (en) 2022-08-12
CN114896219B 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 (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915263A (en) * 2012-10-19 2013-02-06 北京小米科技有限责任公司 Data backup method, system and equipment
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
CN104426718A (en) * 2013-09-10 2015-03-18 方正宽带网络服务股份有限公司 Data monitoring server, cache server and redirection downloading method
CN104932955A (en) * 2015-05-29 2015-09-23 深圳市创维电器科技有限公司 Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal
CN105512544A (en) * 2015-11-30 2016-04-20 深圳市创想天空科技股份有限公司 Method and device for obtaining superuser permission of mobile terminal
US20170085713A1 (en) * 2015-09-21 2017-03-23 Wal-Mart Stores, Inc. Adjustable dual-tone multi-frequency phone system
CN107656706A (en) * 2017-10-30 2018-02-02 努比亚技术有限公司 A kind of data processing method, terminal and computer-readable storage medium
US20190052697A1 (en) * 2017-08-10 2019-02-14 Citrix Systems, Inc. Mobile-optimized file transfer mechanism based on qr code
CN110750507A (en) * 2019-09-30 2020-02-04 华中科技大学 Client persistent caching method and system under global namespace facing DFS
CN111373379A (en) * 2018-07-20 2020-07-03 华为技术有限公司 Data backup method and terminal
CN111373380A (en) * 2018-07-12 2020-07-03 华为技术有限公司 Data recovery method for terminal to restore factory settings and terminal
CN111400091A (en) * 2020-03-06 2020-07-10 Oppo(重庆)智能科技有限公司 Factory setting restoring method, factory setting restoring device and mobile terminal

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915263A (en) * 2012-10-19 2013-02-06 北京小米科技有限责任公司 Data backup method, system and equipment
CN104426718A (en) * 2013-09-10 2015-03-18 方正宽带网络服务股份有限公司 Data monitoring server, cache server and redirection downloading method
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
US20170085713A1 (en) * 2015-09-21 2017-03-23 Wal-Mart Stores, Inc. Adjustable dual-tone multi-frequency phone system
CN105512544A (en) * 2015-11-30 2016-04-20 深圳市创想天空科技股份有限公司 Method and device for obtaining superuser permission of mobile terminal
US20190052697A1 (en) * 2017-08-10 2019-02-14 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
CN111373380A (en) * 2018-07-12 2020-07-03 华为技术有限公司 Data recovery method for terminal to restore factory settings and terminal
CN111373379A (en) * 2018-07-20 2020-07-03 华为技术有限公司 Data backup method and 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)

* Cited by examiner, † Cited by third party
Title
SAMAH JAMAL 等: "Safe driving: A mobile application for detecting traffic accidents", 《2018 IEEE MIDDLE EAST AND NORTH AFRICA COMMUNICATIONS CONFERENCE (MENACOMM)》 *
常亚翠: "面向Android手机远程取证分析的研究与应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
束骏亮: "Android应用程序加固与隐私保护技术研究", 《中国博士学位论文全文数据库 信息科技辑》 *

Also Published As

Publication number Publication date
CN114896219B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN108108181B (en) Function updating method and device of application program and computer readable storage medium
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN107870787B (en) Application program plug-in loading method and system
CN107783795B (en) Application program starting method and device, computer equipment and storage medium
US7584201B2 (en) Management of mobile-device data
CN106569859B (en) Target file loading method and device
CN110363026B (en) File operation method, device, equipment, system and computer readable storage medium
CN110351182B (en) Mail sending method, device, equipment and computer readable storage medium
WO2005084202A2 (en) Execution of unverified programs in a wireless device operating environment
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
CN110851081A (en) Method and device for safely cleaning storage space and computer readable storage medium
CN106155723B (en) Method and device for upgrading service application program, terminal and computer storage medium
CN115396421A (en) Data transmission and filtering method and device, electronic equipment and storage medium
CN114896219B (en) Method and device for storing resource data, computer equipment and storage medium
KR20180077249A (en) How to manage packages within a security element
CN109766084B (en) Customized development method and device for payment application, computer equipment and storage medium
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
CN113641987B (en) Interception method and device for silent installation of application and computer equipment
CN114553786A (en) Network request fusing method and device, computer equipment and storage medium
CN114090055A (en) Application program updating method and device, terminal and storage medium
CN112596816B (en) Form processing method and device and electronic equipment
CN114417202A (en) Artificial intelligence-based mixed page skipping method, device and equipment
CN106156608B (en) Method and device for forbidding self-starting of background application

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