WO2021097623A1 - 一种文件处理方法、文件处理装置及终端设备 - Google Patents

一种文件处理方法、文件处理装置及终端设备 Download PDF

Info

Publication number
WO2021097623A1
WO2021097623A1 PCT/CN2019/119242 CN2019119242W WO2021097623A1 WO 2021097623 A1 WO2021097623 A1 WO 2021097623A1 CN 2019119242 W CN2019119242 W CN 2019119242W WO 2021097623 A1 WO2021097623 A1 WO 2021097623A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
file set
target
digital signature
compressed
Prior art date
Application number
PCT/CN2019/119242
Other languages
English (en)
French (fr)
Inventor
赵杰
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2019/119242 priority Critical patent/WO2021097623A1/zh
Priority to CN201980099830.5A priority patent/CN114303131A/zh
Publication of WO2021097623A1 publication Critical patent/WO2021097623A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • This application belongs to the field of information processing technology, and in particular relates to a file processing method, a file processing device, a terminal device, and a computer-readable storage medium.
  • This application provides a file processing method, a file processing device, a terminal device, and a computer-readable storage medium, which can read a new version of a file acquired at a designated terminal to improve information processing efficiency when subsequent updates are performed.
  • the first aspect of this application provides a file processing method, including:
  • the preset condition Set condition means that the size of the storage area is a positive integer multiple of a preset threshold
  • each first file in the obtained first file set is spliced to obtain the target file set;
  • the difference file including a first difference result obtained by performing a difference operation on the target file set and the second file set;
  • the target compressed file is sent to a designated terminal to instruct the designated terminal to obtain a restored target file set according to the target compressed file and the third file set in the designated terminal, where the third file The set is the same as the second file set.
  • the second aspect of the present application provides a file processing device, including:
  • the first obtaining module is configured to obtain a first file set, and the first file set includes at least one first file;
  • the first determining module is configured to determine the size of the storage area corresponding to each first file
  • the adjustment module is configured to, if the size of at least one storage area does not meet the preset condition, expand the storage area that does not meet the preset condition, so that the size of the expanded storage area meets the preset condition,
  • the preset condition means that the size of the storage area is a positive integer multiple of a preset threshold
  • the first processing module is configured to splice each first file in the first file set obtained after expanding the storage area that does not meet the preset condition to obtain the target file set;
  • the second obtaining module is configured to obtain a second file set, where the second file set is a historical version file set of the first file set;
  • the third obtaining module is used to obtain the first digital signature of the target file set
  • a second processing module configured to obtain a difference file, the difference file including a first difference result obtained by performing a difference operation on the target file set and the second file set;
  • a third processing module configured to obtain a target compressed file containing the difference file and the first digital signature
  • the sending module is configured to send the target compressed file to a designated terminal, so that the designated terminal can obtain a restored target file set according to the target compressed file and a third file set in the designated terminal, where , The third file set is the same as the second file set.
  • the third aspect of the present application provides a terminal device.
  • the terminal device includes a memory, a processor, and a computer program that is stored in the memory and can run on the processor.
  • the processor executes the computer program, the above-mentioned The steps of the file processing method on the one hand.
  • a fourth aspect of the present application provides a computer-readable storage medium, the above-mentioned computer-readable storage medium stores a computer program, and the above-mentioned computer program is executed by a processor to realize the steps of the file processing method of the above-mentioned first aspect.
  • a fifth aspect of the present application provides a computer program product.
  • the computer program product includes a computer program, and when the computer program is executed by one or more processors, the steps of the file processing method of the first aspect are implemented.
  • FIG. 1 is a schematic diagram of an implementation process of a file processing method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of the storage structure of the first file set and the target file set in the file processing method provided by the embodiment of the present application;
  • Figure 3 is a structural block diagram of a file processing device provided by an embodiment of the present application.
  • Fig. 4 is a schematic diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 1 it is a schematic diagram of an implementation flow of a file processing method provided by an embodiment of this application.
  • the file processing method can be applied to terminal equipment.
  • the terminal device may be a server, a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR)/virtual reality (VR) device, a notebook computer, an ultra mobile personal computer (Ultra -mobile Personal Computer, UMPC), netbook, personal digital assistant (Personal Digital Assistant, PDA), etc.
  • AR augmented reality
  • VR virtual reality
  • PDA Personal Digital Assistant
  • files in some terminals often need to be updated.
  • an application program installed in a mobile terminal often needs to download a new version of the installation package for upgrade, or a certain file needs to be version updated, and so on.
  • the application in the mobile terminal needs to be upgraded, the user will obtain the installation package of the new version of the application through the browser, application store, etc. in the mobile terminal.
  • a new version of the file also needs to be obtained for subsequent updates and other operations.
  • the new version of the file is often obtained in the form of a compressed package, and the file processing method provided in the embodiment of this application can pair the obtained new version on the designated terminal
  • the file is read to improve the efficiency of information processing when subsequent updates are performed.
  • the file processing method in the embodiment of the present application includes:
  • step 101 a first file set is obtained, and the first file set includes at least one first file.
  • the file types of the first file set may be multiple.
  • the first file set may be a folder or a compressed file.
  • Each first file in the first file set may be independent or merged together.
  • the first file set may be pre-stored in a terminal device that executes the embodiment of the present application, or it may be obtained by the terminal device from another terminal through a specific information transmission method.
  • step 102 the size of the storage area corresponding to each first file is determined.
  • step 103 if the size of at least one storage area does not meet the preset condition, expand the storage area that does not meet the preset condition, so that the size of the expanded storage area meets the preset condition,
  • the preset condition means that the size of the storage area is a positive integer multiple of a preset threshold.
  • the size of the preset threshold may be determined according to actual application scenarios. In some embodiments, the size of the preset threshold may be determined according to the size of the cache area when the restored target file set is subsequently decompressed in the designated terminal.
  • expanding the storage area that does not meet the preset condition can make the size of the expanded storage area meet the preset condition, and the size of the storage area after expansion is the same as the size of the storage area before expansion.
  • the difference in the size of the storage area is smaller than the preset threshold, so that when the size of the expanded storage area meets the preset condition, the size of the expanded storage area is as small as possible , In order to reduce the waste of storage resources.
  • the content of the newly added part may be empty.
  • the ratio of each storage area that meets the preset condition to the preset threshold is a positive integer, but each storage area that meets the preset condition is compared to the preset threshold.
  • the ratio of is not necessarily the same.
  • the preset threshold may be 8k
  • the size of the storage area of the first file 1 is 16k
  • the size of the storage area of the first file 2 is 32k
  • the size of the storage area of the first file 3 is 34k
  • the sizes of the storage areas corresponding to the first file 1 and the first file 2 both meet the preset conditions, while the sizes of the storage areas corresponding to the first file 3 do not meet the preset conditions.
  • the storage area corresponding to the first file 3 can be expanded to 40k.
  • the size of the storage area of the first file 1, the size of the storage area of the first file 2, and the size of the storage area corresponding to the expanded first file 3 all meet the preset conditions.
  • step 104 after expanding the storage area that does not meet the preset condition, each first file in the obtained first file set is spliced to obtain the target file set.
  • the target file set includes a first file whose size of a corresponding storage area meets a preset condition and a first file whose corresponding storage area is expanded.
  • the sequence of the positions of the first files in the target file set may be the same as the sequence of the positions of the first files in the first file set.
  • the file type of the target file set is the same as the file type of the first file set.
  • the following uses a specific example to illustrate the storage structure of the first file set and the target file set.
  • FIG. 2 a schematic diagram of the storage structure of the first file set and the target file set.
  • the file types of the first file set and the target file set are compressed files
  • the preset threshold may be 8k
  • the size of the storage area of the first file 1-1 is 16k
  • the first file 2-1 The size of the storage area of is 32k
  • the size of the storage area of the first file 3-1 is 34k
  • the size of the storage area of the first file 4-1 is 15k.
  • the size of the storage area of the first file 1-2 is 16k
  • the size of the storage area of the first file 2-2 is 32k
  • the size of the storage area of the first file 4-2 is 16k.
  • the first file 3-2 in the target file set and the first file 3-1 in the first file set are expanded to obtain, and the first file 4-2 in the target file set and the first file 3-1 in the target file set are expanded.
  • the first file 4-1 in the first file set is obtained after expansion.
  • step 105 a second file set is obtained, and the second file set is a historical version file set of the first file set.
  • the second file set can be determined as the historical version file set of the first file set through information such as version number, file name, and so on.
  • the second file set can be obtained in multiple ways, for example, it can be obtained by the terminal device implementing the embodiments of the present application from another terminal through a specific information transmission method, or it can be pre-stored in the terminal device. of.
  • the file types of the first file set and the second file set are compressed files.
  • the first set of files may be, for example, a new version of the installation package, a compressed package obtained by compressing the new version of the file, and so on.
  • the second set of files is the corresponding installation package of the old version, the compressed package obtained after compressing the file of the old version, and so on.
  • the target compressed file obtained subsequently can directly contain the difference information between the installation package of the new version and the installation package of the old version, so that the restoration can be obtained directly according to the target compressed file and the third file set in the designated terminal
  • the installation package of the later new version can be verified. At this time, there are fewer information processing steps and higher information processing speed.
  • step 106 the first digital signature of the target file set is obtained.
  • the first digital signature may be used in subsequent information processing to verify the restored target file set.
  • the target document set may be transmitted to the provider of the first document set, and the provider's first digital signature of the target document set may be obtained; or, also according to the first document set.
  • the private key provided by the provider (such as the developer) of the file set generates the first digital signature of the target file set.
  • step 107 a difference file is obtained, and the difference file includes a first difference result obtained by performing a difference operation on the target file set and the second file set.
  • the first difference result is obtained by performing a difference operation on the target document set and the first document set.
  • the difference algorithm may be One or more of the difference algorithms such as Bsdiff and Xdelta3, and the difference algorithm is not limited here.
  • the difference file may also include other difference results.
  • the obtaining of the difference file includes:
  • the second digital signature corresponding to the first file set may be a digital signature obtained according to the first file set itself; or, if the first file set is obtained by decompressing the first compressed file, then The second digital signature corresponding to the first file set may be a digital signature obtained from the first compressed file.
  • the difference operation is performed on the first digital signature and the second digital signature to obtain the second difference result, which can reduce the size of the file for subsequent information transmission, thereby reducing the corresponding traffic consumption.
  • step 108 a target compressed file containing the difference file and the first digital signature is obtained.
  • the difference file and the first digital signature may exist in multiple forms.
  • a digital signature file containing the first digital signature may be generated, and then the difference file and the digital signature file may be compressed to obtain the target compressed file; in addition, the first digital signature may also be The digital signature is added to the difference file, for example, after the end position of the difference file, and the added first digital signature is identified by a corresponding mark.
  • step 109 the target compressed file is sent to a designated terminal to instruct the designated terminal to obtain a restored target file set according to the target compressed file and a third file set in the designated terminal, where: The third file set is the same as the second file set.
  • the designated terminal may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, a server, or augmented reality (AR)/virtual reality.
  • AR Augmented Reality
  • VR Virtual Reality
  • the size of the target compressed file may be smaller than the first file set. Therefore, transmitting the target compressed file to the designated terminal can reduce traffic consumption accordingly.
  • the target compressed file can be synthesized with the third file set in the designated terminal, so as to obtain the restored target file set. Since the size of the storage area of each file in the target file set is an integer multiple of the preset threshold, when the designated terminal performs decompression or other processing on the restored target file set, If it is necessary to read the restored target file set, the preset threshold may be the size of a single read. For example, the read may be performed through a cache area whose size is the preset threshold. take.
  • the file block obtained each time will only come from the same file, and not It appears that part of the file blocks obtained by reading the cache area once comes from one file, and the other part comes from another file, which greatly improves the efficiency of information processing and facilitates subsequent analysis and processing.
  • the first digital signature in the target compressed file is used to verify the restored target file set after the restored target file set is obtained.
  • a third file set in the designated terminal may be obtained, and the difference file in the target compressed file may be the same as the third file set.
  • the set is synthesized so that the designated terminal can obtain the restored target file set, so that the restored target file set can be verified through the first digital signature in the target compressed file, so that the designated terminal
  • the target file set can be used to perform corresponding functions, decompress, install, read, and so on.
  • the restored target file set is used for reading from a cache area whose size is the preset threshold.
  • the preset threshold may be determined in advance according to a general setting manner of the cache area.
  • the size of the cache area is generally 8k, and the preset threshold may be set to 8k.
  • the file block obtained each time will only come from the same file, and not It appears that part of the file blocks obtained by reading the cache area once comes from one file, and the other part comes from another file, which greatly improves the efficiency of information processing.
  • the first file set is obtained by decompressing a first compressed file
  • the second file set is obtained by decompressing a second compressed file
  • the second compressed file is the first compressed file.
  • the obtaining the target compressed file containing the difference file and the first digital signature includes:
  • a target compressed file containing the difference file and the first digital signature is obtained.
  • the first file set is not a compressed file, and therefore, the target file set is also not a compressed file.
  • the difference file is obtained by performing a difference operation on the decompressed file set (that is, the target file set and the second file set).
  • the size of the difference file is often smaller than directly combining the first compressed file and the The size of the file obtained by performing the differential operation on the second compressed file, therefore, reduces the size of the target compressed file to be transmitted, thereby greatly reducing the traffic consumption of related users and reducing the transmission time.
  • the compression method with the compression ratio of 1 may be a compression method that does not use a compression algorithm to process the difference file and the information of the first digital signature.
  • the part of the differential file in it can be quickly extracted and synthesized with the third file set without spending more time on the target compressed file. Unzip it.
  • the obtaining the first file set includes:
  • the obtaining the second file set includes:
  • the terminal device that executes the embodiment may be a device (such as a server or a specific mobile terminal) that can provide corresponding download resources.
  • the historical version information may be used to identify information about the version of the corresponding file, for example, may include version number, file name, and so on.
  • the object of the difference operation After receiving the download request of the designated terminal for the first compressed file, by acquiring the historical version information of the third compressed file in the designated terminal, the object of the difference operation can be determined.
  • the third file set is obtained by decompressing the third compressed file.
  • the mobile terminal can request the server to obtain the installation package of the new version through the application store.
  • the server can obtain the historical version information of the installation package of the old version in the designated terminal from the designated terminal, so that the server can obtain the same file as the installation package of the old version in the mobile terminal (that is, the first 2.
  • Compressed file and the installation package of the new version required by the mobile terminal, so as to decompress the first compressed file to obtain the first file set, and decompress the second compressed file to obtain all In the second file set, the difference file is obtained according to the first file set and the second file set.
  • the obtaining the first digital signature of the target file set includes:
  • the preset object may be an object that provides the first file set, for example, may be a developer of the first file set.
  • the preset object can use the key used to generate the second digital signature to generate the first digital signature, and return it to the execution of this application The terminal device of the embodiment.
  • the obtaining the first digital signature of the target file set includes:
  • the first digital signature of the target file set is generated, the preset key is received in advance from the preset object, and the preset key is for generating the first file The key used by the second digital signature corresponding to the set.
  • the preset key may be sent in advance by the preset object to the terminal device that executes the embodiment of the present application. At this time, the terminal device executing the embodiment of the present application can easily generate the first digital signature of the target file set.
  • the terminal device can obtain the target file set in which the size of the storage area of each file is a positive integer multiple of the preset threshold, and obtain the difference file between the target file set and the second file set. , And the first digital signature of the target file set; at this time, the target compressed file containing the difference file and the first digital signature can be obtained and sent to the designated terminal, wherein the difference in the target compressed file
  • the files are often smaller than the first file set. Therefore, the traffic consumption of information transmission can be reduced.
  • the first digital signature can be used to subsequently restore the restored target file set after the designated terminal
  • the final target file set is verified, so that the designated terminal can use the restored target file set in compliance with specifications; and, because the size of the storage area of each file in the target file set is within a preset threshold A positive integer multiple, therefore, when the target file set after restoration is read in blocks, it can be read through a cache area with a size of the preset threshold, etc.
  • the file block obtained each time will only come from the same file, and not It appears that part of the file blocks obtained by reading the cache area once comes from one file, and the other part comes from another file, which greatly improves the efficiency of information processing.
  • the embodiment of the present application provides a file processing apparatus.
  • the above-mentioned file processing apparatus can be integrated in a terminal device.
  • the file processing apparatus 300 in the embodiment of the present application includes:
  • the first obtaining module 301 is configured to obtain a first file set, and the first file set includes at least one first file;
  • the first determining module 302 is configured to determine the size of the storage area corresponding to each first file
  • the expansion module 303 is configured to expand the storage area that does not meet the preset condition if the size of at least one storage area does not meet the preset condition, so that the size of the expanded storage area meets the preset condition ,
  • the preset condition means that the size of the storage area is a positive integer multiple of a preset threshold
  • the first processing module 304 is configured to splice each first file in the first file set obtained after expanding the storage area that does not meet the preset condition to obtain the target file set;
  • the second obtaining module 305 is configured to obtain a second file set, where the second file set is a historical version file set of the first file set;
  • the third obtaining module 306 is configured to obtain the first digital signature of the target file set
  • the second processing module 307 is configured to obtain a difference file, where the difference file includes a first difference result obtained by performing a difference operation on the target file set and the second file set;
  • the third processing module 308 is configured to obtain a target compressed file containing the difference file and the first digital signature
  • the sending module 309 is configured to send the target compressed file to a designated terminal, so that the designated terminal can obtain the restored target file set according to the target compressed file and the third file set in the designated terminal, Wherein, the third file set is the same as the second file set.
  • the second processing module 307 specifically includes:
  • the first obtaining unit is configured to obtain the second digital signature corresponding to the first file set
  • a first calculation unit configured to perform a difference operation on the target document set and the second document set to obtain a first difference result
  • a second calculation unit configured to perform a difference operation between the first digital signature and the second digital signature to obtain a second difference result
  • the merging unit is configured to merge the first difference result and the second difference result to obtain the difference file.
  • the first file set is obtained by decompressing a first compressed file
  • the second file set is obtained by decompressing a second compressed file
  • the second compressed file is a historical version file of the first compressed file
  • the third processing module 308 is specifically configured to:
  • a target compressed file containing the difference file and the first digital signature is obtained.
  • the first obtaining module 301 specifically includes:
  • the second acquiring unit is configured to acquire the first compressed file after receiving the download request of the designated terminal for the first compressed file;
  • the third obtaining unit is configured to obtain historical version information of the third compressed file corresponding to the third file set in the designated terminal;
  • a first decompression unit configured to decompress the first compressed file to obtain the first file set
  • the second acquisition module 305 includes:
  • the fourth obtaining unit is configured to obtain the second compressed file according to the historical version information
  • the second decompression unit is configured to decompress the second compressed file to obtain the second file set.
  • the file types of the first file set and the second file set are both compressed files.
  • the first digital signature in the target compressed file is used to verify the restored target file set after the restored target file set is obtained.
  • the third obtaining module 306 is specifically configured to:
  • the third obtaining module 306 is specifically configured to:
  • the first digital signature of the target file set is generated, the preset key is received in advance from the preset object, and the preset key is for generating the first file The key used by the second digital signature corresponding to the set.
  • the restored target file set is used for reading from a cache area whose size is the preset threshold.
  • the terminal device can obtain the target file set in which the size of the storage area of each file is a positive integer multiple of the preset threshold, and obtain the difference file between the target file set and the second file set. , And the first digital signature of the target file set; at this time, the target compressed file containing the difference file and the first digital signature can be obtained and sent to the designated terminal, wherein the difference in the target compressed file
  • the files are often smaller than the first file set. Therefore, the traffic consumption of information transmission can be reduced.
  • the first digital signature can be used to subsequently restore the restored target file set after the designated terminal
  • the final target file set is verified, so that the designated terminal can use the restored target file set in compliance with specifications; and, because the size of the storage area of each file in the target file set is within a preset threshold A positive integer multiple, therefore, when the target file set after restoration is read in blocks, it can be read through a cache area with a size of the preset threshold, etc.
  • the file block obtained each time will only come from the same file, and not It appears that part of the file blocks obtained by reading the cache area once comes from one file, and the other part comes from another file, which greatly improves the efficiency of information processing.
  • the terminal device in the embodiment of the present application includes: a memory 401, one or more processors 402 (only one is shown in FIG. 4) and stored in the memory 401 A computer program that can run on the processor.
  • the memory 401 is used to store software programs and modules, and the processor 402 executes various functional applications and data processing by running the software programs and units stored in the memory 401 to obtain resources corresponding to the aforementioned preset events.
  • the processor 402 implements the steps in the foregoing file processing method embodiments by running the foregoing computer program stored in the memory 401.
  • the aforementioned terminal device may further include: one or more input devices 403 (only one is shown in Fig. 4) and one or more output devices 404 (only one is shown in Fig. 4).
  • the memory 401, the processor 402, the input device 403, and the output device 404 are connected by a bus 405.
  • the processor 402 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors or digital signal processors (Digital Signal Processors, DSPs). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the input device 403 may include a keyboard, a touch panel, a fingerprint sensor (used to collect user fingerprint information and fingerprint orientation information), a microphone, etc.
  • the output device 404 may include a display, a speaker, and the like.
  • the memory 401 may include a read-only memory and a random access memory, and provides instructions and data to the processor 402. A part or all of the memory 401 may also include a non-volatile random access memory. For example, the memory 401 may also store device type information.
  • the terminal device can obtain the target file set in which the size of the storage area of each file is a positive integer multiple of the preset threshold, and obtain the difference file between the target file set and the second file set. , And the first digital signature of the target file set; at this time, the target compressed file containing the difference file and the first digital signature can be obtained and sent to the designated terminal, wherein the difference in the target compressed file
  • the files are often smaller than the first file set. Therefore, the traffic consumption of information transmission can be reduced.
  • the first digital signature can be used to subsequently restore the restored target file set after the designated terminal
  • the final target file set is verified, so that the designated terminal can use the restored target file set in compliance with specifications; and, because the size of the storage area of each file in the target file set is within a preset threshold A positive integer multiple, therefore, when the target file set after restoration is read in blocks, it can be read through a cache area with a size of the preset threshold, etc.
  • the file block obtained each time will only come from the same file, and not It appears that part of the file blocks obtained by reading the cache area once comes from one file, and the other part comes from another file, which greatly improves the efficiency of information processing.
  • the disclosed device and method may be implemented in other ways.
  • the system embodiment described above is only illustrative.
  • the division of the above-mentioned modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the aforementioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • this application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program.
  • the above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program When executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the above-mentioned computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer readable memory, read-only memory (ROM, Read-Only Memory) ), Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc.
  • the content contained in the above-mentioned computer-readable storage medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction.
  • the computer-readable storage The medium does not include electrical carrier signals and telecommunication signals.
  • the embodiments of the present application provide a computer program product.
  • the steps in the above-mentioned file processing method embodiments can be realized when the mobile terminal is executed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请公开的一种文件处理方法包括:获取第一文件集合,所述第一文件集合中包括至少一个第一文件;确定各个第一文件所分别对应的存储区域的大小;若存在至少一个存储区域的大小不符合预设条件,则对不符合预设条件的存储区域进行扩充,以使得扩充后的所述存储区域的大小符合所述预设条件;将对不符合预设条件的存储区域进行扩充之后,所得到的第一文件集合中的各个第一文件进行合并,得到目标文件集合;获取第二文件集合,所述第二文件集合为所述第一文件集合的历史版本文件集合;获取所述目标文件集合的第一数字签名;获得差分文件;获得包含所述差分文件和所述第一数字签名的目标压缩文件;将所述目标压缩文件发送至指定终端。

Description

一种文件处理方法、文件处理装置及终端设备 技术领域
本申请属于信息处理技术领域,尤其涉及一种文件处理方法、文件处理装置、终端设备及计算机可读存储介质。
背景技术
当前,由于信息的更新速度较快,许多文件常常需要进行更新。例如,指定终端中安装的应用程序常常需要下载新版本的安装包来进行升级,或者,某一文件需要进行版本更新等等。因此,指定终端常常需要获取到新版本的文件,以进行更新。
发明内容
本申请提供一种文件处理方法、文件处理装置、终端设备及计算机可读存储介质,可以在指定终端对获取到的新版本的文件进行读取,以进行后续更新时,提高信息处理效率。
本申请的第一方面提供了一种文件处理方法,包括:
获取第一文件集合,所述第一文件集合中包括至少一个第一文件;
确定各个第一文件所分别对应的存储区域的大小;
若存在至少一个存储区域的大小不符合预设条件,则对不符合预设条件的存储区域进行扩充,以使得扩充后的所述存储区域的大小符合所述预设条件,其中,所述预设条件指所述存储区域的大小为预设阈值的正整数倍;
将对不符合预设条件的存储区域进行扩充之后,所得到的第一文件集合中的各个第一文件进行拼接,得到目标文件集合;
获取第二文件集合,所述第二文件集合为所述第一文件集合的历史版本文件集合;
获取所述目标文件集合的第一数字签名;
获得差分文件,所述差分文件包括将所述目标文件集合和所述第二文件集合进行差分运算所得到的第一差分结果;
获得包含所述差分文件和所述第一数字签名的目标压缩文件;
将所述目标压缩文件发送至指定终端,以指示所述指定终端根据所述目标压缩文件和所述指定终端中的第三文件集合,获得还原后的目标文件集合,其中,所述第三文件集合与所述第二文件集合相同。
本申请的第二方面提供了一种文件处理装置,包括:
第一获取模块,用于获取第一文件集合,所述第一文件集合中包括至少一个第一文件;
第一确定模块,用于确定各个第一文件所分别对应的存储区域的大小;
调整模块,用于若存在至少一个存储区域的大小不符合预设条件,则对不符合预设条件的存储区域进行扩充,以使得扩充后的所述存储区域的大小符合所述预设条件,其中, 所述预设条件指所述存储区域的大小为预设阈值的正整数倍;
第一处理模块,用于将对不符合预设条件的存储区域进行扩充之后,所得到的第一文件集合中的各个第一文件进行拼接,得到目标文件集合;
第二获取模块,用于获取第二文件集合,所述第二文件集合为所述第一文件集合的历史版本文件集合;
第三获取模块,用于获取所述目标文件集合的第一数字签名;
第二处理模块,用于获得差分文件,所述差分文件包括将所述目标文件集合和所述第二文件集合进行差分运算所得到的第一差分结果;
第三处理模块,用于获得包含所述差分文件和所述第一数字签名的目标压缩文件;
发送模块,用于将所述目标压缩文件发送至指定终端,以使得所述指定终端能够根据所述目标压缩文件和所述指定终端中的第三文件集合,获得还原后的目标文件集合,其中,所述第三文件集合与所述第二文件集合相同。
本申请的第三方面提供了一种终端设备,上述终端设备包括存储器、处理器以及存储在上述存储器中并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现如上第一方面的文件处理方法的步骤。
本申请的第四方面提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现如上第一方面的文件处理方法的步骤。
本申请的第五方面提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,上述计算机程序被一个或多个处理器执行时实现如上述第一方面的文件处理方法的步骤。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的文件处理方法的一种实现流程示意图;
图2是本申请实施例提供的文件处理方法中,所述第一文件集合与所述目标文件集合的存储结构的一种示意图;
图3是本申请实施例提供的文件处理装置的结构框图;
图4是本申请实施例提供的终端设备的示意图。
具体实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体 细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
为了说明本申请上述的技术方案,下面通过具体实施例来进行说明。
实施例1
下面对本申请实施例提供的一种文件处理方法进行描述。
如图1所示,为本申请实施例提供的文件处理方法的一种实现流程示意图。该文件处理方法可以应用于终端设备。
其中,可以应用本申请实施例的所述终端设备的类型可以有多种。例如,所述终端设备可以是服务器、手机、平板电脑、可穿戴设备、车载设备、增强现实(Augmented Reality,AR)/虚拟现实(Virtual Reality,VR)设备、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本、个人数字助理(Personal Digital Assistant,PDA)等。本申请实施例对终端设备的具体类型不作任何限制。
在一些场景中,一些终端中的文件常常会需要更新。例如移动终端中安装的应用程序常常需要下载新版本的安装包来进行升级,或者,某一文件需要进行版本更新等等。在一些情况下,当移动终端中的应用程序需要升级时,用户会通过移动终端中的浏览器、应用商店等途径,获取该应用程序的新版本的安装包。此外,对于其他的待更新的文件,也需要获取新版本的文件来进行后续的更新等操作。在此基础上,为了提升传输的便捷性,该新版本的文件往往是以压缩包的形式获取到,而本申请实施例提供的一种文件处理方法,可以在指定终端对获取到的新版本的文件进行读取,以进行后续更新时,提高信息处理效率。
请参阅图1,本申请实施例中的文件处理方法包括:
在步骤101中,获取第一文件集合,所述第一文件集合中包括至少一个第一文件。
本申请实施例中,所述第一文件集合的文件类型可以有多种,例如,所述第一文件集合可以是文件夹,也可以是一个压缩文件等等。所述第一文件集合中的各个第一文件可以是独立的,也可以是合并在一起。所述第一文件的类型也可以由多种,并且,各个第一文件的类型可以相互不同,也可以相同。
所述第一文件集合的获取方式也可以有多种。其中,所述第一文件集合可以预先存储于执行本申请实施例的终端设备中,也可以是所述终端设备通过特定的信息传输方式,从其他终端获取到。
在步骤102中,确定各个第一文件所分别对应的存储区域的大小。
在步骤103中,若存在至少一个存储区域的大小不符合预设条件,则对不符合预设条件的存储区域进行扩充,以使得扩充后的所述存储区域的大小符合所述预设条件,其中,所述预设条件指所述存储区域的大小为预设阈值的正整数倍。
本申请实施例中,所述预设阈值的大小可以根据实际应用场景来确定。在一些实施例中,所述预设阈值的大小可以根据后续在指定终端中,对还原后的目标文件集合进行解压时的缓存区域的大小来确定。
在一些情况下,对不符合预设条件的存储区域进行扩充,可以使得扩充后的所述存储区域的大小符合所述预设条件,并且,扩充后的所述存储区域的大小与扩充前的该存储区域的大小的差值小于所述预设阈值,从而使得在扩充后的所述存储区域的大小符合所述预设条件的情况下,所述扩充后的存储区域的大小尽可能的小,以减小对存储资源的浪费。其中,扩充后的所述存储区域中,新增加的部分的内容可以为空。
需要说明的是,本申请实施例中,符合所述预设条件的各个存储区域与所述预设阈值的比值为正整数,但符合所述预设条件的各个存储区域与所述预设阈值的比值并不一定相同。
例如,所述预设阈值可以是8k,第一文件1的存储区域的大小为16k,第一文件2的存储区域的大小为32k,第一文件3的存储区域的大小为34k,则所述第一文件1和第一文件2所对应的存储区域的大小都符合预设条件,而第一文件3所对应的存储区域的大小不符合预设条件。此时,可以将所述第一文件3所对应的存储区域扩充至40k。此时,第一文件1的存储区域的大小、第一文件2的存储区域的大小以及扩充后的所述第一文件3所对应的存储区域的大小均符合所述预设条件。
在步骤104中,将对不符合预设条件的存储区域进行扩充之后,所得到的第一文件集合中的各个第一文件进行拼接,得到目标文件集合。
本申请实施例中,所述目标文件集合中,包含对应的存储区域的大小符合预设条件的第一文件和扩充了对应的存储区域的第一文件。并且,所述目标文件集合中各个第一文件的位置先后顺序可以与所述第一文件集合中的各个第一文件的位置先后顺序相同。所述目标文件集合与所述第一文件集合的文件类型相同。
下面以一个具体示例来示例性地说明所述第一文件集合与所述目标文件集合的存储结构。
如图2所示。为一种实施例中,所述第一文件集合与所述目标文件集合的存储结构的一种示意图。
其中,所述第一文件集合和所述目标文件集合的文件类型为压缩文件,所述预设阈值可以是8k,第一文件1-1的存储区域的大小为16k,第一文件2-1的存储区域的大小为32k, 第一文件3-1的存储区域的大小为34k,第一文件4-1的存储区域的大小为15k。则所得到的目标文件集合中,所述第一文件1-2的存储区域的大小为16k,第一文件2-2的存储区域的大小为32k,第一文件3-2的存储区域的大小为40k,第一文件4-2的存储区域的大小为16k。其中,所述目标文件集合中的第一文件3-2与所述第一文件集合中的第一文件3-1进行扩充后得到,所述目标文件集合中的第一文件4-2与所述第一文件集合中的第一文件4-1进行扩充后得到。
在步骤105中,获取第二文件集合,所述第二文件集合为所述第一文件集合的历史版本文件集合。
本申请实施例中,可以通过诸如版本号、文件名称等等信息来确定所述第二文件集合为所述第一文件集合的历史版本文件集合。其中,所述第二文件集合的获取方式可以有多种,例如可以是执行本申请实施例的终端设备通过特定的信息传输方式从其他终端获取到,也可以是预先存储于所述终端设备中的。
在一些实施例中,所述第一文件集合和所述第二文件集合的文件类型均为压缩文件。
示例性的,所述第一文件集合可以是诸如新版本的安装包、对新版本的文件压缩后得到的压缩包等等。所述第二文件集合为相应的旧版本的安装包、对旧版本的文件压缩后得到的压缩包等等。此时,后续得到的目标压缩文件中,可以直接包含新版本的安装包与旧版本的安装包之间的差异信息,从而可以在指定终端中,直接根据目标压缩文件和第三文件集合获得还原后的新版本的安装包并可以进行验证,此时,信息处理的步骤较少,信息处理速度较高。
在步骤106中,获取所述目标文件集合的第一数字签名。
本申请实施例中,所述第一数字签名可以用于在后续的信息处理中,验证还原后的目标文件集合。其中,由于所述目标文件集合与所述第一文件集合不同,因此,即使所述第一文件集合存在对应的数字签名,所述第一文件集合的数字签名也不能用于验证所述目标文件集合。因此,示例性的,可以通过将所述目标文件集合传输给所述第一文件集合的提供者,并获取该提供者对该目标文件集合的第一数字签名;或者,也根据所述第一文件集合的提供者(如开发者)所提供的私钥,生成该目标文件集合的第一数字签名。
在步骤107中,获得差分文件,所述差分文件包括将所述目标文件集合和所述第二文件集合进行差分运算所得到的第一差分结果。
本申请实施例中,所述第一差分结果为通过对所述目标文件集合和第一文件集合进行差分运算而得到,其中,具体的差分算法可以有多种,例如,所述差分算法可以是Bsdiff、Xdelta3等差分算法中的一种或多种,所述差分算法在此不作限制。
在一些实施例中,所述差分文件中还可以包括其他差分结果。
可选的,所述获得差分文件,包括:
获取所述第一文件集合所对应的第二数字签名;
将所述目标文件集合和所述第二文件集合进行差分运算,得到第一差分结果;
将所述第一数字签名与所述第二数字签名进行差分运算,得到第二差分结果;
合并所述第一差分结果和所述第二差分结果,得到所述差分文件。
其中,所述第一文件集合所对应的第二数字签名可以是根据所述第一文件集合本身所得到的数字签名;或者,若所述第一文件集合通过解压第一压缩文件得到的,那么,所述第一文件集合所对应的第二数字签名而可以是根据所述第一压缩文件得到的数字签名。此时,将所述第一数字签名和所述第二数字签名进行差分运算,获得第二差分结果,可以减小后续进行信息传输的文件的大小,从而减小相应的流量消耗。
在步骤108中,获得包含所述差分文件和所述第一数字签名的目标压缩文件。
本申请实施例中,所述目标压缩文件中,所述差分文件和所述第一数字签名的存在形式可以有多种。示例性的,可以生成包含所述第一数字签名的数字签名文件,再将所述差分文件和所述数字签名文件进行压缩,得到所述目标压缩文件;此外,也可以是将所述第一数字签名添加在所述差分文件中,例如添加在所述差分文件的结束位置之后,并通过相应的标志标识所添加的所述第一数字签名。
在步骤109中,将所述目标压缩文件发送至指定终端,以指示所述指定终端根据所述目标压缩文件和所述指定终端中的第三文件集合,获得还原后的目标文件集合,其中,所述第三文件集合与所述第二文件集合相同。
本申请实施例中,所述指定终端的类型可以有多种,例如,所述指定终端可以是手机、平板电脑、可穿戴设备、车载设备、服务器、增强现实(Augmented Reality,AR)/虚拟现实(Virtual Reality,VR)设备、笔记本电脑等等。
本申请实施例中,一般来说,所述目标压缩文件的大小可以小于所述第一文件集合,因此,将所述目标压缩文件传输给所述指定终端,可以相应的减小流量消耗。同时,所述目标压缩文件可以与所述指定终端中的第三文件集合进行合成,从而获得还原后的目标文件集合。而由于所述目标文件集合中的各个文件的存储区域的大小均为所述预设阈值的整数倍,因此,所述指定终端在对所述还原后的目标文件集合进行解压或者其他处理时,若需要读取所述还原后的目标文件集合,则可以以所述预设阈值为单次读取的大小来进行读取,例如,可以通过大小为所述预设阈值的缓存区域来进行读取。此时,由于所述目标文件集合中的各个文件的存储区域的大小均为所述预设阈值的整数倍,因此,每次读取得到的文件块只会是来自同一个文件,而不会出现通过缓存区域的一次读取所得到的文件块中有一部分来自一个文件,而另一部分来自另一个文件的情况,从而大大提高了信息处理效 率,便于后续的分析和处理。
在一些实施例中,所述目标压缩文件中的第一数字签名用于在获得还原后的目标文件集合之后,对所述还原后的目标文件集合进行验证。
具体的,在一些实施例中,将所述目标压缩文件发送至指定终端之后,可以获取所述指定终端中的第三文件集合,并将目标压缩文件中的差分文件可以与所述第三文件集合进行合成,使得所述指定终端可以获得还原后的目标文件集合,从而可以通过所述目标压缩文件中的第一数字签名对还原后的所述目标文件集合进行验证,从而使得所述指定终端可以使用所述目标文件集合,执行相应的功能,进行解压、安装、读取等等。
在一些实施例中,所述还原后的目标文件集合用于由大小为所述预设阈值的缓存区域进行读取。
示例性的,所述预设阈值可以预先根据缓存区域的一般设置方式来确定。例如,一般来说,所述缓存区域的大小一般为8k,则所述预设阈值可以设置为8k。此时,由于所述目标文件集合中的各个文件的存储区域的大小均为所述预设阈值的整数倍,因此,每次读取得到的文件块只会是来自同一个文件,而不会出现通过缓存区域的一次读取所得到的文件块中有一部分来自一个文件,而另一部分来自另一个文件的情况,从而大大提高了信息处理效率。
可选的,在一些实施例中,所述第一文件集合通过解压第一压缩文件得到,所述第二文件集合通过解压第二压缩文件得到,所述第二压缩文件为所述第一压缩文件的历史版本文件;
所述获得包含所述差分文件和所述第一数字签名的目标压缩文件,包括:
以压缩率为1的压缩方式,获得包含所述差分文件和所述第一数字签名的目标压缩文件。
本申请实施例中,所述第一文件集合不是压缩文件,因此,所述目标文件集合也不是压缩文件。而所述差分文件是通过对解压后的文件集合(即目标文件集合和第二文件集合)进行差分运算后得到的,此时,差分文件的大小往往要小于直接将所述第一压缩文件和所述第二压缩文件进行差分运算所获得的文件的大小,因此,减小了所要传输的目标压缩文件的大小,从而可以大大减小相关用户的流量消耗,减小传输时间。其中,所述压缩率为1的压缩方式,可以为不采用压缩算法对差分文件和所述第一数字签名的信息进行处理的压缩方式。此时,所述目标压缩文件传输至所述指定终端中之后,可以快速提取到其中的差分文件的部分,与第三文件集合进行合成,而无需花费较多的时间来对所述目标压缩文件进行解压。
在一些实施例中,所述获取第一文件集合,包括:
在接收到指定终端对第一压缩文件的下载请求之后,获取第一压缩文件;
获取所述指定终端中的第三文件集合所对应的第三压缩文件的历史版本信息;
对所述第一压缩文件进行解压,获得所述第一文件集合;
所述获取第二文件集合包括:
根据所述历史版本信息,获取第二压缩文件;
对所述第二压缩文件进行解压,获得所述第二文件集合。
本申请实施例中,执行该实施例的终端设备可以是能够提供相应的下载资源的设备(如服务器或者特定移动终端等)。所述历史版本信息可以用于标识相应文件的版本的信息,例如,可以包括版本号、文件名称等等。
在接收到所述指定终端对第一压缩文件的下载请求之后,通过获取所述指定终端中的第三压缩文件的历史版本信息,可以确定进行差分运算的对象。其中,所述第三文件集合通过解压所述第三压缩文件得到。
示例性的,在一些应用场景中,可以是用户需要更新移动终端中的应用程序,从而需要获得该应用程序的新版本的安装包(即第一压缩文件),而所述移动终端中可能包含旧版本的安装包(即第三压缩文件),因此,所述移动终端可以通过应用商店向服务器请求获取新版本的安装包。而服务器可以向所述指定终端获取所述指定终端中的旧版本的安装包的历史版本信息,从而在所述服务器中,获取到与移动终端中的旧版本的安装包相同的文件(即第二压缩文件)以及所述移动终端所需的新版本的安装包,从而对所述第一压缩文件进行解压,获得所述第一文件集合,并对所述第二压缩文件进行解压,获得所述第二文件集合,再根据所述第一文件集合和所述第二文件集合,获得所述差分文件。
在一些实施例中,所述获取所述目标文件集合的第一数字签名,包括:
将所述目标文件集合发送给预设对象,并接收所述预设对象返回的第一数字签名,其中,所述预设对象为设置所述第一文件集合所对应的第二数字签名的对象。
本申请实施例中,所述预设对象可以为提供所述第一文件集合的对象,例如,可以是所述第一文件集合的开发者。在一些情况下,所述预设对象在接收到所述目标文件集合之后,可以利用生成所述第二数字签名所采用的密钥,来生成所述第一数字签名,并返回给执行本申请实施例的终端设备。
在一些实施例中,所述获取所述目标文件集合的第一数字签名,包括:
根据预设密钥,生成所述目标文件集合的第一数字签名,所述预设密钥为预先从所述预设对象接收到,并且,所述预设密钥为生成所述第一文件集合所对应的第二数字签名所 采用的密钥。
本申请实施例中,所述预设密钥可以是所述预设对象预先发送给执行本申请实施例的终端设备的。此时,执行本申请实施例的终端设备可以方便地生成所述目标文件集合的第一数字签名。
由上可见,通过本申请方案,终端设备可以获得其中的各个文件的存储区域的大小为预设阈值的正整数倍的目标文件集合,并获得所述目标文件集合与第二文件集合的差分文件,以及所述目标文件集合的第一数字签名;此时,可以获得包含所述差分文件和所述第一数字签名的目标压缩文件并发送给指定终端,其中,所述目标压缩文件中的差分文件相较于第一文件集合往往较小,因此,可以减小信息传输的流量消耗,同时,所述第一数字签名可以用于后续在指定终端获得还原后的目标文件集合之后,对该还原后的目标文件集合进行验证,以使得所述指定终端可以符合规范地使用还原后的所述目标文件集合;并且,由于所述目标文件集合中的各个文件的存储区域的大小为预设阈值的正整数倍,因此,在分块读取还原后的所述目标文件集合时,可以通过大小为所述预设阈值的缓存区域等,来来进行读取。此时,由于所述目标文件集合中的各个文件的存储区域的大小均为所述预设阈值的整数倍,因此,每次读取得到的文件块只会是来自同一个文件,而不会出现通过缓存区域的一次读取所得到的文件块中有一部分来自一个文件,而另一部分来自另一个文件的情况,从而大大提高了信息处理效率。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
实施例2
本申请实施例提供了一种文件处理装置,上述文件处理装置可集成于终端设备中,如图3所示,本申请实施例中的文件处理装置300包括:
第一获取模块301,用于获取第一文件集合,所述第一文件集合中包括至少一个第一文件;
第一确定模块302,用于确定各个第一文件所分别对应的存储区域的大小;
扩充模块303,用于若存在至少一个存储区域的大小不符合预设条件,则对不符合预设条件的存储区域进行扩充,以使得扩充后的所述存储区域的大小符合所述预设条件,其中,所述预设条件指所述存储区域的大小为预设阈值的正整数倍;
第一处理模块304,用于将对不符合预设条件的存储区域进行扩充之后,所得到的第一 文件集合中的各个第一文件进行拼接,得到目标文件集合;
第二获取模块305,用于获取第二文件集合,所述第二文件集合为所述第一文件集合的历史版本文件集合;
第三获取模块306,用于获取所述目标文件集合的第一数字签名;
第二处理模块307,用于获得差分文件,所述差分文件包括将所述目标文件集合和所述第二文件集合进行差分运算所得到的第一差分结果;
第三处理模块308,用于获得包含所述差分文件和所述第一数字签名的目标压缩文件;
发送模块309,用于将所述目标压缩文件发送至指定终端,以使得所述指定终端能够根据所述目标压缩文件和所述指定终端中的第三文件集合,获得还原后的目标文件集合,其中,所述第三文件集合与所述第二文件集合相同。
可选的,所述第二处理模块307具体包括:
第一获取单元,用于获取所述第一文件集合所对应的第二数字签名;
第一计算单元,用于将所述目标文件集合和所述第二文件集合进行差分运算,得到第一差分结果;
第二计算单元,用于将所述第一数字签名与所述第二数字签名进行差分运算,得到第二差分结果;
合并单元,用于合并所述第一差分结果和所述第二差分结果,得到所述差分文件。
可选的,所述第一文件集合通过解压第一压缩文件得到,所述第二文件集合通过解压第二压缩文件得到,所述第二压缩文件为所述第一压缩文件的历史版本文件;
所述第三处理模块308具体用于:
以压缩率为1的压缩方式,获得包含所述差分文件和所述第一数字签名的目标压缩文件。
可选的,所述第一获取模块301具体包括:
第二获取单元,用于在接收到指定终端对第一压缩文件的下载请求之后,获取第一压缩文件;
第三获取单元,用于获取所述指定终端中的第三文件集合所对应的第三压缩文件的历史版本信息;
第一解压单元,用于对所述第一压缩文件进行解压,获得所述第一文件集合;
所述第二获取模块305包括:
第四获取单元,用于根据所述历史版本信息,获取第二压缩文件;
第二解压单元,用于对所述第二压缩文件进行解压,获得所述第二文件集合。
可选的,所述第一文件集合和所述第二文件集合的文件类型均为压缩文件。
可选的,所述目标压缩文件中的第一数字签名用于在获得还原后的目标文件集合之后,对所述还原后的目标文件集合进行验证。
可选的,所述第三获取模块306具体用于:
将所述目标文件集合发送给预设对象,并接收所述预设对象返回的第一数字签名,其中,所述预设对象为设置所述第一文件集合所对应的第二数字签名的对象。
可选的,所述第三获取模块306具体用于:
根据预设密钥,生成所述目标文件集合的第一数字签名,所述预设密钥为预先从所述预设对象接收到,并且,所述预设密钥为生成所述第一文件集合所对应的第二数字签名所采用的密钥。
可选的,所述还原后的目标文件集合用于由大小为所述预设阈值的缓存区域进行读取。
由上可见,通过本申请方案,终端设备可以获得其中的各个文件的存储区域的大小为预设阈值的正整数倍的目标文件集合,并获得所述目标文件集合与第二文件集合的差分文件,以及所述目标文件集合的第一数字签名;此时,可以获得包含所述差分文件和所述第一数字签名的目标压缩文件并发送给指定终端,其中,所述目标压缩文件中的差分文件相较于第一文件集合往往较小,因此,可以减小信息传输的流量消耗,同时,所述第一数字签名可以用于后续在指定终端获得还原后的目标文件集合之后,对该还原后的目标文件集合进行验证,以使得所述指定终端可以符合规范地使用还原后的所述目标文件集合;并且,由于所述目标文件集合中的各个文件的存储区域的大小为预设阈值的正整数倍,因此,在分块读取还原后的所述目标文件集合时,可以通过大小为所述预设阈值的缓存区域等,来来进行读取。此时,由于所述目标文件集合中的各个文件的存储区域的大小均为所述预设阈值的整数倍,因此,每次读取得到的文件块只会是来自同一个文件,而不会出现通过缓存区域的一次读取所得到的文件块中有一部分来自一个文件,而另一部分来自另一个文件的情况,从而大大提高了信息处理效率。
实施例3
本申请实施例提供了一种终端设备,请参阅图4,本申请实施例中的终端设备包括:存储器401,一个或多个处理器402(图4中仅示出一个)及存储在存储器401上并可在处理器上运行的计算机程序。其中:存储器401用于存储软件程序以及模块,处理器402通过运行存储在存储器401的软件程序以及单元,从而执行各种功能应用以及数据处理,以获取上述预设事件对应的资源。具体地,处理器402通过运行存储在存储器401的上述计算机程序时实现上述各个文件处理方法实施例中的步骤。
进一步,如图4所示,上述终端设备还可包括:一个或多个输入设备403(图4中仅示 出一个)和一个或多个输出设备404(图4中仅示出一个)。存储器401、处理器402、输入设备403和输出设备404通过总线405连接。
应当理解,在本申请实施例中,所称处理器402可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
输入设备403可以包括键盘、触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备404可以包括显示器、扬声器等。
存储器401可以包括只读存储器和随机存取存储器,并向处理器402提供指令和数据。存储器401的一部分或全部还可以包括非易失性随机存取存储器。例如,存储器401还可以存储设备类型的信息。
由上可见,通过本申请方案,终端设备可以获得其中的各个文件的存储区域的大小为预设阈值的正整数倍的目标文件集合,并获得所述目标文件集合与第二文件集合的差分文件,以及所述目标文件集合的第一数字签名;此时,可以获得包含所述差分文件和所述第一数字签名的目标压缩文件并发送给指定终端,其中,所述目标压缩文件中的差分文件相较于第一文件集合往往较小,因此,可以减小信息传输的流量消耗,同时,所述第一数字签名可以用于后续在指定终端获得还原后的目标文件集合之后,对该还原后的目标文件集合进行验证,以使得所述指定终端可以符合规范地使用还原后的所述目标文件集合;并且,由于所述目标文件集合中的各个文件的存储区域的大小为预设阈值的正整数倍,因此,在分块读取还原后的所述目标文件集合时,可以通过大小为所述预设阈值的缓存区域等,来来进行读取。此时,由于所述目标文件集合中的各个文件的存储区域的大小均为所述预设阈值的整数倍,因此,每次读取得到的文件块只会是来自同一个文件,而不会出现通过缓存区域的一次读取所得到的文件块中有一部分来自一个文件,而另一部分来自另一个文件的情况,从而大大提高了信息处理效率。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成 的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者外部设备软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读存储介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机可读存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括是电载波信号和电信信号。
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个文件处理方法实施例中的步骤。
以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种文件处理方法,其特征在于,包括:
    获取第一文件集合,所述第一文件集合中包括至少一个第一文件;
    确定各个第一文件所分别对应的存储区域的大小;
    若存在至少一个存储区域的大小不符合预设条件,则对不符合预设条件的存储区域进行扩充,以使得扩充后的所述存储区域的大小符合所述预设条件,其中,所述预设条件指所述存储区域的大小为预设阈值的正整数倍;
    将对不符合预设条件的存储区域进行扩充之后,所得到的第一文件集合中的各个第一文件进行合并,得到目标文件集合;
    获取第二文件集合,所述第二文件集合为所述第一文件集合的历史版本文件集合;
    获取所述目标文件集合的第一数字签名;
    获得差分文件,所述差分文件包括将所述目标文件集合和所述第二文件集合进行差分运算所得到的第一差分结果;
    获得包含所述差分文件和所述第一数字签名的目标压缩文件;
    将所述目标压缩文件发送至指定终端,以指示所述指定终端根据所述目标压缩文件和所述指定终端中的第三文件集合,获得还原后的目标文件集合,其中,所述第三文件集合与所述第二文件集合相同。
  2. 如权利要求1所述的文件处理方法,其特征在于,所述获得差分文件,包括:
    获取所述第一文件集合所对应的第二数字签名;
    将所述目标文件集合和所述第二文件集合进行差分运算,得到第一差分结果;
    将所述第一数字签名与所述第二数字签名进行差分运算,得到第二差分结果;
    合并所述第一差分结果和所述第二差分结果,得到所述差分文件。
  3. 如权利要求1所述的文件处理方法,其特征在于,所述第一文件集合通过解压第一压缩文件得到,所述第二文件集合通过解压第二压缩文件得到,所述第二压缩文件为所述第一压缩文件的历史版本文件;
    所述获得包含所述差分文件和所述第一数字签名的目标压缩文件,包括:
    以压缩率为1的压缩方式,获得包含所述差分文件和所述第一数字签名的目标压缩文件。
  4. 如权利要求3所述的文件处理方法,其特征在于,所述获取第一文件集合,包括:
    在接收到指定终端对第一压缩文件的下载请求之后,获取第一压缩文件;
    获取所述指定终端中的第三文件集合所对应的第三压缩文件的历史版本信息;
    对所述第一压缩文件进行解压,获得所述第一文件集合;
    所述获取第二文件集合包括:
    根据所述历史版本信息,获取第二压缩文件;
    对所述第二压缩文件进行解压,获得所述第二文件集合。
  5. 如权利要求1所述的文件处理方法,其特征在于,所述第一文件集合和所述第二文件集合的文件类型均为压缩文件。
  6. 如权利要求1所述的文件处理方法,其特征在于,所述目标压缩文件中的第一数字签名用于在获得还原后的目标文件集合之后,对所述还原后的目标文件集合进行验证。
  7. 如权利要求1所述的文件处理方法,其特征在于,所述获取所述目标文件集合的第一数字签名,包括:
    将所述目标文件集合发送给预设对象,并接收所述预设对象返回的第一数字签名,其中,所述预设对象为设置所述第一文件集合所对应的第二数字签名的对象。
  8. 如权利要求1所述的文件处理方法,其特征在于,所述获取所述目标文件集合的第一数字签名,包括:
    根据预设密钥,生成所述目标文件集合的第一数字签名,所述预设密钥为预先从所述预设对象接收到,并且,所述预设密钥为生成所述第一文件集合所对应的第二数字签名所采用的密钥。
  9. 如权利要求1至8任意一项所述的文件处理方法,其特征在于,所述还原后的目标文件集合用于由大小为所述预设阈值的缓存区域进行读取。
  10. 一种文件处理装置,其特征在于,包括:
    第一获取模块,用于获取第一文件集合,所述第一文件集合中包括至少一个第一文件;
    第一确定模块,用于确定各个第一文件所分别对应的存储区域的大小;
    扩充模块,用于若存在至少一个存储区域的大小不符合预设条件,则对不符合预设条件的存储区域进行扩充,以使得扩充后的所述存储区域的大小符合所述预设条件,其中,所述预设条件指所述存储区域的大小为预设阈值的正整数倍;
    第一处理模块,用于将对不符合预设条件的存储区域进行扩充之后,所得到的第一文件集合中的各个第一文件进行拼接,得到目标文件集合;
    第二获取模块,用于获取第二文件集合,所述第二文件集合为所述第一文件集合的历史版本文件集合;
    第三获取模块,用于获取所述目标文件集合的第一数字签名;
    第二处理模块,用于获得差分文件,所述差分文件包括将所述目标文件集合和所述第二文件集合进行差分运算所得到的第一差分结果;
    第三处理模块,用于获得包含所述差分文件和所述第一数字签名的目标压缩文件;
    发送模块,用于将所述目标压缩文件发送至指定终端,以使得所述指定终端能够根据所述目标压缩文件和所述指定终端中的第三文件集合,获得还原后的目标文件集合,其中,所述第三文件集合与所述第二文件集合相同。
  11. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如下步骤:
    获取第一文件集合,所述第一文件集合中包括至少一个第一文件;
    确定各个第一文件所分别对应的存储区域的大小;
    若存在至少一个存储区域的大小不符合预设条件,则对不符合预设条件的存储区域进行扩充,以使得扩充后的所述存储区域的大小符合所述预设条件,其中,所述预设条件指所述存储区域的大小为预设阈值的正整数倍;
    将对不符合预设条件的存储区域进行扩充之后,所得到的第一文件集合中的各个第一文件进行拼接,得到目标文件集合;
    获取第二文件集合,所述第二文件集合为所述第一文件集合的历史版本文件集合;
    获取所述目标文件集合的第一数字签名;
    获得差分文件,所述差分文件包括将所述目标文件集合和所述第二文件集合进行差分运算所得到的第一差分结果;
    获得包含所述差分文件和所述第一数字签名的目标压缩文件;
    将所述目标压缩文件发送至指定终端,以指示所述指定终端根据所述目标压缩文件和所述指定终端中的第三文件集合,获得还原后的目标文件集合,其中,所述第三文件集合与所述第二文件集合相同。
  12. 如权利要求11所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,所述获得差分文件,包括:
    获取所述第一文件集合所对应的第二数字签名;
    将所述目标文件集合和所述第二文件集合进行差分运算,得到第一差分结果;
    将所述第一数字签名与所述第二数字签名进行差分运算,得到第二差分结果;
    合并所述第一差分结果和所述第二差分结果,得到所述差分文件。
  13. 如权利要求11所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,所述第一文件集合通过解压第一压缩文件得到,所述第二文件集合通过解压第二压缩 文件得到,所述第二压缩文件为所述第一压缩文件的历史版本文件;
    所述获得包含所述差分文件和所述第一数字签名的目标压缩文件,包括:
    以压缩率为1的压缩方式,获得包含所述差分文件和所述第一数字签名的目标压缩文件。
  14. 如权利要求13所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,所述获取第一文件集合,包括:
    在接收到指定终端对第一压缩文件的下载请求之后,获取第一压缩文件;
    获取所述指定终端中的第三文件集合所对应的第三压缩文件的历史版本信息;
    对所述第一压缩文件进行解压,获得所述第一文件集合;
    所述获取第二文件集合包括:
    根据所述历史版本信息,获取第二压缩文件;
    对所述第二压缩文件进行解压,获得所述第二文件集合。
  15. 如权利要求11所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,所述第一文件集合和所述第二文件集合的文件类型均为压缩文件。
  16. 如权利要求11所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,所述目标压缩文件中的第一数字签名用于在获得还原后的目标文件集合之后,对所述还原后的目标文件集合进行验证。
  17. 如权利要求11所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,所述获取所述目标文件集合的第一数字签名,包括:
    将所述目标文件集合发送给预设对象,并接收所述预设对象返回的第一数字签名,其中,所述预设对象为设置所述第一文件集合所对应的第二数字签名的对象。
  18. 如权利要求11所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,所述获取所述目标文件集合的第一数字签名,包括:
    根据预设密钥,生成所述目标文件集合的第一数字签名,所述预设密钥为预先从所述预设对象接收到,并且,所述预设密钥为生成所述第一文件集合所对应的第二数字签名所采用的密钥。
  19. 如权利要求11至18任意一项所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,所述还原后的目标文件集合用于由大小为所述预设阈值的缓存区域进行读取。
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至9任一项所述文件处理方法的步骤。
PCT/CN2019/119242 2019-11-18 2019-11-18 一种文件处理方法、文件处理装置及终端设备 WO2021097623A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/119242 WO2021097623A1 (zh) 2019-11-18 2019-11-18 一种文件处理方法、文件处理装置及终端设备
CN201980099830.5A CN114303131A (zh) 2019-11-18 2019-11-18 一种文件处理方法、文件处理装置及终端设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/119242 WO2021097623A1 (zh) 2019-11-18 2019-11-18 一种文件处理方法、文件处理装置及终端设备

Publications (1)

Publication Number Publication Date
WO2021097623A1 true WO2021097623A1 (zh) 2021-05-27

Family

ID=75981087

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/119242 WO2021097623A1 (zh) 2019-11-18 2019-11-18 一种文件处理方法、文件处理装置及终端设备

Country Status (2)

Country Link
CN (1) CN114303131A (zh)
WO (1) WO2021097623A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116894014B (zh) * 2023-09-08 2024-02-27 荣耀终端有限公司 缓存更新方法、服务器、终端设备及芯片系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138347A (zh) * 2015-07-17 2015-12-09 广东欧珀移动通信有限公司 一种差分升级包生成方法、软件升级方法及相应装置
US20160041819A1 (en) * 2014-08-06 2016-02-11 Microsoft Corporation Updating service applications
CN106354525A (zh) * 2016-08-11 2017-01-25 深圳市宜搜科技发展有限公司 应用软件安装包差分存储方法及系统
CN108399079A (zh) * 2017-02-07 2018-08-14 中兴通讯股份有限公司 差分升级方法及装置、终端
CN108804130A (zh) * 2017-05-03 2018-11-13 腾讯科技(深圳)有限公司 程序安装包生成方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713928B (zh) * 2013-12-31 2017-02-22 优视科技有限公司 增量文件生成方法、应用程序安装文件更新方法及装置
CN104391728B (zh) * 2014-12-12 2018-01-16 北京奇虎科技有限公司 软件升级差量包获取方法和相应的升级方法以及装置
CN109359091B (zh) * 2018-09-26 2021-03-26 Oppo广东移动通信有限公司 文件管理方法、装置、终端及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160041819A1 (en) * 2014-08-06 2016-02-11 Microsoft Corporation Updating service applications
CN105138347A (zh) * 2015-07-17 2015-12-09 广东欧珀移动通信有限公司 一种差分升级包生成方法、软件升级方法及相应装置
CN106354525A (zh) * 2016-08-11 2017-01-25 深圳市宜搜科技发展有限公司 应用软件安装包差分存储方法及系统
CN108399079A (zh) * 2017-02-07 2018-08-14 中兴通讯股份有限公司 差分升级方法及装置、终端
CN108804130A (zh) * 2017-05-03 2018-11-13 腾讯科技(深圳)有限公司 程序安装包生成方法及装置

Also Published As

Publication number Publication date
CN114303131A (zh) 2022-04-08

Similar Documents

Publication Publication Date Title
CN108037946B (zh) 一种应用程序热更新的方法、系统及服务器
CN112765271B (zh) 区块链交易索引的存储方法、装置、计算机设备及介质
CN108038112B (zh) 文件处理方法、移动终端及计算机可读存储介质
EP3940550A1 (en) Data compression methods and systems based on key-value store
CN111694589B (zh) 升级包生成方法、装置、服务器及计算机可读存储介质
WO2021114025A1 (zh) 增量数据确定方法、确定装置、服务器及终端设备
WO2020233045A1 (zh) 一种插件更新方法、设备、服务器及计算机可读存储介质
CN112947981A (zh) 应用程序资源更新方法、装置、终端设备及服务器
CN111522574B (zh) 差分包生成方法及相关设备
CN112579140A (zh) 一种软件升级方法及装置
CN111651424B (zh) 一种数据处理方法、装置、数据节点及存储介质
CN112860953A (zh) 图数据库的数据导入方法、装置、设备及存储介质
WO2021097623A1 (zh) 一种文件处理方法、文件处理装置及终端设备
WO2021097624A1 (zh) 一种文件处理方法、文件处理装置及终端设备
CN116450184B (zh) 一种系统升级方法、装置、电子设备及存储介质
CN113204386A (zh) 基于Nginx+Lua的数据处理方法及设备
CN110019040B (zh) 一种文件夹处理方法、移动终端及存储介质
WO2021097758A1 (zh) 一种增量包生成方法、增量包生成装置及服务器
WO2021114101A1 (zh) 文件的增量更新方法、装置、终端及计算机可读存储介质
WO2021097622A1 (zh) 一种文件处理方法、文件处理装置及终端设备
WO2021087662A1 (zh) 内存分配方法、装置、终端及计算机可读存储介质
CN114035822A (zh) 一种文件更新方法及设备
WO2021081758A1 (zh) 数据更新方法、装置、终端设备及计算机可读存储介质
US9401809B2 (en) Composite system, method, and storage medium
CN112015459A (zh) 一种镜像文件的升级方法、装置、终端及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19952968

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28.10.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19952968

Country of ref document: EP

Kind code of ref document: A1