CN114172876A - Data transmission method, device and computer storage medium - Google Patents
Data transmission method, device and computer storage medium Download PDFInfo
- Publication number
- CN114172876A CN114172876A CN202111473726.3A CN202111473726A CN114172876A CN 114172876 A CN114172876 A CN 114172876A CN 202111473726 A CN202111473726 A CN 202111473726A CN 114172876 A CN114172876 A CN 114172876A
- Authority
- CN
- China
- Prior art keywords
- plug
- installation package
- target
- target application
- basic
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 84
- 230000005540 biological transmission Effects 0.000 title claims abstract description 68
- 238000009434 installation Methods 0.000 claims abstract description 183
- 230000006870 function Effects 0.000 claims description 64
- 238000004806 packaging method and process Methods 0.000 claims description 28
- 238000004891 communication Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 15
- 238000010586 diagram Methods 0.000 description 6
- 230000003993 interaction Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000004883 computer application Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011022 operating instruction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application provides a data transmission method, a data transmission device and a computer storage medium, wherein the data transmission method comprises the following steps: acquiring and installing a basic installation package of a target application; when the target application is operated, downloading an installation package of at least one plug-in unit for installing the target application from a background; responding to the operation of triggering the target function in the target application, and judging whether an installation package of a target plug-in corresponding to the target function is downloaded and installed or not, wherein at least one plug-in comprises the target plug-in; and if the installation package of the target plug-in is not downloaded and installed, downloading the installation package for installing the target plug-in. Because the target application can be operated after the basic installation package with the target application is downloaded and installed, the basic installation package is only one part of the target application, and installation packages of other plug-ins are downloaded and installed in a background silent mode in the process of operating the target application, and the waiting time of a user is reduced.
Description
Technical Field
The embodiment of the application relates to the technical field of electronic information, in particular to a data transmission method, a data transmission device and a computer storage medium.
Background
With the development of electronic information technology, more and more applications (english: Application, APP) meet various needs of users. When the user uses the APP on the terminal equipment, the APP installation package needs to be downloaded firstly for installation, and if the APP is updated in the using process, the user also needs to download the APP update installation package through the terminal equipment for reinstallation. However, in the process of downloading and installing the APP, because the APP has increasingly powerful functions, the installation package of the APP is also increasingly large, which results in that the downloading time of the APP installation package is too long.
Disclosure of Invention
In view of the above, embodiments of the present application provide a data transmission method, an apparatus, and a computer storage medium to at least partially solve the above problem.
According to a first aspect of embodiments of the present application, there is provided a data transmission method, including: acquiring and installing a basic installation package of a target application; when the target application is operated, downloading an installation package of at least one plug-in unit for installing the target application from a background; responding to the operation of triggering the target function in the target application, and judging whether an installation package of a target plug-in corresponding to the target function is downloaded and installed or not, wherein at least one plug-in comprises the target plug-in; and if the installation package of the target plug-in is not downloaded and installed, downloading the installation package for installing the target plug-in.
According to a second aspect of the embodiments of the present application, there is provided a data transmission method, including: splitting the target application into a basic program and at least one plug-in according to the basic function and at least one plug-in function of the target application; packaging the basic program to obtain a basic installation package of the target application, and respectively packaging at least one plug-in to generate an installation package of at least one plug-in of the target application; and uploading the basic installation package to an application store platform, and transmitting the installation package of at least one plug-in to a remote server.
According to a third aspect of embodiments of the present application, there is provided a terminal device, including: the acquisition module is used for acquiring and installing a basic installation package of the target application; the downloading module is used for downloading an installation package of at least one plug-in unit for installing the target application in a background when the target application is operated; the intercepting module is used for responding to the operation of triggering the target function in the target application and judging whether the installation package of the target plug-in corresponding to the target function is downloaded and installed or not, and at least one plug-in comprises the target plug-in; and the downloading module is also used for downloading the installation package for installing the target plug-in when the installation package for the target plug-in is not downloaded and installed.
According to a fourth aspect of the embodiments of the present application, there is provided a data transmission apparatus, including: the split module is used for splitting the target application into a basic program and at least one plug-in according to the basic function and at least one plug-in function of the target application; the packaging module is used for packaging the basic program to obtain a basic installation package of the target application, and respectively packaging at least one plug-in to generate an installation package of at least one plug-in of the target application; and the transmission module is used for uploading the basic installation package to the application store platform and transmitting the installation package of at least one plug-in to the remote server.
According to a fifth aspect of embodiments of the present application, there is provided an electronic apparatus, including: the processor, the memory and the communication interface complete mutual communication through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the corresponding operation of the data transmission method of the first aspect or the second aspect.
According to a sixth aspect of embodiments of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the data transmission method of the first or second aspect.
According to a seventh aspect of embodiments of the present application, there is provided a computer program product, which when executed by a processor, implements the data transmission method of the first or second aspect.
The data transmission method, the data transmission device and the computer storage medium provided by the embodiment of the application acquire and install the basic installation package of the target application; when the target application is operated, downloading an installation package of at least one plug-in unit for installing the target application from a background; responding to the operation of triggering the target function in the target application, and judging whether an installation package of a target plug-in corresponding to the target function is downloaded and installed or not, wherein at least one plug-in comprises the target plug-in; and if the installation package of the target plug-in is not downloaded and installed, downloading the installation package for installing the target plug-in. Because the target application can be operated after the basic installation package with the target application is downloaded and installed, the basic installation package is only one part of the target application, and installation packages of other plug-ins are downloaded and installed in a background silent mode in the process of operating the target application, and the waiting time of a user is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic view of a scenario of a data transmission method according to an embodiment of the present application;
fig. 2 is a flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic view of a scenario of a data transmission method according to an embodiment of the present application;
fig. 4 is a flowchart of a data transmission method according to a second embodiment of the present application;
fig. 5 is a schematic view of a scene architecture of a data transmission method according to a third embodiment of the present application;
fig. 6 is a structural diagram of a terminal device according to a fourth embodiment of the present application;
fig. 7 is a structural diagram of a data transmission device according to a fifth embodiment of the present application;
fig. 8 is a structural diagram of a data transmission system according to a sixth embodiment of the present application;
fig. 9 is a structural diagram of an electronic device according to a seventh embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application shall fall within the scope of the protection of the embodiments in the present application.
The following further describes specific implementations of embodiments of the present application with reference to the drawings of the embodiments of the present application.
Example one
For convenience of understanding, an application scenario of the data transmission method provided in the first embodiment of the present application is described, and referring to fig. 1, fig. 1 is a scenario diagram of the data transmission method provided in the first embodiment of the present application. The scenario shown in fig. 1 includes a terminal device 101 and a data transmission apparatus 102.
The terminal device 101 may be a smart phone, a tablet computer, a notebook computer, a vehicle-mounted terminal, etc., which are only exemplary and not meant to limit the present application.
The data transmission device 102 may be a device providing a target application, and exemplarily, the data transmission device may be a terminal device used by a developer, and may also be a server of the target application.
The terminal device 101 and the data transmission device 102 can both access a network, are connected with a cloud terminal through the network, and perform data interaction. In the present application, the Network includes a Local Area Network (LAN), a Wide Area Network (WAN), and a mobile communication Network; such as the World Wide Web (WWW), Long Term Evolution (LTE) networks, 2G networks (2 th Generation Mobile Network), 3G networks (3 th Generation Mobile Network), 5G networks (5 th Generation Mobile Network), etc. The cloud may include various devices connected over a network, such as servers, relay devices, Device-to-Device (D2D) devices, and the like. Of course, this is merely an example and does not represent a limitation of the present application.
Illustratively, the data transmission apparatus 102 may split the target application into a base program and at least one plug-in according to the base function and at least one plug-in function, and respectively packaging to obtain a basic installation package and an installation package of at least one plug-in, uploading the basic installation package to an application store platform, a user can download the basic installation package of a target application in the application store platform through the terminal device 101, and the installation package of at least one plug-in is stored in the remote server, after the user downloads the installation basic installation package by using the terminal device 101, i.e. the target application can be run, during the running of the target application, the terminal device 101 downloads and installs at least one plug-in the background, because the data volume of the basic installation package is smaller than that of the complete installation package of the target application, the target application is downloaded from the user to be operated, and the waiting time of the user is reduced.
With reference to the scenario shown in fig. 1, a data transmission method provided in the first embodiment of the present application is described in detail, it should be noted that fig. 1 is only an application scenario of the data transmission method provided in the first embodiment of the present application, and does not represent that the data transmission method must be applied to the scenario shown in fig. 1, and may be specifically applied to a terminal device 101 shown in fig. 1, referring to fig. 2, where fig. 2 is a flowchart of a data transmission method provided in the first embodiment of the present application, and the method includes the following steps:
The target application may be any application, and may be a computer application or a mobile phone application, and the like, which is not limited in this application. And packaging the basic program for realizing the basic function of the target application to obtain a basic installation package, namely packaging program data of the basic program, so that the target application can be operated after the basic installation package is downloaded and installed, and the basic function of the target application is realized. The basic functions of the target application at least comprise target application starting and displaying a main interface of the target application, the basic functions of the target application also can comprise at least one core function of the target application, and the core function of the target application can be set according to requirements.
It should be noted that background downloading in this application refers to downloading without displaying a downloading interface. For example, when downloading in the background, the download state of the target application can be displayed in the notification bar; or when the background is downloaded, the display is not performed at all, and the user cannot perceive the display. It should be further noted that, in the present application, a plug-in may be a program capable of implementing an independent function of a target application, and an installation package of a plug-in is an installation package obtained by packaging the plug-in, that is, packaging program data of the plug-in.
Optionally, in an example, the basic installation package may include configuration information of the installation package of the at least one plug-in, and the configuration information may include a download address of the at least one plug-in, that is, a download address of the installation package of the at least one plug-in. Illustratively, when the target application is running, the background downloads an installation package for installing at least one plug-in of the target application, and the installation package comprises: when a target application is operated, acquiring configuration information of an installation package of at least one plug-in included in a basic installation package, wherein the configuration information includes a download address of the at least one plug-in; and downloading the installation package for installing the at least one plug-in according to the download address of the at least one plug-in according to the configuration information. Optionally, the configuration information may include a download address of the at least one plug-in and an identifier of the at least one plug-in, and may further include related information of the at least one plug-in, for example, the related information may include information such as a size and a version of an installation package of the plug-in.
Optionally, in an example, the user may set a download speed threshold for the background download, and the method further includes: and responding to the setting operation of the background downloading speed, and setting a downloading speed threshold value of the installation package for downloading the at least one plug-in the background so that the background downloading speed of the installation package for the at least one plug-in is less than or equal to the downloading speed threshold value. The user sets the download speed threshold value by himself, so that the requirements of different users can be met more flexibly, and the requirements of one user in different time periods can also be met. For example, if a user watches a video by using a terminal device, more process video data transmission is needed, the target application can be operated in a background, a smaller download speed threshold is set, and the influence of background downloading of a plug-in of the target application on video watching is avoided; for another example, if the user uses the target application by using the terminal device, a higher download speed threshold may be set, and the downloading and installation of the plug-in of the target application may be completed as soon as possible.
At least one plug-in includes a target plug-in, and the target function may be a function corresponding to any plug-in, and here, the target function is merely described as an example. If the target function is triggered by the user in the process of using the target application, whether the target plug-in corresponding to the target function is installed or not is judged, if the target plug-in is not installed, the target plug-in can be downloaded and installed preferentially, the current use of the user is not influenced, if the target plug-in is installed, the target plug-in can be operated directly, the smooth use of the target application by the user is ensured, and the normal use of the target is also ensured not to be influenced by background downloading.
And step 204, if the installation package of the target plug-in is not downloaded and installed, downloading the installation package of the target plug-in.
Optionally, the method further comprises: and if the installation package of the target plug-in is downloaded and installed, operating the target plug-in corresponding to the target function.
The data transmission method described in conjunction with the above steps 201-204 is further described with reference to a specific application scenario, which is only an exemplary illustration. As shown in fig. 3, fig. 3 is a schematic view of a scenario of a data transmission method according to an embodiment of the present application. In the scenario shown in fig. 3, where the method is applied to a terminal device, the terminal device 101 may include a plug-in downloader 1011, a plug-in installer 1012, a route interceptor 1013, and a user interaction module 1014.
After downloading the basic installation package for installing the target application, the terminal device 101 may run the target application, call the dynamic interface of the target application for initialization, and enter the main interface (home page) of the target application. In the process of running the target application, calling the plug-in downloader 1011 to download (quiesce download) the installation package of at least one plug-in of the target application in the background, and after the installation package of the plug-in is downloaded, calling the plug-in installer 1012 to install the plug-in, and the running of the plug-in downloader 1011 and the plug-in installer 1012 can be independent from and affect each other. The user may set a download speed threshold for the background download via the user interaction module 1014 such that the download speed for the background download is less than or equal to the download speed threshold. When a user triggers a target function in a target application, a route interceptor 1013 is called to intercept the target function, a dynamic interface of the target application is called to judge whether a target plug-in corresponding to the target function is downloaded and installed, if not, a downloading interface is displayed, and an installation package of the target plug-in is downloaded and installed.
According to the data transmission method provided by the embodiment of the application, a basic installation package of a target application is obtained and installed; when the target application is operated, downloading an installation package of at least one plug-in unit for installing the target application from a background; responding to the operation of triggering the target function in the target application, and judging whether an installation package of a target plug-in corresponding to the target function is downloaded and installed or not, wherein at least one plug-in comprises the target plug-in; and if the installation package of the target plug-in is not downloaded and installed, downloading the installation package for installing the target plug-in. Because the target application can be operated after the basic installation package with the target application is downloaded and installed, the basic installation package is only one part of the target application, and installation packages of other plug-ins are downloaded and installed in a background silent mode in the process of operating the target application, and the waiting time of a user is reduced.
Example two
With reference to the scenario shown in fig. 1 and the data transmission method described in the first embodiment, a second embodiment of the present application provides a data transmission method, which is applied to the data transmission apparatus shown in fig. 1, and fig. 4 is a flowchart of the data transmission method provided in the second embodiment of the present application, where the method includes the following steps:
The splitting of the target application into the base program and the at least one plug-in may be splitting of program data of the target application into program data of the base program and program data of the at least one plug-in.
Optionally, in an example, when the basic installation package is packaged, the configuration information of at least one plug-in may be packaged together, where the configuration information includes at least a download address of the at least one plug-in, and for example, packaging the basic program to obtain the basic installation package of the target application includes: and acquiring configuration information containing a download address of at least one plug-in, and packaging the basic program and the configuration information to obtain a basic installation package. And adding the configuration information of at least one plug-in into the basic installation package, wherein after the basic installation package is installed by a user, the terminal equipment can download at least one plug-in according to the download address contained in the configuration information of at least one plug-in.
And 403, uploading the basic installation package to an application store platform, and transmitting the installation package of at least one plug-in to a remote server.
It should be noted that, in the present application, uploading the basic installation package to the application store platform may be transmitting the basic installation package to a server of the application store platform. The service end of the application store platform and the remote service end can be the same or different service ends, the data transmission device can be the service end of the application store platform or the remote service end, or the data transmission device can be a separate device different from the service end of the application store platform and the remote service end.
Corresponding to the example in step 402, transmitting the installation package of the at least one plug-in to the remote server includes: and transmitting the installation package of the at least one plug-in to the remote server according to the download address of the at least one plug-in.
According to the data transmission method provided by the embodiment of the application, the target application is divided into the basic program and the at least one plug-in according to the basic function and the at least one plug-in function of the target application; packaging the basic program to obtain a basic installation package of the target application, and respectively packaging at least one plug-in to generate an installation package of at least one plug-in of the target application; and uploading the basic installation package to an application store platform, and transmitting the installation package of at least one plug-in to a remote server. Because the basic program and the at least one plug-in are respectively and independently packaged, the user can run the target application after downloading and installing the basic installation package, the basic installation package is only a part of the target application, and the installation packages of other plug-ins are downloaded and installed in a background silent mode in the process of running the target application, so that the waiting time of the user is reduced.
EXAMPLE III
Based on the data transmission methods described in the first embodiment and the second embodiment, the data transmission methods described in the first embodiment and the second embodiment are further described by taking a specific application scenario as an example in the embodiments of the present application. As shown in fig. 5, fig. 5 is a schematic view of a scene architecture of a data transmission method according to a third embodiment of the present application. FIG. 5 illustrates a plug-in section showing dynamic plug-ins and pre-compiled plug-ins, a communications section, and a framework section; the communication part comprises a database middleware and a route interceptor, the database middleware initiates a Structured Query Language (SQL) request, the route interceptor can intercept the SQL request and judge whether a plug-in corresponding to the SQL request (i.e. a request responding to a function triggered by a user) is downloaded and installed; the plug-in framework comprises an Application Programming Interface (API), a downloader, an installer and an interceptor, wherein the API is used for realizing Application initialization, plug-in availability judgment and the like, the downloader can comprise a downloader of a basic installation package and a plug-in downloader, the installer can comprise an installer of the basic installation package and a plug-in installer, and the interceptor is used for judging whether the plug-in is downloaded and installed; the plug-in framework can also realize functions of data statistics, user interaction, development tools and the like; during compiling, the plug-in framework can also realize the functions of building and packaging, uploading plug-ins, copying built-in plug-ins, generating configuration information and the like.
Example four
Based on the method described in the first embodiment, a fourth embodiment of the present application provides a terminal device, configured to execute the method described in the first embodiment, and referring to fig. 6, the terminal device 60 includes:
an obtaining module 601, configured to obtain and install a basic installation package of a target application;
a downloading module 602, configured to download, in a background, an installation package for installing at least one plug-in of a target application when the target application is running;
the intercepting module 603 is configured to, in response to an operation of triggering a target function in a target application, determine whether an installation package of a target plug-in corresponding to the target function has been downloaded and installed, where at least one plug-in includes the target plug-in;
the downloading module 602 is further configured to download the installation package for installing the target plug-in when the installation package for the target plug-in is not downloaded for installation.
Optionally, in a specific example, the downloading module 602 is configured to, when the target application is running, obtain configuration information of an installation package of at least one plug-in included in the basic installation package, where the configuration information includes a downloading address of the at least one plug-in; and downloading the installation package for installing the at least one plug-in according to the download address of the at least one plug-in according to the configuration information.
Optionally, in a specific example, the terminal device 60 further includes an interaction module 604, configured to set, in response to the setting operation of the background downloading speed, a downloading speed threshold for downloading the installation package of the at least one plug-in the background, so that the background downloading speed of the installation package of the at least one plug-in is less than or equal to the downloading speed threshold.
Optionally, in a specific example, the intercepting module 603 is further configured to run the target plug-in corresponding to the target function if the installation package of the target plug-in is downloaded and installed.
The terminal equipment provided by the embodiment of the application acquires and installs the basic installation package of the target application; when the target application is operated, downloading an installation package of at least one plug-in unit for installing the target application from a background; responding to the operation of triggering the target function in the target application, and judging whether an installation package of a target plug-in corresponding to the target function is downloaded and installed or not, wherein at least one plug-in comprises the target plug-in; and if the installation package of the target plug-in is not downloaded and installed, downloading the installation package for installing the target plug-in. Because the target application can be operated after the basic installation package with the target application is downloaded and installed, the basic installation package is only one part of the target application, and installation packages of other plug-ins are downloaded and installed in a background silent mode in the process of operating the target application, and the waiting time of a user is reduced.
EXAMPLE five
Based on the method described in the second embodiment, a fifth embodiment of the present application provides a data transmission apparatus for executing the method described in the second embodiment, and referring to fig. 7, the data transmission apparatus 70 includes:
the splitting module 701 is configured to split the target application into a basic program and at least one plug-in according to a basic function and at least one plug-in function of the target application;
a packaging module 702, configured to package a basic program to obtain a basic installation package of a target application, and respectively package at least one plug-in to generate an installation package of at least one plug-in of the target application;
the transmission module 703 is configured to upload the basic installation package to the application store platform, and transmit the installation package of the at least one plug-in to the remote server.
Optionally, in a specific example, the packaging module 702 is configured to obtain configuration information including a download address of at least one plug-in, and package the basic program and the configuration information to obtain a basic installation package;
the transmission module 703 is configured to transmit the installation package of the at least one plug-in to the remote server according to the download address of the at least one plug-in.
According to the data transmission device provided by the embodiment of the application, the target application is divided into the basic program and the at least one plug-in according to the basic function and the at least one plug-in function of the target application; packaging the basic program to obtain a basic installation package of the target application, and respectively packaging at least one plug-in to generate an installation package of at least one plug-in of the target application; and uploading the basic installation package to an application store platform, and transmitting the installation package of at least one plug-in to a remote server. Because the basic program and the at least one plug-in are respectively and independently packaged, the user can run the target application after downloading and installing the basic installation package, the basic installation package is only a part of the target application, and the installation packages of other plug-ins are downloaded and installed in a background silent mode in the process of running the target application, so that the waiting time of the user is reduced.
EXAMPLE six
Based on the data transmission method described in the first to third embodiments and the apparatuses described in the fourth and fifth embodiments, a sixth embodiment of the present application provides a data transmission system for performing the method described in the first to third embodiments, and as shown in fig. 8, the data transmission system 80 includes: a terminal device 801 and a data transmission apparatus 802.
The data transmission apparatus 802 splits the target application into a basic program and at least one plug-in according to the basic function and at least one plug-in function of the target application; packaging the basic program to obtain a basic installation package of the target application, and respectively packaging at least one plug-in to generate an installation package of at least one plug-in of the target application; and uploading the basic installation package to an application store platform, and transmitting the installation package of at least one plug-in to a remote server.
The terminal device 801 downloads and installs the basic installation package of the target application; when the target application is operated, downloading an installation package of at least one plug-in unit for installing the target application from a background; responding to the operation of triggering the target function in the target application, and judging whether an installation package of a target plug-in corresponding to the target function is downloaded and installed or not, wherein at least one plug-in comprises the target plug-in; and if the installation package of the target plug-in is not downloaded and installed, downloading the installation package for installing the target plug-in.
EXAMPLE seven
Based on the methods described in the first to third embodiments, a seventh embodiment of the present application provides an electronic device, configured to execute the methods described in the first to third embodiments, and referring to fig. 9, a schematic structural diagram of the electronic device according to the seventh embodiment of the present application is shown.
As shown in fig. 9, the electronic device 90 may include: a processor (processor)902, a communication Interface 904, a memory 906, and a communication bus 908.
Wherein:
the processor 902, communication interface 904, and memory 906 communicate with one another via a communication bus 908.
A communication interface 904 for communicating with other electronic devices or servers.
The processor 902 is configured to execute the program 910, and may specifically perform relevant steps in the foregoing data transmission method embodiment.
In particular, the program 910 may include program code that includes computer operating instructions.
The processor 902 may be a processor CPU, or an application Specific Integrated circuit (asic), or one or more Integrated circuits configured to implement embodiments of the present application. The intelligent device comprises one or more processors which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
A memory 906 for storing a program 910. The memory 906 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 910 may be specifically configured to be executed by the processor 902 to implement the data transmission method described in the first to third embodiments. For specific implementation of each step in the program 910, reference may be made to corresponding steps and corresponding descriptions in units in the foregoing data transmission method embodiments, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The electronic equipment provided by the embodiment of the application acquires and installs the basic installation package of the target application; when the target application is operated, downloading an installation package of at least one plug-in unit for installing the target application from a background; responding to the operation of triggering the target function in the target application, and judging whether an installation package of a target plug-in corresponding to the target function is downloaded and installed or not, wherein at least one plug-in comprises the target plug-in; and if the installation package of the target plug-in is not downloaded and installed, downloading the installation package for installing the target plug-in. Because the target application can be operated after the basic installation package with the target application is downloaded and installed, the basic installation package is only one part of the target application, and installation packages of other plug-ins are downloaded and installed in a background silent mode in the process of operating the target application, and the waiting time of a user is reduced.
Example eight
Based on the method described in the first embodiment, a fourth embodiment of the present application provides a computer storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method described in the first to third embodiments.
Example nine
Based on the method described in the first embodiment, a fifth embodiment of the present application provides a computer program product, which when executed by a processor implements the method described in the first to third embodiments.
It should be noted that, according to the implementation requirement, each component/step described in the embodiment of the present application may be divided into more components/steps, and two or more components/steps or partial operations of the components/steps may also be combined into a new component/step to achieve the purpose of the embodiment of the present application.
The above-described methods according to embodiments of the present application may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the methods described herein may be stored in such software processes on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware such as an ASIC or FPGA. It is understood that the computer, processor, microprocessor controller or programmable hardware includes memory components (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the navigation methods described herein. Further, when a general-purpose computer accesses code for implementing the navigation methods shown herein, execution of the code transforms the general-purpose computer into a special-purpose computer for performing the navigation methods shown herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method 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 embodiments of the present application.
The above embodiments are only used for illustrating the embodiments of the present application, and not for limiting the embodiments of the present application, and those skilled in the relevant art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application, so that all equivalent technical solutions also belong to the scope of the embodiments of the present application, and the scope of patent protection of the embodiments of the present application should be defined by the claims.
Claims (10)
1. A data transmission method, comprising:
acquiring and installing a basic installation package of a target application;
when the target application is operated, downloading an installation package for installing at least one plug-in of the target application from a background;
responding to an operation of triggering a target function in the target application, and judging whether an installation package of a target plug-in corresponding to the target function is downloaded and installed or not, wherein the at least one plug-in comprises the target plug-in;
and if the installation package of the target plug-in is not downloaded and installed, downloading the installation package for installing the target plug-in.
2. The method of claim 1, wherein background downloading an installation package that installs at least one plug-in for the target application while running the target application comprises:
when the target application is operated, acquiring configuration information of an installation package of the at least one plug-in included in the basic installation package, wherein the configuration information includes a download address of the at least one plug-in;
and downloading an installation package for installing the at least one plug-in according to the download address of the at least one plug-in according to the configuration information.
3. The method of claim 1, wherein the method further comprises:
and responding to the setting operation of the background downloading speed, and setting a downloading speed threshold value of the installation package of the at least one plug-in unit for background downloading so that the background downloading speed of the installation package of the at least one plug-in unit is smaller than or equal to the downloading speed threshold value.
4. The method of claim 1, wherein the method further comprises:
and if the installation package of the target plug-in is downloaded and installed, operating the target plug-in corresponding to the target function.
5. A data transmission method, comprising:
splitting a target application into a basic program and at least one plug-in according to a basic function and at least one plug-in function of the target application;
packaging the basic program to obtain a basic installation package of the target application, and respectively packaging the at least one plug-in to generate an installation package of the at least one plug-in of the target application;
and uploading the basic installation package to an application store platform, and transmitting the installation package of the at least one plug-in to a remote server.
6. The method of claim 5, wherein packaging the base program into a base installation package for the target application comprises:
acquiring configuration information containing a download address of the at least one plug-in, and packaging the basic program and the configuration information to obtain the basic installation package;
the transmitting the installation package of the at least one plug-in to a remote server comprises:
and transmitting the installation package of the at least one plug-in to the remote server according to the download address of the at least one plug-in.
7. A terminal device, comprising:
the acquisition module is used for acquiring and installing a basic installation package of the target application;
the downloading module is used for downloading an installation package for installing at least one plug-in of the target application in a background mode when the target application is operated;
the intercepting module is used for responding to the operation of triggering the target function in the target application and judging whether the installation package of the target plug-in corresponding to the target function is downloaded and installed or not, wherein the at least one plug-in comprises the target plug-in;
the downloading module is further used for downloading the installation package for installing the target plug-in when the installation package for the target plug-in is not downloaded and installed.
8. A data transmission apparatus, comprising:
the system comprises a splitting module, a judging module and a judging module, wherein the splitting module is used for splitting a target application into a basic program and at least one plug-in according to a basic function and at least one plug-in function of the target application;
the packaging module is used for packaging the basic program to obtain a basic installation package of the target application, and respectively packaging the at least one plug-in to generate an installation package of the at least one plug-in of the target application;
and the transmission module is used for uploading the basic installation package to an application store platform and transmitting the installation package of the at least one plug-in to a remote server.
9. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the data transmission method according to any one of claims 1-6.
10. A computer storage medium having stored thereon a computer program which, when executed by a processor, performs operations corresponding to the data transmission method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111473726.3A CN114172876A (en) | 2021-11-29 | 2021-11-29 | Data transmission method, device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111473726.3A CN114172876A (en) | 2021-11-29 | 2021-11-29 | Data transmission method, device and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114172876A true CN114172876A (en) | 2022-03-11 |
Family
ID=80483084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111473726.3A Pending CN114172876A (en) | 2021-11-29 | 2021-11-29 | Data transmission method, device and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114172876A (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006102816A1 (en) * | 2005-03-30 | 2006-10-05 | Lenovo (Beijing) Limited | System and method for downloading and parsing the content data |
CN101179394A (en) * | 2006-12-21 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and system to download webpage from website server |
CN102662703A (en) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and device for loading application program plugins |
WO2014067412A1 (en) * | 2012-10-29 | 2014-05-08 | Tencent Technology (Shenzhen) Company Limited | Method for downloading plug-in installation packages and download terminal thereof |
CN106775838A (en) * | 2016-11-29 | 2017-05-31 | 暴风集团股份有限公司 | Plug-in unitization downloads the method and system of application program installation kit |
CN107248946A (en) * | 2017-05-11 | 2017-10-13 | 北京潘达互娱科技有限公司 | Application installation package sending method and device |
CN108962244A (en) * | 2018-06-29 | 2018-12-07 | 百度在线网络技术(北京)有限公司 | Method and apparatus for sending information |
CN110888658A (en) * | 2019-12-02 | 2020-03-17 | 广州市百果园信息技术有限公司 | Dynamic method and device for functional module in application program and storage medium |
CN110968331A (en) * | 2019-11-29 | 2020-04-07 | 广州市百果园信息技术有限公司 | Method and device for running application program |
CN112286586A (en) * | 2019-07-12 | 2021-01-29 | 腾讯科技(深圳)有限公司 | Configuration method of plug-in and related equipment |
WO2021052167A1 (en) * | 2019-09-18 | 2021-03-25 | 华为技术有限公司 | Method for realizing pluginization of application, and electronic apparatus |
CN112764796A (en) * | 2019-11-05 | 2021-05-07 | 阿里巴巴集团控股有限公司 | Installation package generation system |
WO2021115112A1 (en) * | 2019-12-11 | 2021-06-17 | 华为技术有限公司 | Installation package downloading method, installation package distribution method, terminal device, server, and system |
CN113535194A (en) * | 2021-07-23 | 2021-10-22 | 平安国际智慧城市科技股份有限公司 | Installation package updating method and device, computer equipment and storage medium |
-
2021
- 2021-11-29 CN CN202111473726.3A patent/CN114172876A/en active Pending
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006102816A1 (en) * | 2005-03-30 | 2006-10-05 | Lenovo (Beijing) Limited | System and method for downloading and parsing the content data |
CN101179394A (en) * | 2006-12-21 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and system to download webpage from website server |
CN102662703A (en) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and device for loading application program plugins |
WO2014067412A1 (en) * | 2012-10-29 | 2014-05-08 | Tencent Technology (Shenzhen) Company Limited | Method for downloading plug-in installation packages and download terminal thereof |
CN106775838A (en) * | 2016-11-29 | 2017-05-31 | 暴风集团股份有限公司 | Plug-in unitization downloads the method and system of application program installation kit |
CN107248946A (en) * | 2017-05-11 | 2017-10-13 | 北京潘达互娱科技有限公司 | Application installation package sending method and device |
CN108962244A (en) * | 2018-06-29 | 2018-12-07 | 百度在线网络技术(北京)有限公司 | Method and apparatus for sending information |
US20200007656A1 (en) * | 2018-06-29 | 2020-01-02 | Baidu Online Network Technology (Beijing) Co., Ltd. | Method and apparatus for sending information |
CN112286586A (en) * | 2019-07-12 | 2021-01-29 | 腾讯科技(深圳)有限公司 | Configuration method of plug-in and related equipment |
WO2021052167A1 (en) * | 2019-09-18 | 2021-03-25 | 华为技术有限公司 | Method for realizing pluginization of application, and electronic apparatus |
CN112764796A (en) * | 2019-11-05 | 2021-05-07 | 阿里巴巴集团控股有限公司 | Installation package generation system |
CN110968331A (en) * | 2019-11-29 | 2020-04-07 | 广州市百果园信息技术有限公司 | Method and device for running application program |
CN110888658A (en) * | 2019-12-02 | 2020-03-17 | 广州市百果园信息技术有限公司 | Dynamic method and device for functional module in application program and storage medium |
WO2021115112A1 (en) * | 2019-12-11 | 2021-06-17 | 华为技术有限公司 | Installation package downloading method, installation package distribution method, terminal device, server, and system |
CN113535194A (en) * | 2021-07-23 | 2021-10-22 | 平安国际智慧城市科技股份有限公司 | Installation package updating method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109547570B (en) | Service registration method, device, registration center management equipment and storage medium | |
CN106325847B (en) | Method and device for acquiring application program function based on iOS platform | |
CN110659053A (en) | Program updating method, device, storage medium and electronic equipment | |
CN110968331B (en) | Method and device for running application program | |
US20130152069A1 (en) | Method, apparatus and system for initiating terminal operation | |
US20240111549A1 (en) | Method and apparatus for constructing android running environment | |
CN111752582B (en) | Software updating method and device in local area network and electronic equipment | |
CN113434249A (en) | Mirror image synchronization method and device, docker host and storage medium | |
CN113064685A (en) | H5 page loading method and device | |
CN105740027A (en) | Application program updating method and device | |
EP2897053B1 (en) | Device management method and apparatus | |
EP3091435A1 (en) | Resource management method and device for terminal system | |
CN110221877B (en) | Application program running method and device, electronic equipment and storage medium | |
CN109343970B (en) | Application program-based operation method and device, electronic equipment and computer medium | |
CN113645308B (en) | Mobile terminal TCP communication, device, equipment and storage medium | |
CN106293790B (en) | application program upgrading method and device based on Firefox operating system | |
CN113448650A (en) | Live broadcast function plug-in loading method, device, equipment and storage medium | |
CN112416698B (en) | Expansion method and device of monitoring system, storage medium and electronic equipment | |
CN107092494B (en) | Method and device for accessing APK (android Package) resource | |
WO2015003570A1 (en) | Data downloading method,device and system thereof | |
CN108712298B (en) | Network equipment upgrading method and device, network equipment and storage medium | |
CN112416384A (en) | Software upgrading method and device and computer equipment | |
CN114172876A (en) | Data transmission method, device and computer storage medium | |
CN114726905B (en) | Method, device, equipment and storage medium for accessing Tbox network into Android system | |
CN111756916A (en) | Application processing method and device, electronic equipment and computer 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 |