Data transmission method, device and computer storage medium
By splitting the application into basic programs and plug-ins and downloading and installing in the background, the problem of too long download time caused by the APP installation package size is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202111473726.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2041-11-29
AI Technical Summary
With the enhancement of the application (APP) function, the size of the APP installation package increases, resulting in too long download and installation time, affecting the user experience.
Split the target application into basic programs and plug-ins, packaged and uploaded to the application store platform respectively. After the user first downloads the basic installation package, he downloads and installs the plug-ins in the background when running the application to reduce the initial waiting time.
Silent download plug-in installation through the background, reducing user waiting time and improving the smoothness of application operation and user experience.
Smart Images

Figure CN114172876B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of electronic information technology, and in particular, to a data transmission method, device, and computer storage medium. Background Art
[0002] With the development of electronic information technology, more and more applications (English: Application, APP) meet various needs of users. When users use APP on terminal devices, they need to download the APP installation package to install it first. If the APP is updated during use, the user also needs to download the updated APP installation package through the terminal device and reinstall it. However, in the process of downloading and installing the APP, because the functions of the APP are becoming more and more powerful, the APP installation package is also getting larger, resulting in a long download time for the APP installation package. Summary of the invention
[0003] In view of this, embodiments of the present application provide a data transmission method, device, and computer storage medium to at least partially solve the above-mentioned problems.
[0004] According to the first aspect of the embodiments of the present application, a data transmission method is provided, including: obtaining a basic installation package of a target application and installing it; when the target application is running, downloading and installing an installation package of at least one plug-in of the target application in the background; in response to an operation that triggers a target function in the target application, determining whether an installation package of a target plug-in corresponding to the target function has been downloaded and installed, at least one plug-in including a target plug-in; if the installation package of the target plug-in has not been downloaded and installed, downloading and installing the installation package of the target plug-in.
[0005] According to a second aspect of an embodiment of the present application, a data transmission method is provided, including: splitting a target application into a basic program and at least one plug-in according to basic functions of the target application and at least one plug-in function; packaging the basic program to obtain a basic installation package of the target application, and packaging at least one plug-in to generate an installation package of at least one plug-in of the target application; 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.
[0006] According to a third aspect of an embodiment of the present application, a terminal device is provided, including: an acquisition module, used to acquire and install a basic installation package of a target application; a download module, used to download and install an installation package of at least one plug-in of the target application in the background when the target application is running; an interception module, used to respond to an operation that triggers a target function in the target application, and determine whether the installation package of a target plug-in corresponding to the target function has been downloaded and installed, at least one plug-in including a target plug-in; the download module is also used to download and install the installation package of the target plug-in when the installation package of the target plug-in has not been downloaded and installed.
[0007] According to the fourth aspect of an embodiment of the present application, a data transmission device is provided, including: a splitting module, used to split a target application into a basic program and at least one plug-in according to the basic functions of the target application and at least one plug-in function; a packaging module, used to package the basic program to obtain a basic installation package of the target application, and to package at least one plug-in to generate an installation package of at least one plug-in of the target application; a transmission module, used to upload the basic installation package to an application store platform, and to transmit the installation package of at least one plug-in to a remote server.
[0008] According to the fifth aspect of the embodiments of the present application, there is provided an electronic device comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the data transmission method of the first aspect or the second aspect.
[0009] According to a sixth aspect of an embodiment of the present application, a storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the data transmission method of the first aspect or the second aspect is implemented.
[0010] According to a seventh aspect of an embodiment of the present application, a computer program product is provided. When the computer program product is executed by a processor, it implements the data transmission method of the first aspect or the second aspect.
[0011] The data transmission method, device and computer storage medium provided in the embodiment of the present application obtain the basic installation package of the target application and install it; when the target application is running, the installation package of at least one plug-in of the target application is downloaded and installed in the background; in response to the operation of triggering the target function in the target application, it is determined whether the installation package of the target plug-in corresponding to the target function has been downloaded and installed, and at least one plug-in includes the target plug-in; if the installation package of the target plug-in has not been downloaded and installed, the installation package of the target plug-in is downloaded and installed. Because the target application can be run after the basic installation package of the target application is downloaded and installed, the basic installation package is only a part of the target application, and the installation packages of other plug-ins are silently downloaded and installed in the background during the running of the target application, which reduces the waiting time for users. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0013] Figure 1A schematic diagram of a scenario of a data transmission method provided in Embodiment 1 of the present application;
[0014] Figure 2 A flowchart of a data transmission method provided in Embodiment 1 of the present application;
[0015] Figure 3 A schematic diagram of a scenario of a data transmission method provided in Embodiment 1 of the present application;
[0016] Figure 4 A flowchart of a data transmission method provided in Embodiment 2 of the present application;
[0017] Figure 5 A schematic diagram of a scenario architecture of a data transmission method provided in Embodiment 3 of the present application;
[0018] Figure 6 A structural diagram of a terminal device provided in Embodiment 4 of the present application;
[0019] Figure 7 A structural diagram of a data transmission device provided in Embodiment 5 of the present application;
[0020] Figure 8 A structural diagram of a data transmission system provided in Example 6 of the present application;
[0021] Fig. 9 This is a structural diagram of an electronic device provided in Example 7 of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0023] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.
[0024] Embodiment 1
[0025] The first embodiment of the present application provides a data transmission method, which is applied to a terminal device. For ease of understanding, the application scenario of the data transmission method provided in the first embodiment of the present application is described. Figure 1 As shown, Figure 1 A scenario diagram of a data transmission method provided in Example 1 of the present application. Figure 1 The scenario shown includes a terminal device 101 and a data transmission apparatus 102 .
[0026] The terminal device 101 may be a smart phone, a tablet computer, a laptop computer, a vehicle-mounted terminal or the like. Of course, this is only an exemplary description and does not mean that the present application is limited thereto.
[0027] The data transmission device 102 may be a device that provides a target application. For example, the data transmission device may be a terminal device used by developers, or may be a server of the target application.
[0028] Both the terminal device 101 and the data transmission device 102 can access the network, connect to the cloud through the network, and interact with data. In this application, the network includes a local area network (English: Local Area Network, LAN), a wide area network (English: Wide Area Network, WAN), and a mobile communication network; such as the World Wide Web (English: World Wide Web, WWW), Long Term Evolution (English: Long Term Evolution, LTE) network, 2G network (English: 2nd Generation Mobile Network), 3G network (English: 3rd Generation Mobile Network), 5G network (English: 5th Generation Mobile Network), etc. The cloud can include various devices connected through the network, such as servers, relay devices, end-to-end (English: Device-to-Device, D2D) devices, etc. Of course, this is just an exemplary description and does not mean that the present application is limited to this.
[0029] Exemplarily, the data transmission device 102 can split 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, and package them respectively to obtain a basic installation package and an installation package of at least one plug-in, and upload the basic installation package to the application store platform. The user can download the basic installation package of the target application on the application store platform through the terminal device 101, and the installation package of at least one plug-in is stored on the remote server. After the user uses the terminal device 101 to download and install the basic installation package, the target application can be run. During the process of running the target application, the terminal device 101 downloads and installs at least one plug-in in the background. Because the data volume of the basic installation package is smaller than the data volume of the complete installation package of the target application, the user's waiting time is reduced from downloading to running the target application.
[0030] Combination Figure 1 The scenario shown in the figure describes in detail the data transmission method provided in the first embodiment of the present application. It should be noted that: Figure 1This is just one application scenario of the data transmission method provided in the first embodiment of the present application, and does not mean that the data transmission method must be applied to Figure 1 The scenario shown can be applied to Figure 1 The terminal device 101 shown in FIG. Figure 2 As shown, Figure 2 A flowchart of a data transmission method provided in Embodiment 1 of the present application, the method comprising the following steps:
[0031] Step 201: Obtain the basic installation package of the target application and install it.
[0032] Among them, the target application can be any application, such as a computer application or a mobile phone application, etc., and this application does not limit this. The basic program used to realize the basic functions of the target application is packaged to obtain a basic installation package, that is, the program data of the basic program is packaged. Therefore, after downloading and installing the basic installation package, the target application can be run to realize the basic functions of the target application. The basic functions of the target application at least include starting the target application and displaying the main interface of the target application. The basic functions of the target application can also include at least one core function of the target application, and the core functions of the target application can be set according to needs.
[0033] Step 202: When the target application is running, an installation package of at least one plug-in of the target application is downloaded and installed in the background.
[0034] It should be noted that in this application, background downloading refers to downloading without displaying the download interface. For example, when downloading in the background, the download status of the target application can be displayed in the notification bar; or, when downloading in the background, it is not displayed at all and the user cannot perceive it. It should also be noted that in this application, a plug-in can be a program that can realize an independent function of the target application, and a plug-in installation package is an installation package obtained by packaging the plug-in, that is, the program data of the plug-in is packaged.
[0035] Optionally, in an example, the basic installation package may include configuration information of at least one plug-in installation package, and the configuration information may include the download address of at least one plug-in, that is, the download address of at least one plug-in installation package. Exemplarily, when the target application is running, the background downloads and installs the installation package of at least one plug-in of the target application, including: when the target application is running, obtaining the configuration information of at least one plug-in installation package included in the basic installation package, the configuration information including the download address of at least one plug-in; according to the configuration information, downloading and installing the installation package of at least one plug-in according to the download address of at least one plug-in. Optionally, the configuration information may include the download address of at least one plug-in and the identifier of at least one plug-in, and may also include relevant information of at least one plug-in, for example, the relevant information may include the size, version and other information of the plug-in installation package.
[0036] Optionally, in one example, a user can set a download speed threshold for background downloads, and the method further includes: in response to a setting operation for the background download speed, setting a download speed threshold for background downloads of at least one plug-in installation package, so that the background download speed of the at least one plug-in installation package is less than or equal to the download speed threshold. Users can set the download speed threshold themselves to more flexibly meet the needs of different users, and can also meet the needs of a user at different time periods. For example, if a user uses a terminal device to watch a video and requires a more streamlined video data transmission, the target application can be run in the background and a smaller download speed threshold can be set to avoid the background download of the target application plug-in affecting the video viewing; for another example, if the user uses a terminal device to use the target application, a higher download speed threshold can be set to complete the download and installation of the target application plug-in as soon as possible.
[0037] Step 203: In response to the operation of triggering the target function in the target application, it is determined whether the installation package of the target plug-in corresponding to the target function has been downloaded and installed.
[0038] Among them, at least one plug-in includes a target plug-in, and the target function can be a function corresponding to any plug-in. Here, the target function is used as an example for explanation. If the user triggers the target function while using the target application, it is determined whether the target plug-in corresponding to the target function has been installed. If it has not been installed, the target plug-in can be downloaded and installed first without affecting the user's current use. If it has been installed, the target plug-in can be run directly, ensuring that the user uses the target application more smoothly and that background downloads do not affect the normal use of the target.
[0039] Step 204: If the installation package of the target plug-in has not been downloaded and installed, download and install the installation package of the target plug-in.
[0040] Optionally, the method further includes: if the installation package of the target plug-in has been downloaded and installed, running the target plug-in corresponding to the target function.
[0041] In combination with the data transmission method described in steps 201-204 above, a specific application scenario is listed here to further illustrate the method, which is only an exemplary description. Figure 3 As shown, Figure 3 A schematic diagram of a data transmission method provided in Example 1 of the present application. Figure 3 In the scenario shown, the method is applied to a terminal device, and the terminal device 101 may include a plug-in downloader 1011 , a plug-in installer 1012 , a routing interceptor 1013 , and a user interaction module 1014 .
[0042] After the terminal device 101 downloads and installs the basic installation package of the target application, the target application can be run, the dynamic interface of the target application is called for initialization, and the main interface (home page) of the target application is entered. In the process of running the target application, the plug-in downloader 1011 is called to download (silently download) the installation package of at least one plug-in of the target application in the background. After the installation package of the plug-in is downloaded, the plug-in installer 1012 is called to install the plug-in. The operation of the plug-in downloader 1011 and the plug-in installer 1012 can be independent of each other and mutually affect each other. The user can set the download speed threshold of the background download through the user interaction module 1014, so that the download speed of the background download is less than or equal to the download speed threshold. When the user triggers the target function in the target application, the routing interceptor 1013 is called for interception, and the dynamic interface of the target application is called to determine whether the target plug-in corresponding to the target function has been downloaded and installed. If not, the download interface is displayed, the installation package of the target plug-in is downloaded and installed, because the data volume of the installation package of a plug-in is small, it will not take too much time and will not affect the user's use.
[0043] The data transmission method provided in the embodiment of the present application obtains and installs the basic installation package of the target application; when the target application is running, the installation package of at least one plug-in of the target application is downloaded and installed in the background; in response to the operation of triggering the target function in the target application, it is determined whether the installation package of the target plug-in corresponding to the target function has been downloaded and installed, and at least one plug-in includes the target plug-in; if the installation package of the target plug-in has not been downloaded and installed, the installation package of the target plug-in is downloaded and installed. Because the target application can be run after the basic installation package of the target application is downloaded and installed, the basic installation package is only a part of the target application, and the installation packages of other plug-ins are silently downloaded and installed in the background during the running of the target application, which reduces the waiting time for users.
[0044] Embodiment 2
[0045] Combination Figure 1 The scenario shown in the figure and the data transmission method described in the first embodiment, the second embodiment of the present application provides a data transmission method, which is applied to Figure 1 The data transmission device shown, referring to Figure 4 As shown, Figure 4 A flowchart of a data transmission method provided in Embodiment 2 of the present application, the method comprising the following steps:
[0046] Step 401: split a target application into a basic program and at least one plug-in according to a basic function of the target application and at least one plug-in function.
[0047] It should be noted that splitting the target application into a basic program and at least one plug-in may be splitting program data of the target application into program data of the basic program and program data of at least one plug-in.
[0048] Step 402: Package the basic program to obtain a basic installation package of the target application, and package at least one plug-in to generate an installation package of at least one plug-in of the target application.
[0049] Optionally, in one example, when packaging the basic installation package, the configuration information of at least one plug-in may be packaged together, and the configuration information at least includes the download address of at least one plug-in. Exemplarily, packaging the basic program to obtain the basic installation package of the target application includes: obtaining the configuration information including the download address of at least one plug-in, and packaging the basic program and the configuration information to obtain the basic installation package. The configuration information of at least one plug-in is added to the basic installation package. After the user installs the basic installation package, the terminal device can download at least one plug-in according to the download address included in the configuration information of at least one plug-in.
[0050] Step 403: Upload the basic installation package to the application store platform, and transmit the installation package of at least one plug-in to the remote server.
[0051] It should be noted that in this application, uploading the basic installation package to the application store platform may be transmitting the basic installation package to the server of the application store platform. The server of the application store platform and the remote server may be the same or different servers, and the data transmission device may be the server of the application store platform or the remote server, or the data transmission device may be an independent device different from the server of the application store platform and the remote server.
[0052] Corresponding to the example in step 402, transmitting the installation package of at least one plug-in to the remote server includes: transmitting the installation package of at least one plug-in to the remote server according to the download address of the at least one plug-in.
[0053] The data transmission method provided in the embodiment of the present application splits the target application into a basic program and at least one plug-in according to the basic functions of the target application and at least one plug-in function; packages the basic program to obtain a basic installation package of the target application, and packages at least one plug-in to generate an installation package of at least one plug-in of the target application; uploads the basic installation package to the application store platform, and transmits the installation package of at least one plug-in to the remote server. Because the basic program and at least one plug-in are packaged separately, 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 silently downloaded and installed in the background during the running of the target application, which reduces the waiting time for the user.
[0054] Embodiment 3
[0055] Based on the data transmission method described in the above-mentioned embodiments 1 and 2, the third embodiment of the present application lists a specific application scenario to further illustrate the data transmission method described in the above-mentioned embodiments 1 and 2. Figure 5 As shown, Figure 5 A schematic diagram of a scenario architecture of a data transmission method provided in Example 3 of the present application. Figure 5 The plug-in part, communication part and framework part are shown. The plug-in part shows dynamic plug-ins and precompiled plug-ins; the communication part includes database middleware and routing interceptor, and a structured query language (English: Structured Query Language, SQL) request is initiated through the database middleware. The SQL request can be intercepted through the routing interceptor to determine whether the plug-in corresponding to the SQL request (i.e., the request in response to the function triggered by the user) has been downloaded and installed; the plug-in framework includes an application programming interface (English: Application Programming Interface, API), a downloader, an installer, and an interceptor. The API is used to implement application initialization, plug-in availability judgment, etc. The downloader may include a downloader of the basic installation package and a plug-in downloader, the installer may include an installer of the basic installation package and a plug-in installer, and the interceptor is used to determine whether the plug-in has been downloaded and installed; the plug-in framework can also realize functions such as data statistics, user interaction and development tools; during compilation, the plug-in framework can also realize functions such as build packaging, plug-in upload, built-in plug-in copying and configuration information generation.
[0056] Embodiment 4
[0057] Based on the method described in the above embodiment 1, the fourth embodiment of the present application provides a terminal device for executing the method described in the above embodiment 1, referring to Figure 6 As shown, the terminal device 60 includes:
[0058] The acquisition module 601 is used to acquire the basic installation package of the target application and install it;
[0059] A download module 602 is used to download and install an installation package of at least one plug-in of the target application in the background when the target application is running;
[0060] An interception module 603 is used to determine, in response to an operation that triggers a target function in a target application, whether an installation package of a target plug-in corresponding to the target function has been downloaded and installed, wherein the at least one plug-in includes the target plug-in;
[0061] The download module 602 is further used to download and install the installation package of the target plug-in when the installation package of the target plug-in has not been downloaded and installed.
[0062] Optionally, in a specific example, the download module 602 is used to obtain configuration information of the installation package of at least one plug-in included in the basic installation package when running the target application, the configuration information including the download address of at least one plug-in; according to the configuration information, download and install the installation package of at least one plug-in according to the download address of at least one plug-in.
[0063] Optionally, in a specific example, the terminal device 60 also includes an interaction module 604, which is used to set a download speed threshold for background downloading of at least one plug-in installation package in response to a setting operation of the background download speed, so that the background download speed of the installation package of at least one plug-in is less than or equal to the download speed threshold.
[0064] Optionally, in a specific example, the interception 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 has been downloaded and installed.
[0065] The terminal device provided in the embodiment of the present application obtains and installs the basic installation package of the target application; when the target application is running, the installation package of at least one plug-in of the target application is downloaded and installed in the background; in response to the operation of triggering the target function in the target application, it is determined whether the installation package of the target plug-in corresponding to the target function has been downloaded and installed, and at least one plug-in includes the target plug-in; if the installation package of the target plug-in has not been downloaded and installed, the installation package of the target plug-in is downloaded and installed. Because the target application can be run after the basic installation package of the target application is downloaded and installed, the basic installation package is only a part of the target application, and the installation packages of other plug-ins are silently downloaded and installed in the background during the running of the target application, which reduces the waiting time of the user.
[0066] Embodiment 5
[0067] Based on the method described in the above embodiment 2, the fifth embodiment of the present application provides a data transmission device for executing the method described in the above embodiment 2, referring to Figure 7 As shown, the data transmission device 70 includes:
[0068] A splitting module 701, configured to split the target application into a basic program and at least one plug-in according to the basic function of the target application and at least one plug-in function;
[0069] A packaging module 702 is used to package the basic program to obtain a basic installation package of the target application, and to package at least one plug-in to generate an installation package of at least one plug-in of the target application;
[0070] The transmission module 703 is used to upload the basic installation package to the application store platform and transmit the installation package of at least one plug-in to the remote server.
[0071] Optionally, in a specific example, the packaging module 702 is used 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;
[0072] The transmission module 703 is used to transmit the installation package of at least one plug-in to the remote server according to the download address of at least one plug-in.
[0073] The data transmission device provided in the embodiment of the present application splits the target application into a basic program and at least one plug-in according to the basic functions of the target application and at least one plug-in function; packages the basic program to obtain a basic installation package of the target application, and packages at least one plug-in to generate an installation package of at least one plug-in of the target application; uploads the basic installation package to the application store platform, and transmits the installation package of at least one plug-in to the remote server. Because the basic program and at least one plug-in are packaged separately, 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 silently downloaded and installed in the background during the running of the target application, which reduces the waiting time for the user.
[0074] Embodiment 6
[0075] Based on the data transmission methods described in the above embodiments 1 to 3, and the devices described in the above embodiments 4 and 5, the sixth embodiment of the present application provides a data transmission system for executing the methods described in the above embodiments 1 to 3, such as Figure 8 As shown, the data transmission system 80 includes: a terminal device 801 and a data transmission apparatus 802 .
[0076] Among them, the data transmission device 802 splits the target application into a basic program and at least one plug-in according to the basic functions of the target application and at least one plug-in function; packages the basic program to obtain a basic installation package of the target application, and packages at least one plug-in to generate an installation package of at least one plug-in of the target application; uploads the basic installation package to the application store platform, and transmits the installation package of at least one plug-in to the remote server.
[0077] The terminal device 801 downloads the basic installation package of the target application and installs it; when running the target application, the background downloads and installs the installation package of at least one plug-in of the target application; in response to the operation of triggering the target function in the target application, it determines whether the installation package of the target plug-in corresponding to the target function has been downloaded and installed, and at least one plug-in includes the target plug-in; if the installation package of the target plug-in has not been downloaded and installed, the installation package of the target plug-in is downloaded and installed.
[0078] Embodiment 7
[0079] Based on the methods described in the above embodiments 1 to 3, the seventh embodiment of the present application provides an electronic device for executing the methods described in the above embodiments 1 to 3, referring to Fig. 9 , shows a schematic diagram of the structure of an electronic device according to Embodiment 7 of the present application. The specific embodiments of the present application do not limit the specific implementation of the electronic device.
[0080] like Fig. 9 As shown, the electronic device 90 may include: a processor (processor) 902 , a communication interface (Communications Interface) 904 , a memory (memory) 906 , and a communication bus 908 .
[0081] in:
[0082] The processor 902 , the communication interface 904 , and the memory 906 communicate with each other via a communication bus 908 .
[0083] The communication interface 904 is used to communicate with other electronic devices or servers.
[0084] The processor 902 is used to execute the program 910, and specifically can execute the relevant steps in the above data transmission method embodiment.
[0085] Specifically, the program 910 may include program codes, which include computer operation instructions.
[0086] The processor 902 may be a processor CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0087] The memory 906 is used to store the program 910. The memory 906 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0088] The program 910 can be specifically used to enable the processor 902 to execute to implement the data transmission method described in Embodiment 1 to Embodiment 3. The specific implementation of each step in the program 910 can refer to the corresponding description in the corresponding steps and units in the above-mentioned data transmission method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0089] The electronic device provided by the embodiment of the present application obtains and installs the basic installation package of the target application; when the target application is running, the installation package of at least one plug-in of the target application is downloaded and installed in the background; in response to the operation of triggering the target function in the target application, it is determined whether the installation package of the target plug-in corresponding to the target function has been downloaded and installed, and at least one plug-in includes the target plug-in; if the installation package of the target plug-in has not been downloaded and installed, the installation package of the target plug-in is downloaded and installed. Because the target application can be run after the basic installation package of the target application is downloaded and installed, the basic installation package is only a part of the target application, and the installation packages of other plug-ins are silently downloaded and installed in the background during the running of the target application, which reduces the waiting time of the user.
[0090] Embodiment 8
[0091] Based on the method described in the above-mentioned embodiment 1, embodiment 4 of the present application provides a computer storage medium, on which a computer program is stored. When the program is executed by a processor, the methods described in embodiments 1 to 3 are implemented.
[0092] Embodiment 9
[0093] Based on the method described in the above-mentioned embodiment 1, embodiment 5 of the present application provides a computer program product, which implements the methods described in embodiments 1 to 3 when executed by a processor.
[0094] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0095] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the navigation method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the navigation method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the navigation method shown herein.
[0096] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0097] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.
Claims
1. A data transmission method, wherein: include: Obtaining a basic installation package of the target application and installing it, wherein the basic installation package includes configuration information of at least one plug-in installation package, and the configuration information includes at least a download address of the at least one plug-in, and a size and version information of the plug-in installation package; When the target application is running, downloading and installing an installation package of at least one plug-in of the target application in the background; In response to an operation that triggers a target function in the target application, calling a routing interceptor to intercept the operation request that triggers the target function, calling a dynamic interface of the target application to determine whether an installation package of a target plug-in corresponding to the target function has been downloaded and installed, wherein the at least one plug-in includes the target plug-in; If the installation package of the target plug-in has not been downloaded and installed, download and install the installation package of the target plug-in; The method also includes: in response to a setting operation of the background download speed, setting a download speed threshold for the background download of the installation package of the at least one plug-in, so that the background download speed of the installation package of the at least one plug-in is less than or equal to the download speed threshold, wherein the download speed threshold is used to control the network traffic occupancy when downloading the installation package of the at least one plug-in.
2. The method according to claim 1, wherein: When the target application is running, downloading and installing an installation package of at least one plug-in of the target application in the background includes: When running the target application, obtaining configuration information of the installation package of the at least one plug-in; According to the configuration information, an installation package of the at least one plug-in is downloaded and installed according to the download address of the at least one plug-in.
3. The method according to claim 1, wherein: The method further comprises: If the installation package of the target plug-in has been downloaded and installed, the target plug-in corresponding to the target function is run.
4. A data transmission method, wherein: include: According to the basic function of the target application and at least one plug-in function, split the target application into a basic program and at least one plug-in; Packaging the basic program to obtain the basic installation package of the target application includes: obtaining configuration information including at least the download address of the at least one plug-in, and the size and version information of the installation package of the plug-in, and packaging the basic program and the configuration information to obtain the basic installation package; packaging the at least one plug-in to generate the installation package of the at least one plug-in of the target application; The basic installation package is uploaded to the application store platform, and the installation package of the at least one plug-in is transmitted to the remote server, so that when the target application is installed and run based on the basic installation package, in response to the setting operation of the background download speed, a download speed threshold for background downloading of the installation package of the at least one plug-in is set, so that the background download speed of the installation package of the at least one plug-in is less than or equal to the download speed threshold, wherein the download speed threshold is used to control the network traffic occupancy when downloading the installation package of the at least one plug-in, and after the target application is installed and run based on the basic installation package, in response to the operation of triggering the target function in the target application, a routing interceptor is called to intercept the operation request triggering the target function, and the dynamic interface of the target application is called to determine whether the installation package of the target plug-in corresponding to the target function has been downloaded and installed, and if it has not been downloaded and installed, the installation package of the target plug-in is downloaded and installed.
5. The method according to claim 4, wherein: The transmitting the installation package of the at least one plug-in to the remote server includes: The installation package of the at least one plug-in is transmitted to the remote server according to the download address of the at least one plug-in.
6. A terminal device, wherein: include: An acquisition module, configured to acquire a basic installation package of a target application and install it, wherein the basic installation package includes configuration information of at least one plug-in installation package, and the configuration information includes at least a download address of the at least one plug-in, and a size and version information of the plug-in installation package; A download module, used to download and install an installation package of at least one plug-in of the target application in the background when the target application is running; an interception module, configured to, in response to an operation that triggers a target function in the target application, call a routing interceptor to intercept the operation request that triggers the target function, and call a dynamic interface of the target application to determine whether an installation package of a target plug-in corresponding to the target function has been downloaded and installed, wherein the at least one plug-in includes the target plug-in; The download module is further configured to download and install the installation package of the target plug-in when the installation package of the target plug-in has not been downloaded and installed; An interaction module is used to set a download speed threshold for background downloading of the installation package of at least one plug-in in response to a setting operation of the background download speed, so that the background download speed of the installation package of the at least one plug-in is less than or equal to the download speed threshold, wherein the download speed threshold is used to control the network traffic occupied when downloading the installation package of the at least one plug-in.
7. A data transmission device, wherein: include: A splitting module, used for splitting the target application into a basic program and at least one plug-in according to the basic function of the target application and at least one plug-in function; A packaging module, used to package the basic program to obtain a basic installation package of the target application, and to package the at least one plug-in to generate an installation package of at least one plug-in of the target application; A transmission module, used to upload the basic installation package to an application store platform, and transmit the installation package of the at least one plug-in to a remote server, so that when the target application is installed and run based on the basic installation package, in response to the setting operation of the background download speed, a download speed threshold for background downloading of the installation package of the at least one plug-in is set, so that the background download speed of the installation package of the at least one plug-in is less than or equal to the download speed threshold, wherein the download speed threshold is used to control the network traffic occupation when downloading the installation package of the at least one plug-in, and after the target application is installed and run based on the basic installation package, in response to the operation of triggering the target function in the target application, a routing interceptor is called to intercept the operation request triggering the target function, and a dynamic interface of the target application is called to determine whether the installation package of the target plug-in corresponding to the target function has been downloaded and installed, and if it has not been downloaded and installed, the installation package of the target plug-in is downloaded and installed; The packaging module is specifically used to obtain configuration information including at least the download address of the at least one plug-in, and the size and version information of the installation package of the plug-in, and to package the basic program and the configuration information to obtain the basic installation package.
8. An electronic device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the data transmission method according to any one of claims 1 to 5.
9. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the operation corresponding to the data transmission method according to any one of claims 1 to 5 is implemented.