[go: up one dir, main page]

CN109391673B - Method, system and terminal equipment for managing update file - Google Patents

Method, system and terminal equipment for managing update file Download PDF

Info

Publication number
CN109391673B
CN109391673B CN201810337932.3A CN201810337932A CN109391673B CN 109391673 B CN109391673 B CN 109391673B CN 201810337932 A CN201810337932 A CN 201810337932A CN 109391673 B CN109391673 B CN 109391673B
Authority
CN
China
Prior art keywords
file
update
update file
request
download
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810337932.3A
Other languages
Chinese (zh)
Other versions
CN109391673A (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 Ideamake Technology Co Ltd
Original Assignee
Shenzhen Ideamake Technology 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 Ideamake Technology Co Ltd filed Critical Shenzhen Ideamake Technology Co Ltd
Priority to CN201810337932.3A priority Critical patent/CN109391673B/en
Publication of CN109391673A publication Critical patent/CN109391673A/en
Priority to PCT/CN2019/078171 priority patent/WO2019201040A1/en
Application granted granted Critical
Publication of CN109391673B publication Critical patent/CN109391673B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention is suitable for the technical field of communication, and provides a method, a system and a terminal device for managing an update file, wherein the method for managing the update file comprises the following steps: the method comprises the steps of receiving an updating request sent by a request end, wherein the updating request comprises information of a target end, obtaining an updating file downloading address according to the updating request, detecting whether an updating file corresponding to the updating file downloading address exists locally, and sending the updating file to the target end if the updating file exists. According to the method and the device, the update request of the request end is received, if the update file corresponding to the update request is detected to exist locally, the update file is sent to the target end, the terminal equipment does not need to download the update file after receiving the update request every time, the file downloading speed is improved, and the stability of a network is guaranteed.

Description

Method, system and terminal equipment for managing update file
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a method, a system and a terminal device for managing an update file.
Background
As communication technology develops, the number of terminals (e.g., computers) increases, and the variety of applications (e.g., WeChat) also increases.
In the prior art, when an application program in a terminal needs to be updated online, the terminal needs to download an update file required by the application program from a server, and when a plurality of terminals simultaneously download the same update file, the plurality of terminals need to download from the server, so that the problems of network blockage and slow downloading speed are easily caused.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a system, and a terminal device for identifying and managing an updated file, so as to solve the problems in the prior art that when a plurality of terminals simultaneously download the same updated file, the updated file needs to be downloaded from a server, network congestion is easily caused, and the downloading speed is slow.
A first aspect of an embodiment of the present invention provides a method for managing an update file, including:
and receiving an updating request sent by a request end, wherein the updating request comprises information of a target end.
And acquiring an update file downloading address according to the update request.
And detecting whether the update file corresponding to the update file download address exists locally.
And if the update file exists, sending the update file to a target end.
A second aspect of an embodiment of the present invention provides a system for managing an update file, including:
and the update request receiving module is used for receiving an update request sent by a request end, wherein the update request comprises information of a target end.
And the download address acquisition module is used for acquiring the download address of the update file according to the update request.
And the update file detection module is used for detecting whether the update file corresponding to the update file download address exists locally.
And the update file sending module is used for sending the update file to a target terminal if the update file exists.
A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method as described above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: in this embodiment, an update request sent by a request end is received, where the update request includes information of a target end, an update file download address is obtained according to the update request, whether an update file corresponding to the update file download address exists locally is detected, and if the update file exists, the update file is sent to the target end. In the embodiment, the terminal device receives the update request of the request terminal, and if the update file corresponding to the update request is detected to exist locally, the update file is sent to the target terminal, and the terminal device does not need to download the update file after receiving the update request every time, so that the file downloading speed is increased, and the network stability is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart illustrating an implementation of a method for managing an update file according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a specific implementation of step S103 in fig. 1 according to an embodiment of the present invention;
FIG. 3 is a block diagram of a system for managing updated files according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an update file detection module according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example 1:
fig. 1 shows a flow of implementing the method for managing an update file according to an embodiment of the present invention, and the process thereof is detailed as follows:
in step S101, an update request sent by a requesting end is received, where the update request includes information of a target end.
In this embodiment, the terminal device may receive an update request from a requesting end, for example, the terminal device is a router or a teacher machine.
In this embodiment, an update request sent by a request end is received, and the request end performs wireless or wired communication with a terminal device.
In this embodiment, the information of the target end is actually an identifier of the target end, and may be an Internet Protocol Address (IP) of the target end or a Media Access Control (MAC) Address of the target end.
Preferably, the operating systems of the requesting end and the target end are iOS (iPhone Operation System, apple Mobile operating System).
In one embodiment, step S101 is preceded by:
1) and receiving the identity authentication information sent by the request terminal, and performing identity authentication on the request terminal according to the authentication information to generate an authentication result.
2) And if the verification result is that the identity verification is successful, receiving an updating request sent by the request end.
3) And if the authentication result is that the authentication fails, sending authentication failure information to the request end, and if the authentication results of the continuous preset times are that the authentication fails, sending alarm information to a third-party terminal associated with the terminal equipment.
The identity authentication information comprises an account number and a password.
The authentication failure information is used for indicating the request terminal to continuously send the authentication information.
The alarm information comprises information of a request end with authentication failure and authentication failure information. The alarm information is used for indicating whether the third party terminal inquiry request terminal is in a preset download permission list or not and inquiring the identity verification information corresponding to the request terminal.
The information of the request end comprises an IP address and/or a MAC address of the request end.
In this embodiment, when the request end is a terminal device in a department with a high requirement on confidentiality, for example, a terminal device in a research institution, the request end requesting downloading of the update file needs to be authenticated, and if the authentication is successful, the request end may perform a subsequent step of downloading the update file to update the application program.
In this embodiment, if the authentication result is authentication failure, an authentication failure message is sent to the requesting end, where the authentication failure message may be a cause of authentication failure, such as a password error, when the request end receives the authentication failure information, the request end continuously sends the authentication information to the terminal equipment so as to ensure that the terminal equipment continuously carries out authentication, if the number of times of authentication failure exceeds the preset number of times, the terminal device sends alarm information to a third party terminal associated with the terminal device, and after the third party terminal device receives the alarm information, inquiring whether the request end is in a preset download permission list or not according to the information of the request end, if the request end is in the preset download permission list, and inquiring the authentication information corresponding to the request end, sending the correct authentication information to the corresponding request end, and resending the authentication information to the terminal equipment by the request end.
Taking a specific application scenario as an example, the preset number of times is 2, the request terminal a sends authentication information to the terminal device, the terminal device verifies the authentication information to generate a verification result, when the verification result is that the authentication fails, the authentication information is sent to the request terminal a, the user corresponding to the request terminal a re-inputs the authentication information, the request terminal a sends new authentication information to the terminal device, the terminal device verifies the authentication information to generate a verification result, when the verification result is that the authentication fails, the terminal device sends alarm information to a third party terminal, the third party terminal inquires whether the request terminal a is in a preset download permission list according to the alarm information, if the request terminal a is in the preset download permission list, the correct authentication information corresponding to the request terminal a is sent, the request terminal a sends the correct authentication information to the terminal device, and the terminal equipment carries out identity verification on the correct identity verification information to generate a verification result of successful identity verification, if the request terminal A is not in the preset download permission list, the request terminal A is considered as an illegal user terminal, a download prohibition instruction is generated to the terminal equipment, and the terminal equipment prohibits the request terminal A from downloading the update file according to the download prohibition instruction.
In the embodiment, before the request end sends the update request, the request end needs to be authenticated, so that the situation that the update file with high confidentiality is downloaded by an illegal terminal is avoided, and the security of downloading the update file is improved.
In step S102, an update file download address is acquired according to the update request.
In one embodiment of the invention, the update request comprises an attribute list file download request and the update file download address comprises an application installation package download address.
In one embodiment of the present invention, step S102 includes:
1) and acquiring the downloading address of the attribute list file according to the downloading request of the attribute list file.
2) And detecting whether the attribute list file corresponding to the download address of the attribute list file exists locally.
3) And if the attribute list file exists, analyzing the attribute list file to obtain a corresponding download address of the application program installation package.
4) And if the attribute list file does not exist, downloading the corresponding attribute list file according to the downloading address of the attribute list file, and analyzing the downloaded attribute list file to obtain the corresponding downloading address of the application program installation package.
In this embodiment, the update file includes an Application installation package and a resource file, and the Application installation package may be an IPA (apple Application file format) installation package.
In this embodiment, when the requesting end updates the application, the IPA installation package needs to be downloaded first, and after the IPA installation package is downloaded and installed, when the user opens the application, the user starts to request to download the resource file. The resource files may be pictures, JS (JavaScript) static resource files, CSS (Cascading Style Sheets), sequence frame resource files, DAE files, SCN files, and the like.
In this embodiment, the attribute List (PList) file downloading request may be an attribute List file downloading address, and when the requesting end selects to update an application on line, the requesting end needs to download the attribute List file through a website containing PList characters, and calls a code detection tool to analyze the attribute List file to obtain an application installation package downloading address, for example, when the requesting end wants to update an application on line, the requesting end accesses? The method comprises the steps of obtaining an application program installation package downloading address by calling a code detection tool to detect codes contained in an attribute list file, and downloading the application program installation package through the application program installation package downloading address. Wherein the application installation package download address ends with ipa, such as http:// myserver.
The attribute list file is a file for storing serialized objects, is usually used for storing user settings in iOS development, and can also be used for storing data that is frequently used but not frequently changed in a program, and is substantially an XML (Extensible Markup Language) file.
Preferably, when the number of the requesting terminals is larger than the preset number, in order to save the time for the requesting terminal to send the attribute list file download request, the update request may be the attribute list file download request information, the attribute list file download request information includes the name of the attribute list file to be downloaded, after the terminal device receives the attribute list file download request information, automatically accessing the Internet according to the name of the attribute list file to search the corresponding download address of the attribute list file, therefore, the request terminal does not need to search the attribute list file download address, the attribute list file download request information can be directly sent to the terminal equipment, the terminal equipment obtains the attribute list file download address according to the attribute list file name, the condition that each request terminal needs to search the attribute list file download address in advance is avoided, and the whole attribute list file download address obtaining efficiency is improved.
In one embodiment, the local may be a local hard disk, and in order to increase the speed of data interaction, the local is preferably a local cache.
In an embodiment of the present invention, the update request further includes a resource file download request, and the update file download address further includes a resource file download address.
In an embodiment of the present invention, step S102 further includes:
and acquiring a corresponding resource file downloading address according to the resource file downloading request.
In this embodiment, after the downloaded application installation package file is successfully installed, the resource file download request is automatically sent to the terminal device, so that the terminal device downloads the resource file to be downloaded, and the resource file download request may directly include the resource file download address.
In step S103, it is detected whether an update file corresponding to the update file download address exists locally.
In this embodiment, whether an application installation package corresponding to the application installation package download address or a resource file corresponding to the resource file download address exists locally is detected.
In step S104, if the update file exists, the update file is sent to the target.
In this embodiment, the requesting end and the target end may be the same or different, and the number of the target ends is not limited, and may be one or multiple.
In this embodiment, if an update file requested by a request end exists locally, the update file is sent to at least one target end, and the target end is a terminal device corresponding to information of the target end.
In this embodiment, the update request includes the information of the target, and the terminal device can send the update file to the target that needs to be updated according to the information of the target, and does not need to request the update file from the terminal device one by one, thereby improving the acquisition efficiency of the update file.
Taking a specific application to a scene as an example, a request end is a, target ends are B and C, and the terminal device receives an update request sent by the request end a and sends a corresponding update file to the target ends B and C according to the update request.
In one embodiment, the sending frequency of the update file is recorded, and if the sending frequency is greater than the preset frequency, the download information is sent to the associated terminal.
The sending frequency is the sending frequency of the updated file within a first preset time, for example, within 1 month, the terminal device sends the file a 30 times to the target terminal, and then the sending frequency is 30.
The associated terminal means that the update file is not received within a first preset time, and the internet is accessed through the terminal device, for example, within the first preset time, the terminal device does not send the file a to the terminal B, and the terminal device controls the terminal B to access the internet, where the terminal B is a terminal associated with the terminal device.
Wherein the download information is used for indicating the associated terminal to select whether to download the update file.
Taking an application scenario as an example, the sending frequency of the C file is 20, the preset frequency is 21, the sending frequency of the C file is greater than the preset frequency, the download information is sent to the associated terminal a and terminal b, after the terminal a and terminal b receive the download information, the user corresponding to the terminal a and terminal b selects whether to download the update file, if the terminal a selects to update, the selected update information is sent to the terminal device, the terminal device sends the update file to the terminal a, and if the terminal b selects not to update, the selected non-update information is sent to the terminal device, and the terminal device does not send the update file to the terminal b.
In the embodiment, by recording the sending frequency of the update file, judging whether the update file is a file required by a user according to whether the sending frequency is greater than the preset frequency, automatically sending download information to the terminal, and sending the update file according to the selection of the terminal, the automatic recommendation of the update file is realized, and the experience degree of the user is improved.
In an embodiment of the present invention, if there is no update file, the corresponding update file is downloaded according to the update file download address, and the downloaded update file is stored locally and sent to the target.
In this embodiment, if the update file requested by the request end does not exist locally, the corresponding update file is downloaded according to the update file download address, and the downloaded update file is stored locally and sent to the target end.
Preferably, the update file is only stored in the local cache, so that it is only necessary to look up in the local cache whether the update file exists.
In an embodiment of the present invention, a file name of a download prohibition sent by a terminal device is obtained, and the file name of the download prohibition is added to a preset download prohibition list.
In this embodiment, when a file name is added to the preset download prohibition list, the terminal device does not download the file any more, and does not send the file to the target end any more, thereby implementing remote control of the terminal device.
Taking a specific application scenario as an example, a file name is a, the file name which is sent by the terminal and is prohibited to be downloaded is obtained, if the file name which is prohibited to be downloaded contains a, an addition value of the A is preset in the list which is prohibited to be downloaded, if the file A is stored locally, the file A is prohibited to be sent to the target end, and if the file A is not stored locally, the file A is not downloaded.
In an embodiment of the present invention, the latest version of the update file is obtained, the latest version of the update file is saved in the local preset directory, and the historical version of the update file in the preset directory is deleted.
The name of the preset directory is an application program identifier (Bundle ID), the Bundle ID is a unique identifier of the application program, the application program and the Bundle ID are in a unique corresponding relation, and when the application program is successfully created, the Bundle ID cannot be modified
In this embodiment, the update files are versioned, when it is detected that the current version of the update file in the local is different from the latest version, the update file of the latest version is automatically downloaded or the update file sent by the receiving terminal device is received, the update file of the latest version is stored in the local preset directory, the update file of the latest version is used as the update file of the current version, and the update file of the historical version in the preset directory is deleted, so that the local update of the update file is completed, and by automatically deleting redundant files, the storage space is saved, and the effective utilization rate of resources is improved.
Taking a specific application scenario as an example, if the current version of a certain update file is V1.0 and the latest version is V2.0, it is determined that the current version of the update file is not the latest version, the update file of the latest version is downloaded to the preset directory, and the update file of the historical version with the version number of V1.0 in the preset target is deleted, so that the storage space is saved.
In one embodiment, the latest version of the update file sent by the third-party terminal is received, the latest version of the update file is stored in the local preset directory, and the historical version of the update file in the preset directory is deleted, so that the active update of the update file is realized, and the situation that the latest version of the update file cannot be obtained due to information lag caused by network cache is avoided.
In the embodiment, the terminal device receives the update request of the request terminal, and if the update file corresponding to the update request is detected to exist locally, the update file is sent to the target terminal, the terminal device does not need to download the update file after receiving the update request every time, so that the situation that when a plurality of terminals download the same update file at the same time, the download from a server causes network congestion is avoided, the terminal device only needs to download once, multiple times of distribution can be realized, the download speed of the file and the distribution efficiency of the file are improved, the stability of a network is ensured, the occupation of bandwidth is reduced, and the utilization rate of network resources is improved.
As shown in fig. 2, in an embodiment of the present invention, step S103 in the embodiment corresponding to fig. 1 specifically includes:
in step 201, a check value of the update file is obtained.
In the present embodiment, the check value may be an MD5(Message Digest Algorithm, fifth edition) value.
In one embodiment, the number of the update files is not limited, when a developer uploads the update files to a designated server, the developer needs to perform MD5 encryption on each update file to obtain a corresponding MD5 value, names the corresponding backup update file with an MD5 value to obtain a new update file, and then uploads the new update file to the designated server, because each MD5 value is unique, the check value of the update file is the name of the update file, and the name is unique, thereby avoiding the situation that the update file is repeatedly sent due to the same name of the update file when the update file is uploaded, ensuring the integrity of the update file, and effectively avoiding the waste of network resources caused by repeated uploading or repeated downloading of the update file due to the same name of sub-update files.
Taking a specific application scenario as an example, the original name of an update file is 11, the name of a backed up update file is also 11, the update file is subjected to MD5 encryption, the MD5 value is obtained as aa, the name of the backed up update file is replaced by the corresponding MD5 value and becomes aa, the name of the new update file is obtained as aa, and the new update file is uploaded to a specified server.
In this embodiment, the name of the update file corresponding to the download address of the update file, that is, the check value of the update file, is looked up in the preset comparison table.
The preset comparison table is a comparison table of the download address of the update file and the name of the update file, which is established in advance, and when the terminal device downloads the update file for the first time, the corresponding relation between the download address of the update file and the name of the update file is recorded and downloaded and stored in the comparison table.
In this embodiment, the preset lookup table is stored locally, and preferably, in order to reduce the occupation of the cache, the preset lookup table is stored in a local hard disk.
In step S202, it is detected whether the check value of the file existing locally is the same as the check value of the updated file.
In this embodiment, it is detected whether the check value of the file locally exists is the same as the check value of the update file, that is, whether the name of the file locally exists is the same as the name of the update file is detected, so as to determine whether the update file locally exists.
In step S203, if the check value of the existing file is the same as the check value of the updated file, it is determined that the updated file exists locally.
In step S204, if the verification value of the absent file is the same as the verification value of the updated file, it is determined that the updated file does not exist locally.
In this embodiment, if the check value of the file stored locally is the same as the check value of the update file, it is determined that the update file is stored locally, and otherwise, if the check values of the file stored locally are all different from the update file, it is determined that the update file requested by the request end does not exist locally and needs to be downloaded from the server.
In one embodiment, a file deletion instruction input by a user at an external terminal associated with the terminal device is received, and the corresponding file is deleted, so that remote management of the file is realized.
In the embodiment, whether the check value of the file is the same as the check value of the updated file is locally detected, so that whether the updated file is locally stored is effectively determined, and the condition that the file names are the same is avoided because the check value is unique, so that the condition that the file is transmitted in error is effectively avoided, and the accuracy and the transmission efficiency of file transmission are improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example 2:
fig. 3 illustrates a system 100 for managing update files according to an embodiment of the present invention, which is configured to perform the method steps in the corresponding embodiment of fig. 1, and includes:
the update request receiving module 110 is configured to receive an update request sent by a requesting end, where the update request includes information of a target end.
A download address obtaining module 120, configured to obtain a download address of the update file according to the update request.
The update file detection module 130 is configured to detect whether an update file corresponding to the update file download address exists locally.
And an update file sending module 140, configured to send the update file to the target end if the update file exists.
In an embodiment of the present invention, the system 100 for managing an update file further includes:
the update file downloading module is used for downloading the corresponding update file according to the update file downloading address if the update file does not exist;
and the update file processing module is used for storing the downloaded update file to the local and sending the update file to the target terminal.
In one embodiment of the invention, the update request comprises an attribute list file download request and the update file download address comprises an application installation package download address.
In an embodiment of the present invention, the download address obtaining module 120 includes:
and the first file download address acquisition unit is used for acquiring the attribute list file download address according to the attribute list file download request.
And the judging unit is used for detecting whether the attribute list file corresponding to the download address of the attribute list file exists locally.
And the first installation package download address acquisition unit is used for analyzing the attribute list file to obtain a corresponding application program installation package download address if the attribute list file exists.
And the second installation package download address acquisition unit downloads the corresponding attribute list file according to the attribute list file download address if the attribute list file does not exist, and analyzes the downloaded attribute list file to obtain the corresponding application program installation package download address.
In an embodiment of the present invention, the update request further includes a resource file download request, and the update file download address further includes a resource file download address.
In an embodiment of the present invention, the download address obtaining module 120 includes:
and the resource file downloading address acquisition module is used for acquiring the corresponding resource file downloading address according to the resource file downloading request.
In an embodiment of the present invention, the system 100 for managing an update file further includes:
the update file acquisition module is used for acquiring the update file of the latest version;
and the update file storage module is used for storing the update file of the latest version into a local preset directory and deleting the update file of the historical version in the preset directory.
In an embodiment of the present invention, the system 100 for managing an update file further includes:
and the download prohibition name acquisition module is used for acquiring the download prohibition file name sent by the terminal equipment.
And the download forbidding name adding module is used for adding the download forbidding file names to a preset download forbidding list.
As shown in fig. 4, in an embodiment of the present invention, the update file detecting module 130 in the embodiment corresponding to fig. 4 specifically includes:
a check value obtaining unit 131, configured to obtain a check value of the update file;
a check value detecting unit 132, configured to detect whether a check value of a file locally exists is the same as a check value of an updated file;
the first processing unit 133, configured to determine that the updated file exists locally if the check value of the existing file is the same as the check value of the updated file;
and the second processing unit 134 is configured to determine that the updated file does not exist locally if the check value of the nonexistent file is the same as the check value of the updated file.
In an embodiment, the system 100 for managing update files further comprises other functional modules/units for implementing the method steps in the embodiments of embodiment 1.
Example 3:
fig. 5 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 5, the terminal device 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The processor 50, when executing the computer program 52, implements the steps of the embodiments as described in embodiment 1, such as steps S101 to S104 shown in fig. 1. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the modules/units in the system embodiments as described in embodiment 2, such as the functions of the modules 110 to 140 shown in fig. 3.
Illustratively, the computer program 52 may be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 52 in the terminal device 5. For example, the computer program 52 may be divided into an update request receiving module, a download address obtaining module, an update file detecting module, and an update file transmitting module. The specific functions of each module are as follows:
and the update request receiving module is used for receiving an update request sent by a request end, wherein the update request comprises information of a target end.
And the download address acquisition module is used for acquiring the download address of the update file according to the update request.
And the update file detection module is used for detecting whether the update file corresponding to the update file download address exists locally.
And the update file sending module is used for sending the update file to the target terminal if the update file exists.
The terminal device 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device 5 may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a terminal device 5 and does not constitute a limitation of terminal device 5 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing the computer program and other programs and data required by the terminal device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
Example 4:
an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the embodiments described in embodiment 1, for example, step S101 to step S104 shown in fig. 1. Alternatively, the computer program, when executed by a processor, implements the functions of the respective modules/units in the respective system embodiments as described in embodiment 2, for example, the functions of the modules 110 to 140 shown in fig. 3.
The computer program may be stored in a computer readable storage medium, which when executed by a processor, may implement the steps of the various method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules or units in the system of the embodiment of the invention can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method of managing update files, comprising:
receiving an updating request sent by a request end, wherein the updating request comprises information of a target end;
acquiring an update file downloading address according to the update request;
detecting whether an update file corresponding to the update file download address exists locally;
if the update file exists, sending the update file to a target end; the number of the target ends is at least one;
recording the sending frequency of the update file, and if the sending frequency of the update file is greater than a preset frequency, sending download information to an associated terminal so that the associated terminal downloads the update file according to the download information, wherein the associated terminal is a terminal which is associated with terminal equipment and does not receive the update file within a first preset time.
2. The method of managing an update file of claim 1, further comprising:
if the update file does not exist, downloading the corresponding update file according to the update file downloading address;
and storing the downloaded update file to the local and sending the update file to the target terminal.
3. The method of managing an update file of claim 1, wherein the update request includes an attribute list file download request, and the update file download address includes an application installation package download address;
the obtaining of the update file download address according to the update request includes:
acquiring an attribute list file downloading address according to the attribute list file downloading request;
detecting whether an attribute list file corresponding to the download address of the attribute list file exists locally;
if the attribute list file exists, analyzing the attribute list file to obtain a corresponding download address of the application program installation package;
and if the attribute list file does not exist, downloading the corresponding attribute list file according to the downloading address of the attribute list file, and analyzing the downloaded attribute list file to obtain the corresponding downloading address of the application program installation package.
4. The method of managing an update file of claim 1, wherein the update request further includes a resource file download request, the update file download address further includes a resource file download address;
the obtaining of the update file download address according to the update request further includes:
and acquiring the corresponding resource file downloading address according to the resource file downloading request.
5. The method for managing the update file according to claim 1, wherein the detecting whether the update file corresponding to the update file download address exists locally comprises:
acquiring a check value of the update file;
detecting whether the check value of the file existing locally is the same as the check value of the updated file;
if the check value of the existing file is the same as the check value of the updated file, determining that the updated file exists locally;
and if the verification value of the nonexistent file is the same as the verification value of the updated file, determining that the updated file does not exist locally.
6. The method of managing an update file of claim 1, further comprising:
acquiring an update file of the latest version;
and storing the update file of the latest version into a local preset directory, and deleting the update file of the historical version in the preset directory.
7. The method of managing an update file of claim 1, further comprising:
acquiring a file name which is sent by terminal equipment and is prohibited from downloading;
and adding the file name prohibited from downloading to a preset download prohibition list.
8. A system for managing update files, comprising:
the updating request receiving module is used for receiving an updating request sent by a request end, wherein the updating request comprises information of a target end;
the download address acquisition module is used for acquiring a download address of the update file according to the update request;
the update file detection module is used for detecting whether an update file corresponding to the update file download address exists locally;
the update file sending module is used for sending the update file to a target terminal if the update file exists; the number of the target ends is at least one;
and recording the sending frequency of the update file, and if the sending frequency of the update file is greater than a preset frequency, sending download information to an associated terminal so that the associated terminal downloads the update file according to the download information, wherein the associated terminal is a terminal which is associated with terminal equipment and does not receive the update file within a first preset time.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201810337932.3A 2018-04-16 2018-04-16 Method, system and terminal equipment for managing update file Active CN109391673B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810337932.3A CN109391673B (en) 2018-04-16 2018-04-16 Method, system and terminal equipment for managing update file
PCT/CN2019/078171 WO2019201040A1 (en) 2018-04-16 2019-03-14 File update management method and system and terminal apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810337932.3A CN109391673B (en) 2018-04-16 2018-04-16 Method, system and terminal equipment for managing update file

Publications (2)

Publication Number Publication Date
CN109391673A CN109391673A (en) 2019-02-26
CN109391673B true CN109391673B (en) 2021-01-05

Family

ID=65417428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810337932.3A Active CN109391673B (en) 2018-04-16 2018-04-16 Method, system and terminal equipment for managing update file

Country Status (2)

Country Link
CN (1) CN109391673B (en)
WO (1) WO2019201040A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109391673B (en) * 2018-04-16 2021-01-05 深圳思为科技有限公司 Method, system and terminal equipment for managing update file
CN110780887B (en) * 2019-09-23 2024-06-21 连尚(新昌)网络科技有限公司 Method and equipment for providing application installation package
CN114258525B (en) * 2019-10-29 2024-07-26 深圳市欢太科技有限公司 Data updating method, device, terminal equipment and computer readable storage medium
CN113127859B (en) * 2019-12-30 2024-04-12 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for detecting file to be detected
CN113010187B (en) * 2021-02-07 2024-04-05 上海硬通网络科技有限公司 Application installation method and device and electronic equipment
CN112799955B (en) * 2021-02-08 2023-09-26 腾讯科技(深圳)有限公司 Method and device for detecting model change, storage medium and electronic equipment
CN113542391A (en) * 2021-07-12 2021-10-22 一飞(海南)科技有限公司 Method, system and medium for downloading and filtering same files of formation airplane waypoint files
CN115348254B (en) * 2022-07-21 2023-05-30 昆仑数智科技有限责任公司 File packing and downloading method and device, electronic equipment and storage medium
CN115086172B (en) * 2022-07-25 2022-11-15 广东壹公里数智科技有限公司 Data gateway plug-in updating method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860853A (en) * 2010-06-09 2010-10-13 中兴通讯股份有限公司 Software upgrading method and device
CN102438026A (en) * 2012-01-12 2012-05-02 冶金自动化研究设计院 Industrial control network security protection method and system
CN103546576A (en) * 2013-10-31 2014-01-29 中安消技术有限公司 Remote automatic updating method and system of embedded equipment
CN103841379A (en) * 2014-03-17 2014-06-04 济南鲁瑞智能技术有限公司 Intelligent identification visual monitoring system and method based on Internet of Things
CN104038498A (en) * 2014-06-13 2014-09-10 大同煤矿集团有限责任公司 File synchronization updating method and device
CN106533807A (en) * 2016-12-27 2017-03-22 福建星网视易信息系统有限公司 Method and system for remotely upgrading terminal equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7710899B1 (en) * 2005-08-16 2010-05-04 Cisco Technology, Inc. System and method for speeding border gateway protocol graceful restart
US20080162922A1 (en) * 2006-12-27 2008-07-03 Swartz Troy A Fragmenting security encapsulated ethernet frames
CN101997707B (en) * 2009-08-11 2014-04-16 Tcl集团股份有限公司 System and method for upgrading intelligent terminals in batches
CN103139279B (en) * 2011-12-05 2016-02-24 阿里巴巴集团控股有限公司 file access method and system
CN104750506B (en) * 2013-12-30 2018-04-17 海尔集团公司 A kind of intelligent appliance wifi module software automatic updating method
CN105812435B (en) * 2014-12-30 2020-07-28 腾讯科技(深圳)有限公司 Application upgrading data packet processing method and device, electronic equipment and system
CN105099758A (en) * 2015-06-12 2015-11-25 小米科技有限责任公司 Methods and devices for transmitting update data package
CN107305496A (en) * 2016-04-20 2017-10-31 深圳市信锐网科技术有限公司 Application APP method for down loading and Wireless Communication Equipment
CN109391673B (en) * 2018-04-16 2021-01-05 深圳思为科技有限公司 Method, system and terminal equipment for managing update file

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860853A (en) * 2010-06-09 2010-10-13 中兴通讯股份有限公司 Software upgrading method and device
CN102438026A (en) * 2012-01-12 2012-05-02 冶金自动化研究设计院 Industrial control network security protection method and system
CN103546576A (en) * 2013-10-31 2014-01-29 中安消技术有限公司 Remote automatic updating method and system of embedded equipment
CN103841379A (en) * 2014-03-17 2014-06-04 济南鲁瑞智能技术有限公司 Intelligent identification visual monitoring system and method based on Internet of Things
CN104038498A (en) * 2014-06-13 2014-09-10 大同煤矿集团有限责任公司 File synchronization updating method and device
CN106533807A (en) * 2016-12-27 2017-03-22 福建星网视易信息系统有限公司 Method and system for remotely upgrading terminal equipment

Also Published As

Publication number Publication date
WO2019201040A1 (en) 2019-10-24
CN109391673A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN109391673B (en) Method, system and terminal equipment for managing update file
CN108845816B (en) Application program updating method, system, computer device and storage medium
CN107729352B (en) Page resource loading method and terminal equipment
CN106462430B (en) Application upgrade package obtaining method and device
CN113259494B (en) File storage method and device, electronic equipment and storage medium
RU2613531C2 (en) File sharing method, terminal and relay server
CN111970315A (en) Method, device and system for pushing message
CN105389177A (en) Software version confirmation method, device and system
CN111400777B (en) Network storage system, user authentication method, device and equipment
CN111104675A (en) Method and device for detecting system security vulnerability
KR20160054474A (en) Method and apparatus of downloading and installing a client
CN113517985B (en) File data processing method and device, electronic equipment and computer readable medium
CN113312669B (en) Password synchronization method, device and storage medium
US10938773B2 (en) Method and apparatus for synchronizing contact information and medium
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
CN109635558B (en) Access control method, device and system
CN109683942B (en) Script management method, script management device, script management medium and electronic equipment
CN116150711A (en) Software processing method and device, electronic equipment and storage medium
CN110941805B (en) Identity authentication method and device
CN114827127A (en) File management method and system, cloud server and terminal equipment
CN109657481B (en) Data management method and device
CN111064675A (en) Access flow control method, device, network equipment and storage medium
CN111858497A (en) A storage type conversion method, device and device
CN107196986B (en) A redirection method and device
CN116033187B (en) Video processing system, method, device, electronic equipment and storage medium

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