CN107395705B - APP downloading method and gateway equipment - Google Patents

APP downloading method and gateway equipment Download PDF

Info

Publication number
CN107395705B
CN107395705B CN201710570890.3A CN201710570890A CN107395705B CN 107395705 B CN107395705 B CN 107395705B CN 201710570890 A CN201710570890 A CN 201710570890A CN 107395705 B CN107395705 B CN 107395705B
Authority
CN
China
Prior art keywords
app
file
app file
http message
version
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
CN201710570890.3A
Other languages
Chinese (zh)
Other versions
CN107395705A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201710570890.3A priority Critical patent/CN107395705B/en
Publication of CN107395705A publication Critical patent/CN107395705A/en
Application granted granted Critical
Publication of CN107395705B publication Critical patent/CN107395705B/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/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/30Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information
    • H04L63/304Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information intercepting circuit switched data communications
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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]
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Technology Law (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an APP downloading method and gateway equipment, wherein the method is applied to an APP service system, and the APP service system comprises terminal equipment, the gateway equipment and an application store server which are in communication connection with each other. The method comprises the following steps: and the terminal equipment initiates an APP downloading request to the application store server. And the application store server issues the HTTP message and the APP file according to the APP downloading request, wherein the APP file comprises at least one APP file with different versions. And the gateway equipment processes the HTTP message and the APP file according to a preset APP cache strategy, and selects the target version APP file for caching. And the terminal equipment downloads the APP file of the target version from the gateway equipment so as to complete APP downloading. Therefore, the APP required by the user can be selectively cached, the overflow of the disk is avoided, the bandwidth consumption is reduced, and better user experience is achieved.

Description

APP downloading method and gateway equipment
Technical Field
The invention relates to the technical field of resource downloading, in particular to an APP downloading method and gateway equipment.
Background
Currently, apple APP cannot be downloaded directly via http, and must be released by the development platform via apple's APP store. The apple terminal equipment downloads the APP and firstly needs authentication and purchase protocols, and the download address of the APP can be obtained only after the authentication is passed. And after the same APP is uploaded to the APP store, the development platform can compile more than 10 APP versions according to the hardware version and the software version of the terminal device. Apple APP's use user downloads APP through the intranet and must occupy the export bandwidth of intranet in a large number, and download speed is slow, and user experience is relatively poor, also does not benefit to APP's popularization.
In the prior art, some equipment manufacturers provide a solution, and according to the downloading link address characteristics of the apple APPs, all the apple APPs downloaded to the internet through the exit gateway equipment are cached to the exit gateway equipment at the same time. However, the scheme still has some problems, the outlet gateway device cannot accurately cache the APPs required by the user, and because the APPs on the internet are very many, the disk space of the outlet gateway device can be consumed quickly, the outlet gateway device needs to be cleaned regularly, the situations that the APPs are downloaded from the internet and the bandwidth is consumed for many times still exist, and the problem cannot be solved fundamentally.
Disclosure of Invention
In order to overcome the above defects in the prior art, the present invention provides an APP downloading method and a gateway device, which can selectively cache an APP required by a user, avoid disk overflow, reduce bandwidth consumption, and have better user experience.
The first objective of the present invention is to provide an APP downloading method, which is applied to an APP service system, where the APP service system includes a terminal device, a gateway device, and an APP store server that are communicatively connected to each other, and the method includes:
the terminal equipment initiates an APP downloading request to the application store server;
the application store server issues an HTTP message and an APP file according to the APP downloading request, wherein the APP file comprises at least one APP file with different versions;
the gateway equipment processes the HTTP message and the APP file according to a preset APP cache strategy, and selects a target version APP file for caching;
and the terminal equipment downloads the target version APP file from the gateway equipment so as to finish APP downloading.
A second object of the present invention is to provide an APP downloading method, which is applied to a gateway device communicatively connected to a terminal device and an APP store server, and the method includes:
when the application store server receives an APP download request initiated by the terminal equipment and issues an HTTP message and an APP file according to the APP download request, the gateway equipment processes the HTTP message and the APP file according to a preset APP cache strategy and selects an APP file of a target version for caching, wherein the APP file comprises at least one APP file of different versions;
and the gateway equipment sends the cached target version APP file to the terminal equipment so that the terminal equipment completes APP downloading.
A third object of the present invention is to provide a gateway device, which is in communication connection with a terminal device and an application store server, respectively, the gateway device including:
the processing and caching module is used for processing the HTTP message and the APP file according to a preset APP caching strategy and selecting a target version of the APP file for caching when the APP downloading request initiated by the terminal equipment is received by the application store server and the HTTP message and the APP file are issued according to the APP downloading request, wherein the APP file comprises at least one APP file with different versions;
and the sending module is used for sending the cached target version APP file to the terminal equipment so that the terminal equipment can install the APP according to the target version APP file.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides an APP downloading method and gateway equipment, wherein the method is applied to an APP service system, the APP service system comprises terminal equipment, gateway equipment and an application store server which are in communication connection with each other, and the method comprises the following steps: and the terminal equipment initiates an APP downloading request to the application store server. And the application store server issues an HTTP message and an APP file according to the APP downloading request, wherein the APP file comprises at least one APP file with different versions. And the gateway equipment processes the HTTP message and the APP file according to a preset APP cache strategy, and selects the target version APP file for caching. And the terminal equipment downloads the target version APP file from the gateway equipment so as to finish APP downloading. Therefore, the APP required by the user can be selectively cached, the overflow of the disk is avoided, the bandwidth consumption is reduced, and better user experience is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of an APP service system according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart illustrating steps of an APP downloading method according to a first embodiment of the present invention.
Fig. 3 is a flowchart illustrating sub-steps of step S140 shown in fig. 2 according to a first embodiment of the present invention.
Fig. 4 is a flowchart illustrating sub-steps of the sub-step S142 shown in fig. 3 according to the first embodiment of the present invention.
Fig. 5 is a second flowchart illustrating steps of an APP downloading method according to the first embodiment of the present invention.
Fig. 6 is a flowchart illustrating steps of an APP downloading method according to a second embodiment of the present invention.
Fig. 7 is a second flowchart illustrating steps of an APP downloading method according to a second embodiment of the present invention.
Fig. 8 is a functional block diagram of a gateway device according to a third embodiment of the present invention.
Fig. 9 is a sub-functional block diagram of a processing cache module according to a third embodiment of the present invention.
Icon: 10-an APP service system; 100-a gateway device; 110-a processing cache module; 111-an interception submodule; 112-an analysis recognition submodule; 113-cache submodule; 120-a sending module; 200-a terminal device; 300-an application store server; 400-development platform.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Furthermore, the terms "first," "second," and the like are used merely to distinguish one description from another, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a block diagram of an APP service system 10 according to a preferred embodiment of the present invention. The APP service system 10 includes a gateway device 100, a terminal device 200, an APP store server 300, and a development platform 400.
In this embodiment, the gateway device 100 is in communication connection with the terminal device 200 and the APP store server 300, and the gateway device 100 is configured to selectively cache APPs required by a user, so that the downloading speed can be increased, and bandwidth consumption can be reduced.
In this embodiment, the gateway device 100 may be, but is not limited to, a NAS (Network Attached Storage) device. The NAS is a device having a data storage function connected to a network, and is also called a "network storage". NAS is defined as a special dedicated data storage server comprising storage devices (e.g. disk arrays, CD/DVD drives, tape drives or removable storage media) and embedded system software that can provide cross-platform file sharing functionality. The NAS itself can support multiple protocols (e.g., NFS, CIFS, FTP, HTTP, etc.), and can support a variety of operating systems. By any workstation, the NAS device can be intuitively and conveniently managed by adopting an IE or Netscape browser. Preferably, the scheme adopts ISG equipment, and ISG (Internet secure gateway) is one of the NAS devices.
In the embodiment, the terminal device 200 is in communication connection with the application store server 300, and the terminal device 200 may be, but is not limited to, a PC, a smart phone, a tablet computer, a portable computing device, and the like.
In this embodiment, the APP store server 300 is communicatively connected to the development platform 400, and the development platform 400 issues the developed APP to the APP store server 300 to be displayed to the user through the APP store server 300.
First embodiment
Referring to fig. 2, fig. 2 is a flowchart illustrating a procedure of an APP downloading method according to a first embodiment of the present invention. The method is applied to an APP service system 10, and the APP service system 10 includes a terminal device 200, a gateway device 100 and an application store server 300 which are connected in a communication manner. The APP downloading method is suitable for an apple system using an IOS. The detailed flow of the APP downloading method is described below.
In step S120, the terminal device 200 initiates an APP download request to the APP store server 300.
In this embodiment, when the terminal device 200 needs to download the APP, it needs to first send an authentication request to the APP store server 300 and purchase the APP protocol. The main interaction at this stage is the HTTPS protocol, which is an HTTP channel targeted for security, and the HTTPS protocol adds the SSL protocol based on HTTP, and establishes an information security channel to ensure the security of data transmission.
In this embodiment, after the authentication is passed, the terminal device 200 acquires the APP download address, and requests the APP download to the APP store server 300 through the APP download address.
Step S130, the APP store server 300 issues an HTTP message and an APP file according to the APP download request.
In this embodiment, the APP store server 300 receives an APP download request initiated by the terminal device 200, and issues an HTTP message and an APP file according to the APP download request. Wherein the APP files comprise at least one different version of APP file.
Step S140, the gateway device 100 processes the HTTP message and the APP file according to a preset APP cache policy, and selects a target version APP file for caching.
Referring to fig. 3, fig. 3 is a flowchart illustrating sub-steps of step S140 shown in fig. 2 according to a first embodiment of the present invention. The step S140 includes a substep S141, a substep S142, and a substep S143.
In the substep S141, the gateway device 100 intercepts the HTTP message and the APP file sent by the APP store server 300.
In this embodiment, when the APP store server 300 issues the HTTP message and the APP file, the gateway device 100 intercepts the issued HTTP message and APP file to perform identification and analysis, so that the HTTP message and APP file are not directly issued to the terminal device 200.
And in the substep S142, the gateway device 100 analyzes and identifies the intercepted HTTP message and APP file, and identifies a target version APP file to be cached.
Referring to fig. 4, fig. 4 is a flowchart illustrating a sub-step S142 shown in fig. 3 according to a first embodiment of the present invention. The substep S142 includes substep S1421, substep S1422, and substep S1423.
In substep S1421, the gateway device 100 obtains at least one to-be-identified characteristic character string from the HTTP message and/or at least one APP file of a different version.
In this embodiment, since a URL (Uniform Resource Locator) in the HTTP message corresponding to the APP file generally ends with ". signed. dpkg. ipa", which HTTP requests are to download the APP file can be determined by detecting the URL, and in the IOS, the APP file is a zip compressed file. Therefore, which version of APP file is the APP file needing to be cached can be identified according to the HTTP message and/or the APP file.
In this embodiment, the manner of obtaining at least one to-be-identified feature string from the HTTP message and/or at least one APP file of a different version includes:
1. gateway device 100 caches at least one APP file of different versions, decompresses at least one cached APP file, and acquires a corresponding to-be-identified characteristic string according to the decompressed APP file.
In this embodiment, the to-be-identified characteristic string may be a name of an APP corresponding to the APP file. The path name in the zip compressed file will contain the name of the APP, and the path is typically "/Playload/< APP name >/", for example: APP/"contained in APP of line E of the work bank. And, the name of this APP is irrelevant to the model and IOS version of the apple terminal device 200. Thus, by decompressing the zip compressed file, the APP name therein can be found.
In this embodiment, the gateway device 100 obtains the corresponding stream information during the process of decompressing different zip compressed files by decompressing zip compressed files of different versions corresponding to APPs, and generates the corresponding feature character string to be identified according to the obtained stream information.
2. And the gateway device 100 acquires the characteristic character string to be identified according to the HTTP message.
In this embodiment, since the speed of caching the whole APP file and then decompressing the whole APP file is relatively slow, the gateway device 100 may obtain the feature character string to be identified according to the HTTP message. Usually, the position of the APP name is within the first 1KB range of the stream information of the downloaded APP, and the gateway device 100 may obtain the feature string to be identified from the stream information of the downloaded APP according to the HTTP message.
In the substep S1422, the gateway device 100 compares each to-be-recognized feature character string with a preset feature character string.
In this embodiment, the gateway device 100 may compare each feature string to be recognized with a preset feature string to obtain a corresponding similarity, and if there is a similarity obtained by comparing a feature string to be recognized with the preset feature string that is greater than a preset similarity (for example, 98%), it may be determined that the feature string to be recognized is the same as the preset feature string. The preset characteristic character string can be preset according to APP parameters of user requirements, and the preset similarity can also be set according to actual needs.
In the substep S1423, if a to-be-identified characteristic character string is identical to the preset characteristic character string, it is determined that the APP file corresponding to the to-be-identified characteristic character string is the target version APP file to be cached.
In sub-step S143, the gateway device 100 performs caching processing on the identified target version APP file.
In this embodiment, the gateway device 100 only caches the identified APP files of the target version, only caches the APP needed by the user accurately, and does not cache all APP files of different versions sent by the APP store server 300. The occupancy rate of the disk is reduced, the bandwidth consumption is reduced, and better user experience is achieved.
Referring again to fig. 2, the method further includes:
step S150, the terminal device 200 downloads the target version APP file from the gateway device 100 to complete APP downloading.
In this embodiment, after the gateway device 100 finishes caching the target version APP file, the terminal device 200 may directly download the target version APP file from the gateway device 100 to finish APP downloading. The downloading is not required to be carried out through the application store server 300, the downloading speed is high, and the user experience is good.
Referring to fig. 5, fig. 5 is a second flowchart illustrating steps of an APP downloading method according to a first embodiment of the present invention. The method further comprises the following steps:
step S160, when the APP of the version corresponding to the target version APP file is requested to be downloaded again, the terminal device 200 requesting to download directly downloads the target version APP file from the gateway device 100, so as to complete APP downloading.
In this embodiment, when the terminal device 200 requests to download the target version APP file again, or another terminal device 200 having the same hardware version and software version as those of the terminal device 200 requests to download the target version APP file, the terminal device 200 requesting to download may directly download the target version APP file from the gateway device 100 to complete APP downloading.
Step S110, the development platform 400 generates at least one APP file of different version according to the version type of the terminal device 200, and issues the at least one APP file of different version to the APP store server 300.
In this embodiment, in order to meet the use requirement of the user, the development platform 400 may compile at least one APP with different versions according to the hardware version and/or the software version of the terminal device 200 for the same APP, and issue the at least one APP file with different versions to the APP store server 300 for the user to select.
Second embodiment
Referring to fig. 6, fig. 6 is a flowchart illustrating a step of an APP downloading method according to a second embodiment of the present invention. The APP download method is applied to the gateway apparatus 100 that is in communication connection with the terminal apparatus 200 and the APP store server 300. The specific process of the APP downloading method provided in the second embodiment is described in detail below.
Step S210, when the APP store server 300 receives the APP download request initiated by the terminal device 200 and issues the HTTP message and the APP file according to the APP download request, the gateway device 100 processes the HTTP message and the APP file according to a preset APP cache policy, and selects the APP file of the target version for caching.
In the present embodiment, the detailed description about step S210 can refer to the description about step S140 in fig. 2 and the descriptions about the sub-steps of step S140 in fig. 3 and 4.
Step S220, the gateway device 100 sends the cached target version APP file to the terminal device 200, so that the terminal device 200 completes APP downloading.
In the present embodiment, the detailed description about step S220 can refer to the description about step S150 in fig. 2.
Referring to fig. 7, fig. 7 is a second flowchart illustrating steps of an APP downloading method according to a second embodiment of the present invention. The method further comprises the following steps:
step S230, when the APP of the version corresponding to the target version APP file is requested to be downloaded again, the gateway device 100 sends the target version APP file to the terminal device 200 that requested to be downloaded, so that the terminal device 200 completes the APP download.
In the present embodiment, the detailed description about step S230 can refer to the description about step S160 in fig. 5.
Third embodiment
Referring to fig. 8, fig. 8 is a functional block diagram of a gateway device 100 according to a third embodiment of the present invention. The gateway device 100 is in communication connection with the terminal device 200 and the application store server 300, respectively. The gateway apparatus 100 includes: a processing buffer module 110 and a sending module 120.
And the processing cache module 110 is configured to process the HTTP message and the APP file according to a preset APP cache policy, and select a target version APP file to cache, where the APP file includes at least one APP file of a different version.
In this embodiment, the processing cache module 110 is configured to execute step S140 in fig. 2 and step S210 in fig. 6, and the detailed description about the processing cache module 110 may refer to the description of step S140 in fig. 2.
Referring to fig. 9, fig. 9 is a sub-functional block diagram of a processing cache module 110 according to a third embodiment of the present invention. The processing cache module 110 includes:
and the intercepting submodule 111 is configured to intercept the HTTP message and the APP file sent by the APP store server 300.
In this embodiment, the intercepting submodule 111 is configured to execute step S141 in fig. 3, and the detailed description about the intercepting submodule 111 may refer to the description of step S141 in fig. 3.
And the analysis and identification sub-module 112 is configured to analyze and identify the intercepted HTTP message and APP file, and identify a target version APP file that needs to be cached.
In this embodiment, the analysis and identification submodule 112 is configured to execute step S142 in fig. 3, and the detailed description about the analysis and identification submodule 112 may refer to the description of step S142 in fig. 3.
And the cache submodule 113 is configured to perform cache processing on the identified target version APP file.
In this embodiment, the cache submodule 113 is configured to execute step S143 in fig. 3, and the detailed description about the cache submodule 113 may refer to the description of step S143 in fig. 3.
A sending module 120, configured to send the cached target version APP file to the terminal device 200, so that the terminal device 200 installs an APP according to the target version APP file.
In this embodiment, the sending module 120 is configured to execute step S150 in fig. 2 and step S220 in fig. 6, and the detailed description about the sending module 120 may refer to the description of step S150 in fig. 2.
In summary, the present invention provides an APP downloading method and a gateway device, where the method is applied to an APP service system, and the APP service system includes a terminal device, a gateway device, and an APP store server that are communicatively connected to each other. The method comprises the following steps: and the terminal equipment initiates an APP downloading request to the application store server. And the application store server issues an HTTP message and an APP file according to the APP downloading request, wherein the APP file comprises at least one APP file with different versions. And the gateway equipment processes the HTTP message and the APP file according to a preset APP cache strategy, and selects the target version APP file for caching. And the terminal equipment downloads the target version APP file from the gateway equipment so as to finish APP downloading.
Therefore, the APP required by the user can be selectively cached, the overflow of the disk is avoided, the bandwidth consumption is reduced, and better user experience is achieved.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (13)

1. An APP downloading method is applied to an APP service system, wherein the APP service system comprises a terminal device, a gateway device and an application store server which are in communication connection with each other, and the method comprises the following steps:
the terminal equipment initiates an APP downloading request to the application store server;
the application store server issues an HTTP message and an APP file according to the APP downloading request, wherein the APP file comprises at least one APP file with different versions, and the at least one APP file with different versions is compiled according to hardware versions and software versions of different terminal devices;
the gateway equipment processes the HTTP message and the APP file according to a preset APP cache strategy, and selects a target version APP file matched with the hardware version and the software version of the terminal equipment for caching;
and the terminal equipment downloads the target version APP file from the gateway equipment so as to finish APP downloading.
2. The method according to claim 1, wherein the gateway device processes the HTTP message and the APP file according to a preset APP cache policy, and the step of selecting the target version APP file for caching comprises:
the gateway equipment intercepts an HTTP message and an APP file issued by the application store server;
the gateway equipment analyzes and identifies the intercepted HTTP message and the intercepted APP file, and identifies the target version APP file needing to be cached;
and the gateway equipment carries out caching processing on the identified target version APP file.
3. The method according to claim 2, wherein the step of analyzing and recognizing the intercepted HTTP message and APP file by the gateway device to recognize the target version APP file to be cached comprises:
the gateway equipment acquires at least one characteristic character string to be identified from the HTTP message and/or at least one APP file with different versions;
the gateway equipment compares each characteristic character string to be identified with a preset characteristic character string;
if the comparison result of the characteristic character string to be recognized and the preset characteristic character string is the same, the APP file corresponding to the characteristic character string to be recognized is judged to be the target version APP file needing to be cached.
4. The method according to claim 3, wherein the manner in which the gateway device obtains at least one feature string to be identified from the HTTP message and/or at least one APP file of a different version includes:
the gateway equipment caches at least one APP file with different versions, decompresses the cached at least one APP file, and acquires a corresponding characteristic character string to be identified according to the decompressed APP file; or
And the gateway equipment acquires the characteristic character string to be identified from the HTTP message.
5. The method of claim 1, further comprising:
and when the APP of the version corresponding to the target version APP file is requested to be downloaded again, the terminal equipment requesting downloading directly downloads the target version APP file from the gateway equipment so as to finish APP downloading.
6. The method of claim 1, wherein the APP service system further comprises a development platform, the method further comprising:
the development platform generates at least one APP file with different versions according to the version type of the terminal equipment, and issues the at least one APP file with different versions to a server of the application store.
7. An APP downloading method is applied to a gateway device in communication connection with a terminal device and an application store server, and is characterized by comprising the following steps:
when the APP store server receives an APP download request initiated by the terminal device and issues an HTTP message and an APP file according to the APP download request, the gateway device processes the HTTP message and the APP file according to a preset APP cache policy, and selects a target version APP file matched with a hardware version and a software version of the terminal device for caching, wherein the APP file includes at least one APP file of different versions, and the at least one APP file of different versions is compiled according to the hardware version and the software version of different terminal devices;
and the gateway equipment sends the cached target version APP file to the terminal equipment so that the terminal equipment completes APP downloading.
8. The method according to claim 7, wherein the gateway device processes the HTTP message and the APP file according to a preset APP cache policy, and the step of selecting the target version APP file for caching comprises:
the gateway equipment intercepts an HTTP message and an APP file issued by the application store server;
the gateway equipment analyzes and identifies the intercepted HTTP message and the intercepted APP file, and identifies the target version APP file needing to be cached;
and the gateway equipment carries out caching processing on the identified target version APP file.
9. The method according to claim 8, wherein the step of analyzing and recognizing the intercepted HTTP message and APP file by the gateway device to recognize the target version APP file to be cached comprises:
the gateway equipment acquires at least one characteristic character string to be identified from the HTTP message and/or at least one APP file with different versions;
the gateway equipment compares each characteristic character string to be identified with a preset characteristic character string;
if the comparison result of the characteristic character string to be recognized and the preset characteristic character string is the same, the APP file corresponding to the characteristic character string to be recognized is judged to be the target version APP file needing to be cached.
10. The method according to claim 9, wherein the manner in which the gateway device obtains at least one to-be-identified characteristic string from the HTTP message and/or at least one APP file of a different version includes:
the gateway equipment caches at least one APP file with different versions, decompresses the cached at least one APP file, and acquires a corresponding characteristic character string to be identified according to the decompressed APP file; or
And the gateway equipment acquires the characteristic character string to be identified from the HTTP message.
11. The method of claim 7, further comprising:
and when the APP of the version corresponding to the target version APP file is requested to be downloaded again, the gateway equipment sends the target version APP file to the terminal equipment requesting to be downloaded, so that the terminal equipment completes APP downloading.
12. A gateway device, wherein the gateway device is communicatively connected to a terminal device and an application store server, respectively, the gateway device comprising:
the processing and caching module is used for processing the HTTP message and the APP file according to a preset APP caching strategy and selecting a target version APP file matched with the hardware version and the software version of the terminal equipment for caching when the application store server receives an APP downloading request initiated by the terminal equipment and issues the HTTP message and the APP file according to the APP downloading request, wherein the APP file comprises at least one APP file with different versions, and the at least one APP file with different versions is compiled according to the hardware version and the software version of different terminal equipment;
and the sending module is used for sending the cached target version APP file to the terminal equipment so that the terminal equipment can install the APP according to the target version APP file.
13. The gateway device of claim 12, wherein the processing cache module comprises:
the intercepting submodule is used for intercepting the HTTP message and the APP file issued by the application store server;
the analysis and identification submodule is used for analyzing and identifying the intercepted HTTP message and the intercepted APP file and identifying a target version APP file needing to be cached;
and the cache submodule is used for caching the identified target version APP file.
CN201710570890.3A 2017-07-13 2017-07-13 APP downloading method and gateway equipment Active CN107395705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710570890.3A CN107395705B (en) 2017-07-13 2017-07-13 APP downloading method and gateway equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710570890.3A CN107395705B (en) 2017-07-13 2017-07-13 APP downloading method and gateway equipment

Publications (2)

Publication Number Publication Date
CN107395705A CN107395705A (en) 2017-11-24
CN107395705B true CN107395705B (en) 2021-03-26

Family

ID=60340481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710570890.3A Active CN107395705B (en) 2017-07-13 2017-07-13 APP downloading method and gateway equipment

Country Status (1)

Country Link
CN (1) CN107395705B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822241B (en) * 2020-12-31 2022-08-26 北京安博通科技股份有限公司 APP dynamic cache implementation method and device based on HTTPS protocol

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904935A (en) * 2012-09-25 2013-01-30 中国联合网络通信集团有限公司 Downloading method, downloading device and downloading system based on home gateway
CN105099774A (en) * 2015-07-08 2015-11-25 上海斐讯数据通信技术有限公司 Router software upgrading method and system
CN105204915A (en) * 2015-10-29 2015-12-30 小米科技有限责任公司 Application program updating method, device and system
CN105516787A (en) * 2015-12-09 2016-04-20 深圳Tcl数字技术有限公司 Storage control method and device of application cache data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904935A (en) * 2012-09-25 2013-01-30 中国联合网络通信集团有限公司 Downloading method, downloading device and downloading system based on home gateway
CN105099774A (en) * 2015-07-08 2015-11-25 上海斐讯数据通信技术有限公司 Router software upgrading method and system
CN105204915A (en) * 2015-10-29 2015-12-30 小米科技有限责任公司 Application program updating method, device and system
CN105516787A (en) * 2015-12-09 2016-04-20 深圳Tcl数字技术有限公司 Storage control method and device of application cache data

Also Published As

Publication number Publication date
CN107395705A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
EP3333704B1 (en) Method and apparatus for repairing kernel vulnerability
US9380093B2 (en) Mobile device application streaming
CN102135892B (en) Application program running method, device and system
US9535769B2 (en) Orchestrated data exchange and synchronization between data repositories
US20150024720A1 (en) Remote Testing Through Third Party Devices
US20130326502A1 (en) Installing applications remotely
US8977723B2 (en) Cloud based application fragmentation
US11200292B2 (en) Hint model updating using automated browsing clusters
CN111475180A (en) Method and system for updating client cache
US20090216880A1 (en) Methods and Systems for Dynamic Transport Selection Based on Last Mile Network Detection
US20180107686A1 (en) Search method and apparatus
US11561966B2 (en) Method and system for implementing data associations
CN104023046A (en) Mobile terminal recognition method and device
CN107395705B (en) APP downloading method and gateway equipment
EP4005155A1 (en) Predictive ai automated cloud service turn-up
CN107766224B (en) Test method and test device
WO2019237239A1 (en) Data test method and apparatus, device/terminal/server and computer readable storage medium
CN111597557A (en) Malicious application detection method, system, device, equipment and storage medium
CN111338928A (en) Chrome-based browser testing method and device
CN104717286A (en) Data processing method, terminal, server and system
CN112241357A (en) Method, device, equipment and computer readable medium for gray scale test
CN107911248B (en) Upgrading method and device
CN111371745B (en) Method and apparatus for determining SSRF vulnerability
US8150991B1 (en) Geolocation-based application streaming systems, apparatus, and methods
CN117255028A (en) Model acquisition method and device, 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