WO2019218952A1 - Data processing method, terminal, server, and application development device - Google Patents

Data processing method, terminal, server, and application development device Download PDF

Info

Publication number
WO2019218952A1
WO2019218952A1 PCT/CN2019/086534 CN2019086534W WO2019218952A1 WO 2019218952 A1 WO2019218952 A1 WO 2019218952A1 CN 2019086534 W CN2019086534 W CN 2019086534W WO 2019218952 A1 WO2019218952 A1 WO 2019218952A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
package
resource
terminal
server
Prior art date
Application number
PCT/CN2019/086534
Other languages
French (fr)
Chinese (zh)
Inventor
张艺宝
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2019218952A1 publication Critical patent/WO2019218952A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a data processing method, a terminal, a server, and an application development device.
  • the terminal downloading application mainly obtains an installation package of the application from the download server, and the application can be used after the terminal is downloaded.
  • the application is an application that can be adapted to a terminal with different hardware configurations
  • the installation package includes Files for terminals with different hardware configurations.
  • the installation package of the application includes files adapted to terminals of different configurations
  • the installation package of the application is increased, and the download time of the terminal to download the fast application is increased.
  • the embodiment of the present application provides a data processing method, a terminal, a server, and an application development device, which are used to reduce download time of a terminal downloading an application, thereby improving a user experience.
  • a first aspect of the embodiments of the present application provides a data processing method, including:
  • the user can send a download request message to the server through the terminal, where the user can download the application page in multiple ways, for example, by applying a market application, a browser link, etc., and then correspondingly Download request.
  • the download request message carries the device information of the terminal, where the complete installation package of the application requested by the user in the server stores at least two installation packages, and the at least two installation packages are adapted to at least two different packages.
  • a configured terminal the terminal may obtain a target installation package of the application sent by the server, where the target installation package is an installation package determined by the server according to the device of the terminal to match the configuration of the terminal, the target installation package Is one of the at least two installation packages.
  • the target installation package of the application acquired by the terminal is an installation package that is determined by the server according to the device information to match the configuration of the terminal, and the target installation package is the at least two installation packages. Therefore, the target installation package is smaller than the at least two installation packages of the quick application, and the time required for the terminal to download the target installation package is less than that required by the terminal to download at least two installation packages of the application. The duration, therefore, reduces the download time of the terminal downloading the application, thereby improving the user experience.
  • the terminal may further include: the terminal may receive the download response message sent by the server, where the download response The message includes a download address of the target installation package of the application; then the terminal acquiring the target installation package of the application may include: the terminal may download the application from the server according to the download address of the target installation package of the application included in the download response message.
  • Target installation package In this possible implementation manner, a specific terminal obtains a method for acquiring a target installation package of the application, and in actual application, the achievability of the solution is improved.
  • the target installation package of the application may include a main installation package of the application and at least one resource package of the application, where the main installation package may include a general file of the application, and at least one resource of the application
  • the package may contain a resource file of the application that the server matches for the terminal according to the device information.
  • the universal file of the application may include a general configuration file of the application and a universal resource file of the application;
  • the at least one resource package may include a layout resource package, a language resource package, and a picture resource package
  • the layout resource package may include a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource package, The second level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
  • the device information may include configuration information of the terminal, and the configuration information of the terminal is consistent with the default configuration information preset by the server, and the target installation package of the application may include a default installation of the application.
  • a content included in the target installation package received by the terminal is provided, and in a practical application, a specific implementation manner is provided, which improves the achievability of the solution.
  • the device information may include configuration information of the terminal; the configuration information of the terminal is not completely the same as the preset configuration information, where the configuration information of the terminal and the preset configuration are When the information is completely different, at least one resource configuration in the preset configuration information may include at least three parameter types; then, the target installation package of the application may include the default installation package of the application and at least one resource of the application. a package, the default installation package may include a general file of the application and a resource file of the application that matches the default configuration information of the preset, and at least one resource package of the application may include the resource of the application that matches the difference configuration information. The file, the difference configuration information may be part of the configuration information that is different from the preset default configuration information.
  • the content included in the target installation package received by the terminal is provided, and in a practical application, a specific implementation manner is provided, which improves the achievability and integrity of the solution.
  • the universal file of the application may include a general configuration file of the application and a universal resource file of the application;
  • the at least one resource package may include a layout resource package, a language resource package, and a picture resource package.
  • the layout resource package may include a vertical screen layout resource package or a horizontal screen layout resource package
  • the language resource package may include a Chinese resource package, an English resource package or other language resource package
  • the picture resource package may include the first The level resolution picture resource package, the second level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
  • another practical application scenario of applying the data processing method of the present application is provided, which increases the diversity and operability of the solution.
  • the terminal may further include: first, the terminal may decompress the target installation package of the application to the target installation directory according to a preset decompression rule, and then, The terminal can run the application.
  • the specific manner in which the specific terminal decompresses the application is provided, and the integrity and practicability of the solution are improved.
  • the method may further include: The terminal can verify whether the target installation package of the application has the data signature of the server. If the data signature of the server is available, the terminal can determine that the target installation package of the application is legal. In this possible implementation manner, the method for verifying the legitimacy of the target installation package by the terminal is provided, and the validity of the target installation package is determined by verifying whether the target installation package has the data signature of the server, thereby improving the scheme. Perfection.
  • the application may include a fast application.
  • the application may include a fast application, providing a specific application type, and improving the utility of the solution in practical applications.
  • a second aspect of the embodiments of the present application provides a data processing method, including:
  • the user can send a download request message to the server through the terminal, where the user can download the application page in multiple ways, for example, by applying a market application, a browser link, etc., and then correspondingly Download request.
  • the complete installation package of the application requested by the user in the server stores at least two installation packages, and the at least two installation packages are adapted to at least two terminals of different configurations; then the terminal can acquire the application sent by the server.
  • the default installation package where the default installation package can contain the application's generic file and the application's resource file that matches the configuration information preset in the server.
  • the default installation package of the application obtained by the terminal may include a general file of the application and a resource file of the application matching the configuration information preset in the server, therefore, the default The installation package is smaller than the at least two installation packages of the application, and the time required for the terminal to download the default installation package is less than the length of time required for the terminal to download at least two installation packages of the application, thereby reducing terminal downloading.
  • the download time of the app to enhance the user experience.
  • the terminal may further include: the terminal may receive the first a download response message, wherein the first download response message may include a download address of a default installation package of the application; correspondingly, the terminal may obtain the default installation package of the application, where the terminal may include: the terminal may respond to the first download response message The download address of the default installation package included in the download from the server to download the default installation package for the application.
  • a specific manner for obtaining the default installation package by the terminal is provided, which improves the implementability of the solution.
  • the terminal may further include: first, the terminal may extract the default installation package of the application to the target installation directory according to a preset decompression rule, and then The terminal can determine whether the file of the default installation package matches the configuration information of the terminal, and if it matches, the terminal runs the application.
  • a decompression mode of the terminal and a specific judging method for judging whether the obtained application can run in the configuration environment of the terminal are provided, and in actual application, the achievability of the solution is improved. Operability.
  • the terminal before the terminal can decompress the default installation package of the application to the target installation directory according to the preset decompression rule, the terminal may further include: the terminal may verify whether the default installation package of the application has the server. Data signature, if available, the terminal can determine that the application's default installation package is legal.
  • the method for verifying the legitimacy of the default installation package is provided by the terminal, and the validity of the default installation package is determined by verifying whether the default installation package has the data signature of the server, thereby improving the scheme. The perfection.
  • the method may further include: first, the terminal may send a second download request message to the server, the second The download request message may include configuration information of the terminal; the terminal may obtain at least one resource package of the application, where the at least one resource package may include the server different from the preset configuration information according to the configuration information of the terminal.
  • the difference configuration information is a resource file matched by the terminal.
  • the terminal may re-request the server to obtain at least one resource package required, so in the actual application, the solution is improved. Integrity and practicality.
  • the method may further include: the terminal may receive the first The second download response message includes the download address of the at least one resource package.
  • the terminal acquiring the at least one resource package of the application may include: the terminal may be in the second download response message.
  • the download address of the at least one resource package included includes at least one resource package of the application downloaded from the server.
  • the method may further include: first, the terminal decompresses at least one resource package of the application to the target installation according to a preset decompression rule. Directory; then, the terminal runs the application.
  • a specific manner for the terminal to decompress the at least one resource package is provided, and the practicality and operability of the solution are improved in practical applications.
  • the method may further include: the terminal may verify whether the at least one resource package has The data signature of the server, if available, the terminal can determine that the at least one resource bundle is legal.
  • the method provides a specific method for the terminal to verify the validity of the at least one resource package, and determines whether the at least one resource package has the data signature of the server to determine the legality of the at least one resource package. The perfection of the program.
  • the universal file of the application may include a general configuration file of the application and a universal resource file of the application.
  • another practical application scenario of applying the data processing method of the present application is provided, which increases the diversity of the solution.
  • the at least one resource package may include at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package may include a vertical screen layout resource package or a horizontal screen layout resource.
  • the language resource package may include a Chinese resource package, an English resource package or other language resource package
  • the picture resource package may include a first level resolution picture resource package, a second level resolution picture resource package or a third level resolution.
  • the picture resource package, the first level resolution is greater than the second level resolution
  • the second level resolution is greater than the third level resolution.
  • the application may include a fast application.
  • the application may include a fast application, providing a specific application type, and improving the utility of the solution in practical applications.
  • a third aspect of the embodiments of the present application provides a data processing method, including:
  • the user can send a download request message to the server through the terminal, where the download request message is a message requesting the terminal to download the application, and then the server can receive the download request message sent by the terminal, where
  • the download request message includes device information of the terminal, and the terminal requests the downloaded application to store at least two installation packages in the complete installation package in the server, and the at least two installation packages are adapted to at least two terminals of different configurations.
  • the server may determine, according to the device information of the terminal, the target installation package of the application that matches the configuration of the terminal, where the target installation package is one of the at least two installation packages; and finally, the server The target installation package for the application can be sent to the terminal.
  • the server determines, according to the device information of the terminal included in the download request message sent by the terminal, the target installation package of the application that matches the configuration of the terminal, and the target installation package is the at least two installation packages. One of them, and then send the target installation package to the terminal, therefore, the target installation package received by the terminal is smaller than the at least two installation packages of the application, and the length of time required for the terminal to download the target installation package It will be less than the length of time required for the terminal to download the at least two installation packages. Therefore, the download time of the terminal downloading the application is reduced, thereby improving the user experience.
  • the server sends the target installation of the application to the terminal.
  • the method may further include: the server may send a download response message to the terminal, where the download response message includes a download address of the target installation package of the application, and the download response message may be used by the terminal to download the application from the server.
  • Target installation package the server sending the target installation package of the application to the terminal may include: the server may send the target installation package of the application to the terminal according to the download address of the target installation package.
  • the target installation package of the application may include a main installation package of the application and at least one resource package of the application, where the main installation package may include a general file of the application, and at least one resource of the application
  • the package may contain a resource file of the application that the server matches for the terminal according to the device information.
  • a content that the target installation package can specifically include is provided, and the implementation of the solution is improved.
  • the universal file of the application may include a configuration file of the application and a universal resource file of the application
  • the at least one resource package may include a layout resource package, a language resource package, and a picture resource package
  • the layout The resource package may include a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes a first level resolution picture resource package, and a second a level resolution picture resource package or a third level resolution picture resource package, the first level resolution being greater than the second level resolution, the second level resolution being greater than the third level resolution.
  • the device information may include configuration information of the terminal
  • the server determines, according to the device information of the terminal, that the target installation package of the application matches the configuration of the terminal
  • the first installation package of the application may include:
  • the server may determine that the configuration information is consistent with the default configuration information preset in the server; then, the server may determine to the terminal that the configuration of the terminal matches the default installation package of the application, and the default installation package may include the application.
  • the generic file and the resource file for the application that matches the default configuration information for the preset.
  • a specific method for determining, by the server, a matching target installation package for the terminal according to the configuration information of the terminal is provided, and in actual application, the achievability of the solution is improved.
  • the device information may include configuration information of the terminal; the configuration information of the terminal is not completely the same as the configuration information preset in the server, where the configuration information of the terminal and the preset When the configuration information is completely different, at least one resource configuration in the preset configuration information may include at least three parameter types; the server determines, according to the device information of the terminal, the terminal that matches the configuration of the terminal.
  • the target installation package of the application may include: first, the server may determine that the configuration information is inconsistent with the preset configuration information, and then the server may determine, for the terminal, the default installation package of the application and the application that match the configuration of the terminal.
  • the default installation package may include a general file of the application and a resource file of the application matching the preset default configuration information, and at least one resource package of the application may include the matching with the difference configuration information
  • the resource file of the application, the difference configuration information is the default configuration in the configuration with the preset
  • Another specific method for the server to determine the matching target installation package for the terminal according to the configuration information of the terminal is provided, and in the actual application, the solution is improved. The achievability and diversity.
  • the universal file of the application may include a general configuration file of the application and a universal resource file of the application, where the at least one resource package may include a layout resource package, a language resource package, and a picture resource package.
  • the layout resource package may include a vertical screen layout resource package or a horizontal screen layout resource package
  • the language resource package may include a Chinese resource package, an English resource package or other language resource package
  • the picture resource package may include the first The level resolution picture resource package, the second level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
  • another practical application scenario of applying the data processing method of the present application is provided, which increases the diversity and operability of the solution.
  • the method may further include: first, the server may receive a complete installation package of the application sent by the application development device, the complete installation package may include a file of the at least two installation packages adapted to the at least two different configurations, the complete installation package may develop a device for the application
  • the installation package of the application is generated according to a preset file placement rule; then, the server can split the complete installation package into multiple sub-packages according to a preset unpacking rule; the server can register the multiple sub-packages on the server. So that the plurality of sub-packets are associated with the application.
  • a specific method for the server to obtain a complete installation package of the application and a specific process for processing the complete installation package are provided, and in the actual application, the integrity and achievability of the solution are improved. Sex.
  • the server splitting the complete installation package into multiple sub-packets according to a preset unpacking rule may include: the server may split the complete installation package into the application according to a resource configuration rule. a main installation package and at least two resource packages of the application, the main installation package may include a general file of the application, and the at least two resource packages may include other resource files in the complete installation package of the application except the common file .
  • a specific splitting manner is provided for a specific server to split the complete installation package of the application. In practical applications, the achievability of the solution is improved.
  • the server splitting the complete installation package into multiple sub-packets according to a preset splitting rule may include: the server may be configured according to a preset default configuration rule and a preset resource configuration rule.
  • the full installation package is split into a default installation package of the application and at least one resource package of the application, wherein the default installation package may include a common file of the application and a resource of the application matching the default configuration information of the preset.
  • a file the at least one resource package may include other resource files of the application, and the other resource files of the application are the resource files of the application and the common file in the complete installation package except the preset default configuration information Resource file.
  • another specific splitting manner of the server to split the complete installation package of the application is provided, and the achievability and diversity of the solution are improved in the actual application process.
  • the method may further include: the server may mark the data signature of the plurality of sub-packets.
  • the server may perform data signature on multiple sub-packets for the subsequent terminal to determine the legitimacy of the target installation package by using the data signature, thereby improving the integrity of the solution.
  • the method may further include: before the server splits the complete installation package into multiple sub-packets according to a preset unpacking rule. It can be verified whether the data signature of the complete installation package matches the preset account configuration signature. If it matches, the server is triggered to split the complete installation package into multiple sub-packets according to a preset splitting rule.
  • a specific method for determining the legitimacy of a complete installation package by a specific server is provided, which improves the integrity of the solution.
  • the application may include a fast application.
  • the application may include a fast application, providing a specific application type, and improving the utility of the solution in practical applications.
  • a fourth aspect of the embodiments of the present application provides a data processing method, including:
  • the user may send a download request to the server through the terminal, and the server may receive the first download request message sent by the terminal, where the first download request message is a request message for the terminal to download the application.
  • the application stores at least two installation packages in the server, the at least two installation packages being adapted to at least two terminals of different configurations; the server may send a default installation package of the application to the terminal, the default installation package includes the A common file of the application and a resource file of the application matching the configuration information preset in the server, the default installation package being one of the at least two installation packages.
  • the server may send a default installation package of the application to the terminal according to the first download request message of the terminal, where the default installation package includes the universal file of the application and the configuration information matched with the configuration information preset in the server.
  • the resource file of the application, the default installation package is one of the at least two installation packages, so the default installation package is smaller than the at least two installation packages, and the time required for the terminal to download the default installation package is less than The length of time required for the terminal to download the at least two installation packages, thereby reducing the time for the terminal to download the application and improving the user experience.
  • the method may further include: the server may send the a first download response message, where the first download response message includes a download address of a default installation package of the application; correspondingly, the server sending the default installation package of the application to the terminal may include: the server may be configured according to the first The download address of the default installation package included in the download response message sends the default installation package of the application to the terminal.
  • a method for the server to send a default installation package to the terminal is provided, which improves the achievability of the solution.
  • the method may further include: the server may receive a second download request message of the terminal, where the second download request message includes the The configuration information of the terminal, and then the server may determine, according to the configuration information of the terminal, the at least one resource package of the application that matches the configuration of the terminal, the at least one resource package may be included in the difference configuration
  • the resource file of the application, the difference configuration information may be part of the configuration information of the terminal and the configuration information of the preset configuration information; the server may send the at least one resource package to the terminal.
  • the server may obtain a second download request message, where the second download request message includes configuration information of the terminal, and then the server may match the at least one resource package required by the terminal according to the configuration information. And then sending the at least one resource package to the terminal. Therefore, when the terminal determines that the file of the default installation package does not match the configuration information, the terminal may obtain the required at least one resource package from the server again, thereby improving the integrity of the solution. .
  • the server sends at least one resource package to the terminal.
  • the method may further include: the server may send a second response message to the terminal, where the second response message includes a download address of the at least one resource package of the application; correspondingly, the server sends the at least one resource package to the terminal.
  • the method may include: the server may send the at least one resource package to the terminal according to the download address of the at least one resource package included in the second download response message.
  • the universal file of the application may include a general configuration file of the application and a universal resource file of the application.
  • the at least one resource package may include at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package.
  • the language resource package includes a Chinese resource package, an English resource package or other language resource package
  • the picture resource package includes a first level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package.
  • the first level resolution is greater than the second level resolution
  • the second level resolution is greater than the third level resolution.
  • the method may further include: first, the server receives a complete installation package of the application sent by the application development device, and the complete installation package Included in the at least two installation packages are files adapted to the at least two differently configured terminals, the complete installation package for which the application development device generates a complete installation package of the application according to a preset file placement rule; The server may split the complete installation package into multiple sub-packets according to a preset unpacking rule, and the server registers the plurality of sub-packets on the server, so that the multiple sub-packets are associated with the application.
  • a specific method for the server to obtain a complete installation package of the application and a specific process for processing the complete installation package are provided, and in the actual application, the integrity and achievability of the solution are improved. Sex.
  • the server splitting the complete installation package into multiple sub-packets according to a preset unpacking rule may include: the server may be configured according to a preset default configuration rule and a preset resource configuration rule.
  • the full installation package is split into a default installation package of the application and at least one resource package of the application, and the default installation package may include a common file of the application and a resource file of the application matching the default configuration information of the preset.
  • the at least one resource package includes other resource files of the application, and the other resource files of the application are resources of the application and resources other than the common file in the complete installation package except the preset default configuration information. file.
  • a specific splitting manner is provided for the server to split the complete installation package of the application, and the achievability of the solution is improved in the actual application process.
  • the application may include a fast application.
  • the application may include a fast application, providing a specific application type, and improving the utility of the solution in practical applications.
  • a fifth aspect of the embodiments of the present application provides a data processing method, including:
  • the developer develops the application, compiles the file of the application, and then the application development device can generate a complete installation package of the application file, where the complete installation package includes at least two installation packages, wherein The at least two installation packages are adapted to at least two configured terminals, and then the application development device can send the complete installation package to the server.
  • the application development device generates a complete installation package by using the application development device, and then sends the complete installation package to the server, and the subsequent server obtains multiple sub-packages after unpacking the complete installation package, and then the server downloads according to the terminal.
  • the device information in the request message sends a corresponding matching target installation package to the terminal, so that the terminal reduces the time for downloading the application.
  • the application development device that generates the complete installation package of the application may include: the application development device may place the application file according to a preset file placement rule to obtain a complete installation package of the application.
  • a specific generation manner of a complete installation package of an application development device generating application is provided, which improves the achievability of the solution.
  • a sixth aspect of the present application provides a terminal, where the terminal has a function of implementing the behavior of the terminal in the first aspect or the second aspect, and the function may be implemented by using hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • a seventh aspect of the embodiments of the present application provides a server, where the terminal has a function of implementing the third-party or fourth-party server behavior, and the function may be implemented by using hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • An eighth aspect of the embodiments of the present application provides an application development device, where the terminal has a function of implementing the behavior of the application development device in the fifth aspect, and the function may be implemented by using hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • a ninth aspect of the embodiments of the present application provides a terminal, where the terminal includes: a processor, a memory, an input and output device, and a bus; the processor, the memory, and the input and output device are respectively connected to the bus, where the computer stores the computer.
  • the processor stores the computer instructions in the memory when the processor executes the computer instructions in the memory; the processor is configured to implement any one of the first aspect or the second aspect when executing the computer instructions in the memory Method to realize.
  • a tenth aspect of the embodiments of the present application provides a server, where the server includes: a processor, a memory, an input and output device, and a bus; the processor, the memory, and the input and output device are respectively connected to the bus, where the computer stores the computer.
  • the processor stores a computer instruction in the memory when the processor executes the computer instruction in the memory; the processor is configured to implement any one of the third aspect or the fourth aspect when executing the computer instruction in the memory Method to realize.
  • An eleventh aspect of the present application provides an application development device, where the application development device includes: a processor, a memory, an input and output device, and a bus; the processor, the memory, and the input and output device are respectively connected to the bus, where A computer instruction is stored in the memory; the processor stores a computer instruction in the memory when executing the computer instruction in the memory; and the processor is configured to implement any one of the fifth aspects when executing the computer instruction in the memory Implementation.
  • a twelfth aspect of the embodiments of the present application provides a chip system, where the chip system includes a processor for supporting a network device to implement the functions involved in the first aspect or the second aspect, for example, transmitting or processing the foregoing method. Data and/or information involved in this.
  • the chip system further includes a memory for storing necessary program instructions and data of the network device.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • a thirteenth aspect of the embodiments of the present application provides a chip system, including a processor, for supporting a network device to implement the functions involved in the third aspect or the fourth aspect, for example, sending or processing the foregoing method Data and/or information involved in this.
  • the chip system further includes a memory for storing necessary program instructions and data of the network device.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • a fourteenth aspect of the embodiments of the present application provides a chip system, including a processor, for supporting a network device to implement the functions involved in the foregoing fifth aspect, for example, for transmitting or processing the method involved in the foregoing method. Data and / or information.
  • the chip system further includes a memory for storing necessary program instructions and data of the network device.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • a fifteenth aspect of the embodiments of the present application provides a computer program product comprising instructions, wherein when executed on a computer, the computer is caused to perform the first aspect, the second aspect, the third aspect, and the fourth Aspect or implementation of any of the fifth aspects.
  • a sixteenth aspect of the embodiments of the present application provides a computer readable storage medium, comprising: instructions, when the instructions are run on a computer, causing the computer to perform the first aspect, the second aspect, the third aspect, Any one of the fourth aspect or the fifth aspect.
  • FIG. 1 is a schematic diagram of a framework of a scenario system in an embodiment of the present application.
  • FIG. 2 is a schematic diagram of an embodiment of a data processing method in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a scenario of a data processing method according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application.
  • FIG. 5-A is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application.
  • FIG. 5-B is a schematic diagram of another scenario of a data processing method in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application.
  • FIG. 6-B is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of another embodiment of a data processing method according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application.
  • FIG. 14 is a schematic diagram of another embodiment of a data processing method according to an embodiment of the present application.
  • FIG. 15 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application.
  • 16 is a schematic structural diagram of a terminal in an embodiment of the present application.
  • 17 is another schematic structural diagram of a terminal in an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of a server in an embodiment of the present application.
  • FIG. 19 is a schematic structural diagram of an application development device according to an embodiment of the present application.
  • 20 is another schematic structural diagram of a terminal in an embodiment of the present application.
  • 21 is another schematic structural diagram of a server in an embodiment of the present application.
  • FIG. 22 is another schematic structural diagram of an application development device in an embodiment of the present application.
  • the embodiment of the present application provides a data processing method, a terminal, a server, and an application development device, which are used to reduce download time of a terminal downloading an application, thereby improving a user experience.
  • FIG. 1 is a schematic diagram of a system framework of an application scenario according to an embodiment of the present disclosure, where a terminal establishes a communication connection with a server, and the terminal may be a mobile phone, a computer, a television, or a tablet computer. After the terminal establishes a communication connection with the server, the terminal may request to download the application from the server, and then the terminal installs the application package by using the download address fed back by the server.
  • the installation package of the terminal downloading application downloads the complete installation package of the application, and when the complete installation package of the application includes files adapted to terminals of different configurations, for example, the installation package of the application If there are multiple resolution pictures, files in multiple languages, etc., the full installation package will increase, resulting in an increase in the download time of the complete installation package in which the terminal downloads the application.
  • the embodiment of the present application provides a data processing method to reduce the download time of the terminal downloading the application, the terminal establishes a communication connection with the server, and then sends a download request message to the server according to the user's request, and the download request message is the
  • the terminal requests to download the message of the application, and the download request message carries the device information of the terminal;
  • the server is configured to receive the download request message sent by the terminal, and send the application that matches the configuration of the terminal to the terminal according to the device information of the terminal.
  • Target installation package in addition, after the server obtains the complete installation package of the application, the complete installation package can be split into multiple sub-packages according to a preset unpacking rule, and then the multiple sub-packages are associated with the server.
  • the terminal determines the installation package that matches the configuration of the terminal according to the device information of the terminal, where the configuration of the terminal may include the hardware configuration of the terminal, and may also include Software configuration of the terminal, wherein the hardware configuration may include the type of the terminal For example, a mobile phone, a television or a computer, a screen resolution of the terminal, a language system used by the terminal, a layout state currently used by the terminal, etc., and the software configuration of the terminal may include an operating system used by the terminal, such as a window operation window system or an internet operation. IOS system, etc., this application does not limit this.
  • the server may be a server having a download service function and an unpacking function.
  • the server serving the terminal may also be two servers, one of which is a download server that provides a download service, and the other An unpacking server that provides an unpacking function, the unpacking server splits the application's complete installation package into multiple sub-packets, and then sends the plurality of sub-packets to the download server, and the download server performs the plurality of sub-packages.
  • the function of downloading the application is provided to the terminal, and the function of downloading the application is provided to the terminal.
  • This application is not limited in this application. In the following embodiments, only the server having the download service function and the unpacking function of the server is taken as an example for description.
  • the application that the terminal requests to download may be a local application, a fast application, or another type of application, which is not limited in this application. In the following embodiments, only the terminal is used. Request to download the fast application as an example.
  • the application development device generates a complete installation package of the fast application
  • the application development device may generate the complete application package of the fast application according to a preset file placement rule, or may be an application development device.
  • the complete installation package of the fast application is generated in other manners, which is not limited in this application. In the following embodiments, only the application development device generates the fast application file according to a preset file placement rule.
  • the complete installation package of the application is described as an example.
  • the server may determine, according to the download request message, the target installation package of the fast application that matches the configuration of the terminal, and then install the target.
  • the packet is directly sent to the terminal; or the server determines, according to the download request message, a target installation package of the fast application that matches the configuration of the terminal, and then sends the download response message to the terminal, the download response message
  • the downloading address of the target installation package is carried, and the terminal downloads the target installation package from the server according to the download address, which is not limited herein.
  • only the server sends a download response message to the terminal. The example is explained.
  • the download address of the target installation package carried in the download response message may be in the form of a download resource list, where the download address of the target installation package is filled in, and may be carried in other forms. Specifically, it is not limited here. In the following embodiments, only the server sends the download resource list to the terminal as an example for description.
  • the device information of the terminal may include configuration information, and may also include hardware information or other related information, which is not limited in this application. In the following embodiments, only the device information of the terminal is used. This includes an example of configuration information and hardware information.
  • the server may verify the data signature of the complete installation package, and determine whether the data signature of the complete installation package matches the preset account signature. The server enters the next execution operation. If the server does not match, the server returns an error. The server can also perform the next operation without the need for verification.
  • the specific example is not limited herein. In the following embodiments, only The server verifies whether the data signature of the complete installation package matches the preset account signature, and then determines whether to proceed to the next step as an example for description. By verifying the data signature of the complete installation package of the fast application, the server can improve the security maintenance of the installation package on the server side, and prevent malicious users from uploading the installation package carrying the virus to the server to some extent.
  • the terminal may verify whether the target installation package of the fast application carries the data signature of the server, or directly decompress the target.
  • the installation package in the following embodiment, only the terminal verifies whether the target installation package of the fast application carries the data signature of the server, and then decompresses the target installation package as an example, and the terminal installs the target installation package. Improve the security of the installation package obtained by the terminal.
  • the server when the server obtains the complete installation package of the fast application, the server may split the complete installation package into multiple sub-packets according to a preset unpacking rule, and subsequently determine the terminal for the terminal. Configure the matching package for this fast app.
  • the server splits the complete installation package of the fast application according to a preset unpacking rule. For example, the server may split the complete installation package into a main installation package according to the resource configuration type. And a plurality of resource packages, and the complete installation package may be split into a plurality of configuration combinations and a plurality of resource packages according to different default configuration combinations, wherein the combination of the different configurations may be one or more groups.
  • the first configuration combination may be a high resolution, a Chinese, a horizontal screen layout, etc.
  • the second configuration is combined into a medium resolution, an English, and a vertical screen layout, etc., and is subsequently disassembled by the server with a preset set of default configuration information.
  • a default installation package Take a default installation package as an example. Therefore, the server splits the complete installation package of the fast application according to the preset unpacking rules.
  • the server may split the complete installation package of the quick application into at least two resource packages of the quick application and at least two resource packages of the fast application according to the resource configuration rule, where the main installation package includes the universal application package a configuration file, when the full installation package of the quick application includes a universal resource file, then the main installation package further includes the universal resource file, and the at least two resource packages include the general installation package of the fast application except the universal Resource files other than resource files.
  • Manner 2 The server splits the full installation package of the quick application into the default installation package of the fast application and at least one resource package according to a preset default configuration rule and a preset resource configuration rule, and the default installation package includes the fast application. a general configuration file and a resource file of the fast application matching the preset default configuration information.
  • the full installation package of the quick application includes a universal resource file
  • the default installation package further includes a universal resource file of the fast application.
  • the at least one resource package includes a resource file other than the universal resource file.
  • the server splits the complete installation package of the fast application into the main installation package of the fast application according to the resource configuration rule. And at least two resource bundles.
  • the application development device generates the complete application package of the fast application according to a preset file placement rule.
  • the application development device can generate a complete installation package of the fast application file, and the file of the complete installation package is placed on the application development device according to a preset file placement rule.
  • the corresponding directory folder in the installation package wherein the full installation package of the quick application contains files adapted to terminals of different configurations.
  • the structure of the installation package based on the preset file placement rule is exemplified in the following Table 1. It should be noted that Table 1 is only a complete installation package file placement structure provided by the embodiment of the present application. In the actual application, it may be a complete installation package of other structure types, which is not limited in this application.
  • the fast application various types of files are placed in the corresponding folder in Table 1, the fast application project dependent class library is placed in the dependency class library node_modules folder, the project source file The folder is placed in the source src folder, the public resource file and component file of the fast application are placed in the common common folder, the drawable is the default image directory, and is placed in the common folder, and the image resource file is installed when the terminal installs the fast application. It will be extracted to the drawable folder by default.
  • the full installation package of the fast application includes a picture resource file adapted to three resolutions, and the low resolution picture resource file is matched to a screen with a resolution of 480*800 or less, and the medium resolution picture resource The file matches the screen with a resolution of 480*800, and the high-resolution image resource file matches the screen with a resolution of 720*1280.
  • the image resource files of these three types of resolutions are placed in the drawable folder;
  • the quick application complete installation package further includes a resource file of a horizontal and vertical screen layout, and Page1 is a page directory, and the horizontal and vertical screen classification files are placed in the Page1 folder, wherein the Page1 folder includes an index.ux page folder, When the subsequent horizontal and vertical screen layout resource files are decompressed, they are placed in the index.ux page folder by default.
  • the horizontal screen layout resource file is a file with the suffix index_land.ux
  • the vertical screen layout resource file is suffixed with the index_port.ux file.
  • the full installation package of the quick application includes files in multiple languages, of which the language Placed in the language resource directory of the string String, the Chinese language resource file in the complete installation package is the suffix zh_cn file, the English language file is the file with the suffix en_us; the project profile of the fast application is the suffix manifest
  • the .json file, the various modules required for the fast application project, and the configuration information are files suffixed with package.json.
  • the files of the terminals adapted to multiple different configurations are inconsistent.
  • the full installation package of the fast application in Table 1 includes image resource files of different resolutions, and It is divided into three resolutions: high, medium and low.
  • the fast application can be divided into more detailed resolutions according to actual needs during the development stage. For example, high resolution can be subdivided into high first resolution and high second. Resolution; etc.; for language resource files, Table 1 is divided into Chinese resource files and English resource files. In practical applications, it can be divided into more types of languages, such as Spanish resource files, German resource files, etc.
  • the suffix of the file in 1 is set according to the requirements of the fast application.
  • the naming of the folder can be changed according to actual needs, and Table 1 is merely an example.
  • the application development device sends a complete installation package of the fast application to the server.
  • the complete installation package of the quick application can be sent to the server.
  • step 203 The server verifies whether the data signature of the complete installation package matches the preset account signature. If yes, step 205 is performed, and if no, step 204 is performed.
  • the server may verify whether the data signature of the complete installation package of the quick application matches the preset account signature, wherein the preset account signature is the developer in the server. The registered account corresponds to the matching data signature. If yes, step 205 is performed. If not, step 204 is performed.
  • the server performs other operations.
  • the server may perform other operations, specifically, the server may return information indicating the error to the user, or the server may re-verify the information. Complete the installation package and determine whether it matches. This application does not limit this.
  • the server splits the complete installation package into a main installation package and at least two resource packages according to resource configuration rules.
  • the server obtains the complete installation package of the fast application, and can split the complete installation package into a main installation package and at least two resource packages according to resource configuration rules.
  • the complete installation package structure of the fast application as shown in Table 1 is obtained by splitting the server to obtain a plurality of sub-packages.
  • the fast application complete installation package is obtained by the server according to the resource configuration rule.
  • the files included in the main installation package are shown in Figure 4. Since the quick application contains a common resource file, the main installation package includes a common configuration file and a general resource file.
  • the following is an example to illustrate the file placement status of multiple sub-packets that are quickly applied by the server.
  • the file placement rules in the main installation package obtained by the server split are shown in Table 2, as shown in Table 2.
  • the corresponding file is placed in the corresponding folder.
  • the file placement status of the high-resolution image resource package obtained by the server split is as shown in Table 3.
  • the high-resolution image resource is placed in the common folder, and the high-resolution image file used on the Page1 page is placed on the Page1 page. Under contents.
  • the file placement state of the vertical screen layout resource package is as shown in Table 4, and the vertical screen high-resolution image resource used by the Page1 page is placed in the Page1 page directory; the file placement state of the Chinese resource package is as shown in Table 5.
  • Chinese language files are placed in the String language resource directory under the Page1 page directory.
  • the server marks the data signature of the server for the primary installation package and at least two resource packages.
  • the server splits the complete installation package to obtain a main installation package and at least two resource packages, and the server can mark the data signature of the server for the main installation package and at least two resource packages, and the subsequent terminal is obtained by the data signature of the server.
  • the installation package can be determined as the installation package processed by the server by verifying the data signature, thereby improving the security and integrity of the installation package acquired by the terminal, and reducing the number of programs due to malicious users. Upload an installation package that contains a virus, etc.
  • the server associates the main installation package with at least two resource packages.
  • the server may associate the main installation package and the at least two resource packages in the server, so that the main installation package and the at least two resource packages are associated with the quick application; specifically, the server may preset the fast application in the server. a list of installation packages, the download address of each relevant installation package of the quick application obtained by the split is filled in the list, and the server can determine that the main installation package and at least two resource packages are installed for the fast application through the list. Package, thus implementing the main installation package and at least two resource bundles associated with the quick application.
  • the terminal acquires device information of the terminal.
  • the terminal device may obtain device information of the terminal in the process of using, where the device information may include configuration information of the terminal and hardware information of the terminal.
  • the configuration information may include screen resolution information of the terminal, language information currently used, and layout usage status information of the current terminal, and the hardware information may include information for reporting the type of the terminal to the server.
  • the terminal when the terminal is a mobile phone, the mobile phone can obtain configuration information and hardware information at this time.
  • the configuration information of the mobile phone has a screen resolution of 720*1280.
  • the currently used language is Simplified Chinese, which is currently in the vertical screen layout state; the hardware information is a mobile phone type terminal.
  • the terminal sends a download request message to the server.
  • the user may send a download request message to the server through the terminal, where the download request message includes device information of the terminal.
  • the terminal can download the fast application through various ways, that is, the terminal opens the page for downloading the fast application through the corresponding path, and then performs the download request process, for example, through the desktop icon, the application market application, Browser links and the like, which are not limited in this application.
  • the terminal enters the application scenario of downloading the fast application interface through the application market, and the user downloads the fast application "Hungry" through the application market application, wherein the "Hungry" complete installation package Contains files that are adapted to terminals of different configurations.
  • the complete installation package of "Hungry” is a high-resolution image resource file, a medium-resolution image resource file, and a low-resolution image resource file.
  • the user opens the application market application (application, APP) installed in the terminal, then the user clicks on the search and enters "Hungry”, then clicks on the recommended "Hungry” fast application "Second On” button, then
  • the mobile phone sends a download request message to the server, and the download request message carries the device information of the mobile phone.
  • the tablet When the terminal is the tablet shown in FIG. 6-A, the tablet is in a state of use of the vertical screen layout. If the resolution of the tablet is 720*1280 and the language used is Chinese, then the tablet is sent to the server.
  • the device information contained in the download request message is the resolution 720*1280, the usage language is Chinese, the vertical screen layout, and the terminal type of the tablet.
  • the tablet is in the state shown in Figure 6-B.
  • the layout state used is landscape, the language used is English, and the currently used resolution is 480*800.
  • the server integrates the download resource list according to the download request message.
  • the server may obtain the download request message, and then the server may integrate the download resource list according to the download request message, where the server may determine, according to the device information of the terminal, the target installation package that matches the hardware of the terminal. And then the download address of the target installation package is integrated in the download resource list, wherein the target installation package includes a main installation package and at least one resource package.
  • the server can determine that the terminal matches the target installation package of the fast application according to the device information of the mobile phone, as shown in FIG.
  • the "Hungry" fast application only distinguishes between image resource files of different resolutions. Other resources are default. Therefore, the target installation package contains the main installation package and the high-resolution resource package; then the server can install the target.
  • the download address of the package containing multiple sub-packages is integrated into the list of download resources.
  • the tablet computer requests to obtain the fast application shown in Table 1.
  • the full installation package of the fast application includes multiple resolution image resources.
  • the server matches the target installation package of the fast application according to the device information.
  • the content of the target installation package is as shown in FIG. 8, and the target installation package includes the main installation package.
  • the high-resolution image resource package, the vertical screen layout resource package, and the Chinese resource package, then the download address of the sub-packages is carried in the list of downloaded resources integrated by the server.
  • the server determines the target installation package for matching the corresponding fast application as shown in Table 1.
  • the target installation package contains the main installation package and the medium resolution picture. Resource package, horizontal layout resource package, and English resource package.
  • the server sends a download resource list to the terminal.
  • the download resource list may be sent to the terminal, where the download resource list carries the download address of the target installation package that the server determines for the terminal that matches the configuration of the terminal. For example, in step 210, the server matches the main installation package and the high-resolution picture resource package of the quick application for the mobile phone shown in FIG. 5-B, and then the download address of the sub-packages is included in the download resource list.
  • the terminal sends a download target installation package request to the server.
  • the terminal may generate a corresponding download target installation package request according to the download address of the target installation package in the download resource list, where the request message carries the download address of the target installation package, and the request message It is used to instruct the server to send the target installation package stored in the download address to the terminal.
  • the download resource list includes a plurality of download addresses of the installation package of the fast application, and the terminal may initiate multiple requests when sending the request, and each request carries the download address of the corresponding installation package. .
  • the server sends the primary installation package and the at least one resource package to the terminal.
  • the server may send the main installation package and the corresponding at least one resource package to the terminal according to the download address carried in the request message sent by the terminal.
  • the server can match the terminal with the "Hungry" main installation package in FIG. 7 and The high-resolution picture resource package, the server can send the main installation package and the high-resolution picture resource package to the terminal according to the download address sent by the terminal.
  • the server can match the main installation package, the medium resolution picture resource package, the horizontal layout resource package, and the English resource package as shown in FIG.
  • the server can send the main installation package, the high-resolution picture resource package, the horizontal layout resource package, and the English resource package to the tablet according to the download address.
  • the terminal determines that the primary installation package and the at least one resource package have a data signature of the server.
  • the terminal may verify that the primary installation package and the at least one resource package determine that the installation package has a data signature of the server, and by verifying the data signature, the installation package received by the terminal may be improved.
  • the security to a certain extent, prevents malicious users from uploading the virus installation package to the server, causing the terminal to download the virus installation package. It should be noted that, when the terminal determines that the data signature of the target installation package does not match the data signature of the server, the terminal may return an operation error, and the installation operation is terminated.
  • the terminal decompresses the main installation package and the at least one resource package to the target installation directory according to a preset decompression rule.
  • the primary installation package and the at least one resource package may be decompressed to the target installation directory according to a preset decompression rule.
  • a possible decompression method provided by the present application is described below through Table 6.
  • the tablet shown in FIG. 6-A obtains a main installation package, a high-resolution image resource package, a vertical screen layout resource package, and Chinese resource package, wherein the file placement status of the main installation package is as shown in Table 2.
  • the tablet can extract the files in the main installation package to the corresponding directories in the corresponding table 6.
  • the file placement status of the high-resolution image resource package is as shown in Table 3.
  • the vertical screen high-resolution image resource file is extracted to the index.ux folder in the Page1 directory in Table 6, wherein the vertical screen high-resolution image resource file of Table 4 is suffixed with index_land.ux, and when unpacked, the tablet meeting The suffix is modified to index.ux, and then placed in the index.ux folder in the Page1 directory in Table 6; and the file placement state of the Chinese resource package is as shown in Table 5, then the String file in the Page1 directory in Table 5
  • the Chinese language file suffixed is zh_cn. To extract the language file on the tablet, you can change the file name of the language file to default, and then extract it to the String file in Table 6.
  • the terminal runs the fast application.
  • the terminal may execute the fast application and display the corresponding page.
  • the phone can display a "hungry" page with a high resolution image, a default vertical screen, and a Chinese locale, as shown in Figure 6-A.
  • the tablet can display the fast application page corresponding to Table 1, displaying high resolution pictures, vertical screen layout status and Chinese language page.
  • the target installation package of the fast application acquired by the terminal is a target installation package that is determined by the server according to the device information to match the hardware of the terminal, and therefore, the target installation package is opposite to the target installation package.
  • the full installation package of the fast application is small, and the time required for the terminal to download the target installation package is less than the length of time required for the terminal to download the complete installation package of the fast application, thereby reducing the download time of the terminal downloading the fast application. Thereby improving the user experience.
  • the server completes the package of the fast application according to a preset default configuration rule and a preset resource configuration rule. Split into the default installation package for the quick app and at least one resource bundle.
  • the application development device generates a complete installation package for the fast application file according to a preset file placement rule.
  • the application development device sends a complete installation package of the fast application to the server.
  • step 1005 is performed; if not, step 1004 is performed.
  • the server performs other operations.
  • Steps 1001 to 1004 are similar to steps 201 to 204 in FIG. 2, and details are not described herein again.
  • the server splits the complete installation package into a default installation package and at least one resource package according to a preset default configuration rule and a preset resource configuration rule.
  • the server may split the complete installation package into a default installation package and at least one resource package according to a preset default configuration rule and a preset resource configuration rule, wherein the default installation package includes the preset
  • the default configuration rule corresponding to the default configuration information matches the resource file and the common configuration file.
  • the default installation package also includes the universal resource file.
  • At least one resource bundle contains resource files other than the generic resource files in the full installation package.
  • the default configuration information corresponding to the preset default configuration rule may be the type of configuration information that is determined to be the most frequently used according to the configuration information of the user currently using the fast application, or according to the fast application. It is determined by the relevant reference factors such as the region with the highest frequency of use, and the present application does not limit this.
  • the optimal mode may be that the group configuration with the highest frequency band is used as the default configuration information.
  • At least one resource configuration in the information includes at least three parameter types. For example, when the complete installation package of the fast application includes a Chinese resource file, an English resource file, a horizontal screen layout resource file, and a vertical screen layout resource, File, then assume that the default configuration information of the preset is Chinese and horizontal screen layout, then when the configuration information of the terminal is the vertical screen layout usage state and the English language usage environment, then the configuration information of the terminal and the server preset information are known at this time. The default configuration information is completely different.
  • the server needs to match the default installation package, the Chinese resource package, and the vertical screen layout resource package for the terminal. That is, the installation package size of the terminal download fast application is the same as that in the prior art. Then you can't solve the technical problem.
  • the application proposes that when at least one resource configuration in the preset configuration information includes at least three parameter types, it is assumed that the complete installation package of the fast application includes a Chinese resource file, an English resource file, other language resource files, and a horizontal
  • the screen layout resource file and the vertical screen layout resource file then the terminal download default installation package, Chinese resource package, and vertical screen layout resource package are smaller than the complete installation package of the fast download application of the terminal in the prior art, thereby reducing the terminal Downloading the download time of the fast application, therefore, when the configuration information of the terminal is completely different from the preset configuration information, the technical problem can be solved as long as the configuration information includes at least one resource configuration with three parameter types.
  • the complete installation package of the fast application includes resource files adapted to different resolutions, different layout resource files, and resource files in different languages, and then the server according to a preset default configuration rule.
  • the complete installation package of the quick application is split out of the default installation package. If the default configuration rule of the preset is high resolution, Chinese, and vertical screen layout, the content of the default installation package is as shown in FIG. 12,
  • the default installation package includes a common file, a high-resolution image resource file, a vertical screen layout resource file, and a Chinese resource file; the server can split the files of the complete installation package except the default installation package according to preset resource configuration rules. Resolve image resource bundles, low-resolution image resource bundles, horizontal layout resource bundles, and English resource bundles.
  • the server marks the data signature of the server for the default installation package and at least one resource package.
  • the server associates the default installation package with at least one resource package.
  • the terminal acquires device information of the terminal.
  • the terminal sends a download request message to the server.
  • Steps 1006 to 1009 are similar to the foregoing steps 206 to 209 in FIG. 2, and details are not described herein again.
  • step 1010 determines whether the configuration information of the terminal matches the preset default configuration information. If yes, step 1011 is performed; if no, step 1018 is performed.
  • the server may determine whether the configuration information in the device information of the terminal matches the preset default configuration information. If yes, the server performs step 1011. If not, the server performs step 1018.
  • the tablet is in the state of use of the vertical screen layout. It is assumed that the resolution of the tablet is 720*1280, the language used is Chinese, and the default configuration information is preset. It can be known that for high resolution, Chinese and vertical screen layout, when the tablet requests the corresponding fast application as shown in Table 1, the known high resolution image resource file is suitable for the screen resolution of 700*1280, so the server can Make sure the tablet's configuration information matches the preset default configuration information.
  • FIG. 6-B it is assumed that the tablet uses the English language and the screen resolution is 480*800. As shown in the figure, the current status is the horizontal screen usage state, and the server can determine the configuration information of the tablet. Does not match the default configuration information for this preset.
  • the server determines a first download resource list.
  • the server determines that the configuration information of the terminal matches the preset default configuration information, and the server may determine, for the terminal, the default installation package of the fast application that matches the hardware of the terminal, and then the server may determine the default installation package.
  • the download address is integrated and filled in to the first download resource list.
  • the server sends a first download resource list to the terminal.
  • the server may send the first download resource list to the terminal, where the first download resource list includes a download address of the default installation package of the fast application.
  • the server can send the first download resource list to the tablet shown in FIG. 6-B.
  • the terminal sends a first download target installation package request to the server.
  • Step 1013 is similar to step 212 in FIG. 2 above, and details are not described herein again.
  • the server sends a default installation package to the terminal.
  • the terminal may send the download address of the default installation package to the server, and then the server sends the default installation package to the terminal according to the download address; for example, in step 1013, FIG. 6-A
  • the illustrated tablet sends a first download target installation package request to the server, where the request carries the download address of the default installation package, and the server can send a default installation package to the server.
  • the terminal determines that the default installation package has a data signature of the server.
  • the terminal After receiving the default installation package, the terminal can verify whether the data signature of the default installation package matches the data signature of the server. If the terminal matches, the terminal can determine that the default installation package is legal. If not, the terminal can return an operation error.
  • the terminal extracts the default installation package to the target installation directory according to a preset rule.
  • the terminal can extract the default installation package to the target installation directory according to a preset decompression rule. For example, in the foregoing step 1014, determining that the tablet shown in FIG. 6-B obtains the default installation package, and the default installation package is as shown in FIG. 12, the tablet can extract the file corresponding to the default installation package to the target.
  • the installation directory as shown in Table 6, the high-resolution image resource file is extracted to the drawable folder in the common directory, the vertical screen layout resource file is extracted to the Page1 directory, and the suffix of the vertical screen layout resource file is modified to Index.ux, the high-resolution page is extracted independently using the resources to the drawable folder in the Page1 directory.
  • the Chinese resource file is extracted to the String directory, and the suffix of the Chinese resource file is changed to default.
  • the terminal runs the fast application.
  • Step 1017 is similar to step 216 in FIG. 2 above, and details are not described herein again.
  • the server determines a second download resource list.
  • the server determines that the configuration information of the terminal does not match the preset default configuration information, and the server may determine, according to the configuration information of the terminal, the default installation package and the at least one resource of the fast application that matches the hardware of the terminal.
  • the package then integrates the download address of the default installation package and the download address of the at least one resource package into the second download resource list.
  • the tablet of Figure 6-B is in English, the screen resolution is 480*800 and the horizontal screen is used.
  • the default configuration information of the preset is high resolution, Chinese and vertical screen layout, then the server can Determining, for the tablet, a default installation package, a medium resolution resource package, an English resource package, and a horizontal screen resource package that match the configuration of the tablet, as shown in FIG.
  • the server can integrate the download address of the default installation package, the download address of the medium resolution resource package, the download address of the English resource package, and the download address of the horizontal screen resource package into the second download resource list.
  • the server sends a second download resource list to the terminal.
  • the server may send the second download resource list to the terminal; for example, the tablet in FIG. 6-B illustrated in the foregoing step 1018, the tablet may obtain the second download resource list.
  • the terminal sends a second download target installation package request to the server.
  • Step 1020 is similar to step 212 in FIG. 2 above, and details are not described herein again.
  • the server sends a default installation package and at least one resource package to the terminal.
  • the terminal may send the default installation package in the second download resource list and the download address of the at least one resource package to the server, and then the server may send the default installation package and the at least one resource package to the terminal.
  • the tablet can receive three installation packages as shown in Figure 13: the default installation package, the English resource package, the medium resolution resource package, and the horizontal layout resource package.
  • the terminal determines that the default installation package and the at least one resource package have a data signature of the server.
  • the terminal may verify the data signature of the default installation package and whether the data signature of the at least one resource package matches the data signature of the server. If the terminal matches, the terminal may determine the default installation package. And the at least one resource package is legal. If it does not match, the terminal can return an operation error.
  • the terminal extracts the default installation package and the at least one resource package to the target installation directory according to a preset decompression rule.
  • the terminal may decompress the default installation package and the at least one resource package to the target installation directory according to the preset decompression rule.
  • the following describes a possible decompression method provided by the application, as shown in the foregoing step 1020, as shown in FIG. 6-B.
  • the tablet receives the default installation package, the medium resolution resource package, the English resource package, and the horizontal layout resource package, and the tablet decompresses the default installation package according to the figure 6A illustrated in step 1016. Decompress the default installation package of the tablet to extract the files to the corresponding folder in Table 6. For the English resource package, the tablet can extract the files in the English resource package to the String directory in Table 6. And overwrite the Chinese resource file in the default installation package, and modify the suffix of the English resource file to default.
  • the tablet can extract the horizontal layout resource file in the horizontal screen resource package to Page1. Under the directory, overwrite the front panel of the tablet to extract the vertical screen layout resource file in the default installation package, and the horizontal screen layout resource file The suffix is modified to index.ux, and for the medium resolution resource bundle, the tablet can extract the medium resolution image resource file to the drawable default directory in the Common directory in Table 6, and overwrite the high resolution in the file. Image resource file. Therefore, the decompression method of the default installation package, the medium resolution picture resource package, the English resource package, and the horizontal screen layout resource package is decompressed by the foregoing tablet computer, and even if the terminal downloads the redundant resource file, the terminal may overwrite the unnecessary during the decompression process.
  • the resource file so the terminal does not store redundant resource files. Therefore, downloading the target installation package of the fast application through the data processing method of the present application can not only reduce the download time of the terminal to download the fast application, but also reduce the fast time.
  • the installation package of the application occupies storage space on the terminal to improve the user experience.
  • the terminal runs the fast application.
  • Step 1024 is similar to step 216 in FIG. 2 above, and details are not described herein again.
  • the target installation package of the fast application acquired by the terminal is a target installation package that is determined by the server according to the device information to match the configuration of the terminal, and therefore, the target installation package is relative to the target installation package.
  • the full installation package of the fast application is small, and the time required for the terminal to download the target installation package is less than the length of time required for the terminal to download the complete installation package of the fast application, thereby reducing the download time of the terminal downloading the fast application. Thereby improving the user experience.
  • the server receives a first download request message sent by the terminal, where the first download request message is a message that the terminal requests to download the fast application, and then after the server receives the first download request message, the server directly Returning a first download resource list containing the download address of the default installation package of the fast application to the terminal, and the terminal downloads the default installation package of the quick application according to the download address of the default installation package; and when the terminal determines the default installation package by detecting When the file does not match the configuration information, the terminal may send a second download request message to the server.
  • the second download request message carries the configuration information of the terminal, and the server may use the configuration information of the terminal as the The terminal matches the corresponding at least one resource package of the fast application, where the at least one resource package includes the resource file of the fast application that matches the difference configuration information, where the difference configuration information is configuration information of the terminal and the server Set the default configuration information in the same part of the configuration information; then serve May transmit to the terminal the downloading comprises at least one second packet address resource list of resources, the terminal can download the at least one resource from a server according to the download packet address.
  • the downloading comprises at least one second packet address resource list of resources, the terminal can download the at least one resource from a server according to the download packet address.
  • the application development device generates a complete installation package for the fast application file according to a preset file placement rule.
  • the application development device sends a complete installation package of the fast application to the server.
  • step 1405 The server verifies whether the data signature of the complete installation package matches the preset account signature. If yes, step 1405 is performed; if no, step 1404 is performed.
  • the server performs other operations.
  • the server splits the complete installation package into a default installation package and at least one resource package according to a preset default configuration rule and a preset resource configuration rule.
  • the server marks the data signature of the server for the default installation package and at least one resource package.
  • the server associates the default installation package with at least one resource package.
  • Steps 1401 to 1407 are similar to the steps 1001 to 1007 in FIG. 10, and details are not described herein again. For details, refer to the description of the foregoing steps 1001 to 1007.
  • the terminal sends a first download request message to the server.
  • the user can send a first download request message to the server through the terminal, where the first download request message is a message that the terminal requests to download the fast application.
  • the terminal can initiate the method of downloading the fast application in a plurality of manners, and specifically includes an application market application, a browser link, and the like, which is not limited herein.
  • the server sends a first download resource list to the terminal.
  • the server may fill in the download address of the default installation package of the fast application into the first download resource list, and then send the first download resource list to the terminal.
  • the terminal sends a default installation package request for downloading the fast application to the server.
  • the terminal may send a default installation package request for downloading the application to the server, where the request includes a download address of the default installation package.
  • the server sends the default installation package to the terminal.
  • the server may send a default installation package of the quick application to the terminal according to the download default installation package request. 12 is taken as an example for description.
  • the default installation package of the fast application stored in the server is as shown in FIG. 12, then the server can send the default installation package to the terminal, and the default installation package includes a common file and a high file. Resolution image resource file, vertical screen layout resource file, and Chinese resource file.
  • the terminal determines that the default installation package has a data signature of the server.
  • the terminal extracts the default installation package to the target installation directory according to a preset rule.
  • Steps 1412 to 1413 are similar to steps 1015 to 1016 in FIG. 10 described above, and details are not described herein again.
  • step 1414 The terminal determines whether the file of the default installation package matches its configuration information. If yes, step 1415 is performed; if no, step 1416 is performed.
  • step 1415 is performed; if not, step 1416 is performed.
  • the tablet of FIG. 6-A the tablet is in a state of use of a vertical screen layout. Assuming that the resolution of the tablet is 720*1280 and the language used is Chinese, then as shown in FIG. 12, 6-A The tablet is consistent with the default configuration information of the server preset; another example is the mismatch, such as the tablet shown in 6-B, the language of the tablet is English, the screen resolution is 480*800, from the figure It can be seen that the current status is the horizontal screen usage. It can be seen that the configuration information of the 6-B tablet is inconsistent with the default configuration information preset by the server.
  • the terminal runs the fast application.
  • Step 1415 is similar to step 216 in FIG. 2 above, and details are not described herein again.
  • the terminal sends a second download request message to the server.
  • the terminal may obtain the configuration information, and then the terminal may send a second download request message to the server, where the second download request message includes configuration information of the terminal.
  • the configuration information may include the screen resolution information of the terminal, the currently used locale information, and the current layout usage status information, which are not limited herein.
  • the server sends a second download resource list to the terminal.
  • the server may determine, according to the configuration information of the terminal that is carried in the second download request message, the at least one resource package that matches the configuration of the terminal, where specifically, the The server may determine configuration information of the terminal that is different from the default configuration information of the preset, where the different configuration information is referred to as difference configuration information, and then the server may match the terminal according to the difference configuration information. And at least one resource package of the fast application that matches the difference configuration information, and then filling the download address of the at least one resource package into the second download resource list.
  • the difference between the configuration information of the tablet and the default configuration information of the preset is that the screen resolution of the tablet is 400*800, and the language environment used is English.
  • the layout state used is the horizontal screen layout.
  • the terminal sends, to the server, at least one resource package request for downloading the fast application.
  • the terminal may send, to the server, at least one resource package request for downloading the fast application, where the request includes a download address of the at least one resource package; it should be noted that when the terminal needs to request multiple resource packets, the terminal may send multiple requests.
  • Each request carries the download address of the corresponding resource bundle.
  • the tablet of FIG. 6-B can send a request for an English resource package, a request for a horizontal screen layout resource package, and a request for a medium resolution picture resource package to the server, where each request carries a download address of the corresponding resource package. .
  • the terminal receives at least one resource package of the fast application sent by the server.
  • the terminal receives at least one resource package of the fast application sent by the server; for example, after the tablet computer of FIG. 6-B sends a corresponding request to the server, the resource packet sent by the server may be received, as shown in FIG. Fast application medium resolution resource package, horizontal screen layout resource package and English resource package.
  • the terminal determines that the at least one resource package has a data signature of the server.
  • the terminal may determine whether the resource package has the data signature of the server. If yes, the terminal may determine that the at least one resource package is legal. If not, the terminal may return an operation error.
  • the terminal decompresses the at least one resource package to a target installation directory according to a preset rule.
  • the terminal may decompress the at least one resource package to the target installation directory.
  • decompression process refer to step 1023 in the foregoing step 1023 to decompress the at least one resource packet by decompressing the at least one resource packet. It will not be described in detail.
  • the terminal runs the fast application.
  • Step 1422 is similar to step 1024 in FIG. 2 above, and details are not described herein again.
  • the terminal obtains the default installation package.
  • the terminal may run the fast application; when the default installation package file and the terminal configuration information If the terminal does not match, the terminal may acquire at least one resource package, where the at least one resource package is a resource package that is determined by the server according to the configuration information of the terminal and matches the configuration of the terminal, and therefore, the terminal acquires
  • the target installation package includes a default installation package and at least one resource package.
  • the target installation package is smaller than the full installation package of the fast application, and the terminal downloading the target installation package may take less time than the terminal downloads the fast application. The length of time required to completely install the package, thus reducing the download time of the terminal downloading the fast application, thereby improving the user experience.
  • the receiving unit 1603, the decompressing unit 1604, the running unit 1605, the verifying unit 1606, and the determining unit are described.
  • 1607 is an optional unit.
  • One embodiment of the terminal in this embodiment of the present application includes:
  • the sending unit 1601 is configured to send, to the server, a download request message, where the download request message is a request message for downloading an application, where the download request message includes device information of the terminal, where the application stores the complete installation package in the server.
  • the download request message is a request message for downloading an application
  • the download request message includes device information of the terminal, where the application stores the complete installation package in the server.
  • At least two installation packages, the at least two installation packages being adapted to at least two differently configured terminals;
  • the obtaining unit 1602 is configured to obtain a target installation package of the application, where the target installation package is an installation package determined by the server according to the device information and matched with a configuration of the terminal, where the target installation package is the at least two One of the installation packages.
  • the terminal further includes:
  • the receiving unit 1603 is configured to receive a download response message sent by the server, where the download response message includes a download address of the target installation package of the application;
  • the obtaining unit 1602 is specifically configured to:
  • the target installation package of the application is downloaded from the server according to the download address of the target installation package of the application included in the download response information.
  • the target installation package of the application includes a main installation package of the application and at least one resource package of the application
  • the main installation package includes a general file of the application
  • at least one resource package of the application includes the server according to the
  • the device information is a resource file of the application that the terminal matches.
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application;
  • the at least one resource package includes a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen.
  • the layout resource package or the horizontal layout resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes a first level resolution picture resource package and a second level resolution picture resource package. Or a third level resolution picture resource package, the first level resolution being greater than the second level resolution, the second level resolution being greater than the third level resolution.
  • the device information includes configuration information of the terminal, and the configuration information of the terminal is consistent with the default configuration information preset by the server, and the target installation package of the application includes a default installation package of the application, and the default installation package A generic file containing the application and a resource file for the application that matches the preset default configuration information.
  • the device information includes configuration information of the terminal; the configuration information of the terminal is not completely the same as the preset configuration information, where when the configuration information of the terminal is completely different from the preset configuration information, At least one resource configuration of the preset configuration information includes at least three parameter types; the target installation package of the application includes a default installation package of the application and at least one resource package of the application, where the default installation package includes the application a common file and a resource file of the application that matches the default configuration information of the preset, the at least one resource package of the application includes a resource file of the application that matches the difference configuration information, where the difference configuration information is in the configuration information
  • the preset configuration information of the preset is not the same as the partial configuration information.
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application;
  • the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package, where
  • the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource package and a second The level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
  • the terminal further includes:
  • the decompressing unit 1604 is configured to decompress the target installation package of the application to the target installation directory according to a preset decompression rule
  • the running unit 1605 is configured to run the application.
  • the terminal further includes:
  • the verification unit 1606 is configured to verify whether the target installation package of the application has the data signature of the server;
  • the determining unit 1606 is configured to determine that the target installation package of the application is legal.
  • the application includes a fast application.
  • the sending unit 1602 sends a download request message to the server, where the download request message carries the device information of the terminal, and the acquiring unit 1602 acquires the target installation package of the fast application, where the target installation package is the target installation package.
  • the server determines, according to the device information, an installation package that is determined by the terminal to match the configuration of the terminal. Therefore, the target installation package is smaller than the complete installation package of the quick application, and the length of time required for the terminal to download the target installation package. It will be less than the length of time required for the terminal to download the full installation package of the fast application. Therefore, the download time of the terminal downloading the fast application is reduced, thereby improving the user experience.
  • the following is a schematic diagram of another structure of the terminal in the embodiment of the present application.
  • the receiving unit 1703, the decompressing unit 1704, the determining unit 1705, the running unit 1706, the verifying unit 1707, and the determining unit 1708 are optional units.
  • An embodiment of the terminal in this embodiment of the present application includes:
  • the sending unit 1701 is configured to send, to the server, a first download request message, where the first download request message is a request message for downloading an application, where the application is an application that stores at least two installation packages in the server, where the at least Two installation packages are adapted to terminals of at least two different configurations;
  • the obtaining unit 1702 is configured to obtain a default installation package of the application, where the default installation package includes a common file of the application and a resource file of the application that matches configuration information preset in the server.
  • the terminal further includes:
  • the receiving unit 1703 is configured to receive a first download response message sent by the server, where the first download response message includes a download address of a default installation package of the application;
  • the obtaining unit 1702 is specifically configured to:
  • the default installation package of the application is downloaded from the server according to the download address of the default installation package included in the first download response message.
  • the terminal further includes:
  • the decompressing unit 1704 is configured to decompress the default installation package of the application to the target installation directory according to a preset decompression rule
  • the determining unit 1705 is configured to determine whether the file of the default installation package matches the configuration information of the terminal;
  • the running unit 1706 is configured to run the application.
  • the terminal further includes:
  • the verification unit 1707 is configured to verify whether the default installation package of the application has the data signature of the server;
  • the determining unit 1708 is configured to determine a default installation package of the application.
  • the sending unit is further configured to:
  • the acquisition unit is also used to:
  • At least one resource package of the application Acquiring at least one resource package of the application, where the at least one resource package includes a resource file that is matched by the server according to the difference configuration information, where the difference configuration information is that the configuration information of the terminal is different from the preset configuration information.
  • Configuration information is that the configuration information of the terminal is different from the preset configuration information.
  • the receiving unit 1703 is further configured to:
  • the obtaining unit is specifically configured to:
  • the decompression unit 1704 is further configured to:
  • the running unit 1706 is specifically configured to run the application.
  • the verification unit 1707 is further configured to verify whether the at least one resource package has a data signature of the server;
  • the determining unit 1708 is further configured to determine that the at least one resource package is legal.
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application.
  • the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package
  • the Chinese resource package includes an English resource package, an English resource package, or another language resource package
  • the image resource package includes a first level resolution picture resource package, a second level resolution picture resource package, or a third level resolution picture resource package, and the first level The resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
  • the application includes a fast application.
  • the obtaining unit 1702 obtains a default installation package.
  • the running unit 1706 may run the quick application; when the file of the default installation package is When the configuration information of the terminal does not match, the obtaining unit 1702 may acquire at least one resource package, where the at least one resource package is a resource package that is determined by the server according to the configuration information of the terminal and matches the configuration of the terminal.
  • the target installation package obtained by the obtaining unit 1702 includes a default installation package and at least one resource package, and the target installation package is smaller than the complete installation package of the quick application, and the time required for the terminal to download the target installation package is It is less than the length of time required for the terminal to download the complete installation package of the fast application, thereby reducing the download time of the terminal downloading the fast application, thereby improving the user experience.
  • the data processing method in the embodiment of the present application is described above.
  • the second sending unit 1804, the second receiving unit 1805, the splitting unit 1806, and the registration unit are described.
  • 1807, the marking unit 1808, the verification unit 1809, and the triggering unit 1810 are optional units.
  • One embodiment of the server in this embodiment of the present application includes:
  • the first receiving unit 1801 is configured to receive a download request message sent by the terminal, where the download request message is a request message for the terminal to download an application, where the download request message includes device information of the terminal, and the application is complete in the server.
  • the installation package stores at least two installation packages, and the at least two installation packages are adapted to at least two terminals of different configurations;
  • the determining unit 1802 is configured to determine, according to the device information of the terminal, the target installation package of the application that matches the configuration of the terminal, where the target installation package is one of the at least two installation packages;
  • the first sending unit 1803 is configured to send a target installation package of the application to the terminal.
  • the server further includes:
  • the second sending unit 1804 is configured to send a download response message to the terminal, where the download response message includes a download address of the target installation package of the application, and the download response message is used by the terminal to download the target installation package of the application from the server. ;
  • the first sending unit is specifically configured to:
  • the target installation package of the application is sent to the terminal according to the download address of the target installation package.
  • the target installation package of the application includes a main installation package of the application and at least one resource package of the application
  • the main installation package includes a general file of the application
  • at least one resource package of the application includes the server according to the
  • the device information is a resource file of the application that the terminal matches.
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application;
  • the at least one resource package includes a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen.
  • the layout resource package or the horizontal layout resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes a first level resolution picture resource package and a second level resolution picture resource package. Or a third level resolution picture resource package, the first level resolution being greater than the second level resolution, the second level resolution being greater than the third level resolution.
  • the device information of the terminal includes configuration information of the terminal; the determining unit 1802 is specifically configured to:
  • the device information includes configuration information of the terminal; the configuration information of the terminal is not completely the same as the configuration information preset in the server, where the configuration information of the terminal and the preset configuration information are not at all
  • the at least one resource configuration of the preset configuration information includes at least three parameter types; the determining unit 1802 is specifically configured to:
  • a default installation package of the application and at least one resource package of the application Determining, for the terminal, a default installation package of the application and at least one resource package of the application, the default installation package including a common file of the application and the application matching the default configuration information of the preset And a resource file, where the at least one resource package of the application includes a resource file of the application that matches the difference configuration information, where the difference configuration information is part of the configuration information that is different from the preset default configuration information.
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application
  • the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package
  • the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package
  • the language resource package includes a Chinese resource package, an English resource package or other language resource package
  • the image resource package includes a first level resolution image resource package and a second The level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
  • the server further includes:
  • a second receiving unit 1805 configured to receive a complete installation package of the application sent by the application development device, where the complete installation package includes files of the at least two installation packages that are adapted to the at least two different configurations, the complete installation The package is an installation package of the application generated by the application development device according to a preset file placement rule;
  • the splitting unit 1806 is configured to split the complete installation package into multiple sub-packets according to a preset unpacking rule
  • the registration unit 1807 is configured to register the plurality of sub-packets on the server, so that the plurality of sub-packets are associated with the application.
  • the splitting unit 1806 is specifically configured to:
  • the main installation package includes a general file of the application
  • the at least two resource packages include the application A resource file other than the generic file in the full installation package.
  • the splitting unit 1806 is specifically configured to:
  • the default installation package includes a common file of the application and The resource file of the application matched by the preset default configuration information, the at least one resource package includes other resource files of the application, and the other resource files of the application are the ones of the complete installation package that match the preset default information.
  • the server further includes:
  • the marking unit 1808 is configured to sign the data of the plurality of sub-packets.
  • the server further includes:
  • the verification unit 1809 is configured to verify whether the data signature of the complete installation package matches the preset account configuration signature.
  • the trigger unit 1810 is configured to trigger the server to split the complete installation package into multiple sub-packets according to a preset unpacking parent.
  • the first receiving unit 1801 receives a download request message sent by the terminal, where the download request message is a request message for the terminal to download an application, where the application stores at least two installation packages, the at least two The installation package is adapted to the terminal of the at least two different configurations, the download request message carries the device information of the terminal, and the determining unit 1802 determines, according to the device information of the terminal, the target installation of the application that matches the configuration of the terminal. a package, the target installation package is one of the at least two installation packages, and then the first sending unit 1803 sends the target installation package of the application to the terminal, so the target installation package is smaller than the complete installation package of the application. Then, the length of time required for the terminal to download the target installation package is less than the length of time required for the terminal to download the complete installation package of the application, thereby reducing the download time of the terminal downloading the application, thereby improving the user experience.
  • each unit in the server shown in FIG. 18 can also implement the following contents:
  • the first receiving unit 1801 is configured to receive a first download request message sent by the terminal, where the first download request message is a request message for the terminal to download an application, where the application is an application that stores at least two installation packages in the server.
  • the at least two installation packages are adapted to the terminal of at least two different configurations;
  • the first sending unit 1802 is configured to send, to the terminal, a default installation package of the application, where the default installation package includes a common file of the application and a resource file of the application that matches configuration information preset in the server.
  • the second sending unit 1804 is configured to:
  • the first sending unit 1802 is specifically configured to:
  • the first receiving unit 1801 is further configured to:
  • a determining unit 1802 configured to determine, according to configuration information of the terminal, at least one resource package of the application that matches the configuration of the terminal, where the at least one resource package includes a resource file of the application that matches the difference configuration information.
  • the difference configuration information is part of the configuration information of the terminal that is different from the preset configuration information;
  • the first sending unit 1802 is configured to send the at least one resource bundle to the terminal.
  • the second sending unit 1804 is configured to:
  • the first sending unit 1802 is specifically configured to:
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application;
  • the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package
  • the Chinese resource package, the English resource package or other language resource package includes a first level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package, and the first level is resolved.
  • the rate is greater than the second level of resolution, and the second level of resolution is greater than the third level of resolution.
  • the second receiving unit 1805 is configured to:
  • the complete installation package is The installation package of the application generated by the preset file placement rule
  • the splitting unit 1806 is used to:
  • Registration unit 1807 is used to:
  • the plurality of sub-packets are registered on the server such that the plurality of sub-packets are associated with the application.
  • the splitting unit 1806 is specifically configured to:
  • the default installation package includes a common file of the application and The preset default configuration information matches the resource file of the application, and the at least one resource package includes other resource files of the application, and the other resource files of the application are in the complete installation package, except the default configuration information corresponding to the preset.
  • the application includes a fast application.
  • the first receiving unit 1801 receives a download request message sent by the terminal, where the download request message is a request message for the terminal to download an application, where the application stores at least two installation packages, the at least two The installation package is adapted to the terminal of at least two different configurations, and then the first sending unit 1803 sends the default installation package of the application to the terminal.
  • the terminal can directly run.
  • the first receiving unit 1801 may receive a second download request message sent by the terminal, where the second download request message carries configuration information of the terminal.
  • the determining unit 1802 determines, for the terminal, at least one resource packet that matches the configuration of the terminal according to the second download request message, and then the first sending unit 1803 sends the at least one resource packet to the terminal, and therefore, the terminal receives the The installation package sent by the server is smaller than the complete installation package of the application, then the terminal When the desired length of the received transmission server installation package will be less than the length of the terminal to download the complete application is required to install the package, thus reducing the terminal to download the application download time, thereby improving the user experience.
  • an embodiment of the application development device in the embodiment of the present application includes:
  • a generating unit 1901 configured to generate a complete installation package of the application, where the complete installation package of the application includes at least two installation packages, and the at least two installation packages are adapted to the terminals of the at least two configurations;
  • the sending unit 1902 is configured to send the complete installation package to the server.
  • the generating unit 1901 is specifically configured to:
  • the application's file is placed according to a preset file placement rule to obtain a complete installation package of the application.
  • the embodiment of the present invention further provides another terminal.
  • the terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the terminal is a mobile phone as an example:
  • FIG. 20 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention.
  • the mobile phone includes: a radio frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, a wireless fidelity (WiFi) module 1170, and a processor 1180. And power supply 1190 and other components.
  • RF radio frequency
  • the structure of the handset shown in FIG. 20 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
  • the RF circuit 1110 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving the downlink information of the base station, and processing it to the processor 1180; in addition, transmitting the designed uplink data to the base station.
  • RF circuit 1110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 1110 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packe
  • the memory 1120 can be used to store software programs and modules, and the processor 1180 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1120.
  • the memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 1120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 1130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 1130 may include a touch panel 1131 and other input devices 1132.
  • the touch panel 1131 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1131 or near the touch panel 1131. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 1131 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1180 is provided and can receive commands from the processor 1180 and execute them.
  • the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1130 may also include other input devices 1132.
  • other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 1140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 1140 may include a display panel 1141.
  • the display panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 1131 can cover the display panel 1141. After the touch panel 1131 detects a touch operation thereon or nearby, the touch panel 1131 transmits to the processor 1180 to determine the type of the touch event, and then the processor 1180 according to the touch event. The type provides a corresponding visual output on the display panel 1141.
  • the touch panel 1131 and the display panel 1141 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated. Realize the input and output functions of the phone.
  • the handset may also include at least one type of sensor 1150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1141 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • An audio circuit 1160, a speaker 1161, and a microphone 1162 can provide an audio interface between the user and the handset.
  • the audio circuit 1160 can transmit the converted electrical data of the received audio data to the speaker 1161, and convert it into a sound signal output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, and the audio circuit 1160 After receiving, it is converted into audio data, and then processed by the audio data output processor 1180, transmitted to the other mobile phone via the RF circuit 1110, or outputted to the memory 1120 for further processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1170, which provides users with wireless broadband Internet access.
  • FIG. 20 shows the WiFi module 1170, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 1180 is a control center for the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1120, and invoking data stored in the memory 1120, The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1180.
  • the handset also includes a power source 1190 (such as a battery) that powers the various components.
  • a power source can be logically coupled to the processor 1180 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 1180 included in the terminal further has the following functions:
  • the download request message is a request message for downloading an application
  • the download request message includes device information of the terminal
  • the application has at least two installation packages stored in the complete installation package of the server.
  • the at least two installation packages are adapted to terminals of at least two different configurations
  • target installation package is an installation package determined by the server according to the device information to match the configuration of the terminal, and the target installation package is one of the at least two installation packages.
  • the processor 1180 is further configured to:
  • the processor 1180 is specifically configured to:
  • the target installation package of the application is downloaded from the server according to the download address of the target installation package of the application included in the download response information.
  • the target installation package of the application includes a main installation package of the application and at least one resource package of the application
  • the main installation package includes a general file of the application
  • at least one resource package of the application includes The server is a resource file of the application matched by the terminal according to the device information.
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application;
  • the at least one resource package includes a layout resource package, a language resource package, and a picture resource package, and the layout resource
  • the package includes a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource package and a second level resolution.
  • the rate picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
  • the device information includes configuration information of the terminal, and the configuration information of the terminal is consistent with the default configuration information preset by the server, where the target installation package of the application includes a default installation package of the application,
  • the default installation package contains the application's generic file and the application's resource file that matches the preset's default configuration information.
  • the device information includes configuration information of the terminal; the configuration information of the terminal is not completely the same as the preset configuration information, where the configuration information of the terminal and the preset configuration information When completely different, at least one resource configuration in the preset configuration information includes at least three parameter types; the target installation package of the application includes a default installation package of the application and at least one resource package of the application, the default installation package a resource file containing the application and a resource file of the application matching the preset default configuration information, where the at least one resource package of the application includes a resource file of the application that matches the difference configuration information, and the difference configuration information is the configuration Part of the configuration information in the message that is different from the default configuration information of the preset.
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application;
  • the at least one resource package includes at least one of a layout resource package, a language resource package, and a picture resource package.
  • the resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource.
  • processor 1180 is further configured to:
  • processor 1180 is further configured to:
  • the application includes a fast application.
  • processor 1180 in the schematic diagram of the mobile phone shown in FIG. 20 can also be used to implement the following content:
  • the processor 1180 is further configured to:
  • the processor 1180 is specifically configured to:
  • the default installation package of the application is downloaded from the server according to the download address of the default installation package included in the first download response message.
  • processor 1180 is further configured to:
  • processor 1180 is further configured to:
  • processor 1180 is further configured to:
  • At least one resource package of the application Acquiring at least one resource package of the application, where the at least one resource package includes a resource file that is matched by the server according to the difference configuration information, where the difference configuration information is that the configuration information of the terminal is different from the preset configuration information.
  • Configuration information is that the configuration information of the terminal is different from the preset configuration information.
  • processor 1180 is further configured to:
  • the processor 1180 is specifically configured to:
  • processor 1180 is further configured to:
  • processor 1180 is further configured to:
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application.
  • the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package.
  • the language resource package includes a Chinese resource package, an English resource package or other language resource package
  • the picture resource package includes a first level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package. The first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
  • the application includes a fast application.
  • the present application further provides a server 2100.
  • a server 2100 Referring to FIG. 21, an embodiment of the server in the embodiment of the present application includes:
  • processor 2101 a processor 2101, a memory 2102, an input and output device 2103, and a bus 2104;
  • the processor 2101, the memory 2102, and the input/output device 2103 are respectively connected to the bus 2104, where the computer instruction is stored in the memory;
  • the input and output device 2103 is configured to receive a download request message sent by the terminal, where the download request message is a request message for the terminal to download an application, where the download request message includes device information of the terminal, and the application is completely installed in the server.
  • At least two installation packages are stored in the package, and the at least two installation packages are adapted to at least two terminals of different configurations;
  • the processor 2101 is configured to determine, according to device information of the terminal, a target installation package of the application that matches the configuration of the terminal, where the target installation package is one of the at least two installation packages;
  • the input and output device 2103 is configured to send a target installation package of the application to the terminal.
  • the input/output device 2103 is further configured to:
  • the download response message includes a download address of the target installation package of the application, and the download response message is used by the terminal to download the target installation package of the application from the server;
  • the input and output device is specifically used to:
  • the target installation package of the application is sent to the terminal according to the download address of the target installation package.
  • the target installation package of the application includes a main installation package of the application and at least one resource package of the application
  • the main installation package includes a general file of the application
  • at least one resource package of the application includes The server is a resource file of the application matched by the terminal according to the device information.
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application;
  • the at least one resource package includes a layout resource package, a language resource package, and a picture resource package, and the layout resource
  • the package includes a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource package and a second level resolution.
  • the rate picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
  • the device information of the terminal includes configuration information of the terminal; the processor 2101 is specifically configured to:
  • the device information includes configuration information of the terminal; the configuration information of the terminal is not completely the same as the configuration information preset in the server, where the configuration information of the terminal and the preset information are When the configuration information is completely different, at least one resource configuration in the preset configuration information includes at least three parameter types; the processor 2101 is specifically configured to:
  • a default installation package of the application and at least one resource package of the application Determining, for the terminal, a default installation package of the application and at least one resource package of the application, the default installation package including a common file of the application and the application matching the default configuration information of the preset And a resource file, where the at least one resource package of the application includes a resource file of the application that matches the difference configuration information, where the difference configuration information is part of the configuration information that is different from the preset default configuration information.
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application
  • the at least one resource package includes at least one of a layout resource package, a language resource package, and a picture resource package.
  • the resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource.
  • the input/output device 2103 is further configured to:
  • the complete installation package is The installation package of the application generated by the preset file placement rule
  • the processor 2101 is further configured to:
  • the plurality of sub-packets are registered on the server such that the plurality of sub-packets are associated with the application.
  • processor 2101 is specifically configured to:
  • the main installation package includes a general file of the application
  • the at least two resource packages include the application A resource file other than the generic file in the full installation package.
  • processor 2101 is specifically configured to:
  • the default installation package includes a common file of the application and The resource file of the application matched by the preset default configuration information, the at least one resource package includes other resource files of the application, and the other resource files of the application are the ones of the complete installation package that match the preset default information.
  • processor 2101 is further configured to:
  • processor 2101 is further configured to:
  • processor 2101 of the server shown in FIG. 21 can also be used to implement the following content:
  • a first download request message where the first download request message is a request message for downloading an application by the terminal, where the application is an application that stores at least two installation packages in the server, where the at least two installation packages are suitable Equipped with terminals in at least two different configurations;
  • a default installation package for the application is sent to the terminal, the default installation package containing a common file of the application and a resource file of the application matching the configuration information preset in the server.
  • the processor 2101 is further configured to:
  • the processor 2101 is specifically configured to:
  • processor 2101 is further configured to:
  • the at least one resource package of the application that matches the configuration of the terminal, where the at least one resource package includes a resource file of the application that matches the difference configuration information, where the difference configuration information is The configuration information of the terminal is different from the preset configuration information in the preset configuration information;
  • processor 2101 is further configured to:
  • the processor 2101 is specifically configured to:
  • the universal file of the application includes a general configuration file of the application and a universal resource file of the application;
  • the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package.
  • the language resource package includes a Chinese resource package, an English resource package or other language resource package
  • the picture resource package includes a first level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package. The first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
  • processor 2101 is further configured to:
  • the complete installation package is The installation package of the application generated by the preset file placement rule
  • the plurality of sub-packets are registered on the server such that the plurality of sub-packets are associated with the application.
  • processor 2101 is specifically configured to:
  • the default installation package includes a common file of the application and The preset default configuration information matches the resource file of the application, and the at least one resource package includes other resource files of the application, and the other resource files of the application are in the complete installation package, except the default configuration information corresponding to the preset.
  • the application includes a fast application.
  • the application further provides an application development device 2200.
  • an embodiment of the server in the embodiment of the present application includes:
  • processor 2201 a processor 2201, a memory 2202, an input and output device 2203, and a bus 2204;
  • the processor 2201, the memory 2202, and the input/output device 2203 are respectively connected to the bus 2204, where the computer instruction is stored in the memory;
  • the processor 2201 is configured to generate a complete installation package of the application, where the complete installation package of the application includes at least two installation packages, and the at least two installation packages are adapted to the terminals of the at least two configurations;
  • the input and output device 2203 is configured to send the complete installation package to the server.
  • the processor 2201 is specifically configured to:
  • the application's file is placed according to a preset file placement rule to obtain a complete installation package of the application.
  • the chip comprises: a processing unit and a communication unit
  • the processing unit may be, for example, a processor, for example, the communication unit may It is an input/output interface, a pin or a circuit.
  • the processing unit may execute a computer-executed instruction stored by the storage unit to cause the chip in the terminal to execute the data processing method of any of the first aspect, the second aspect, the third aspect, the fourth aspect, or the fifth aspect.
  • the storage unit is a storage unit in the chip, such as a register, a cache, etc.
  • the storage unit may also be a storage unit located outside the chip in the terminal, such as a read-only memory (read) -only memory, ROM) or other types of static storage devices, random access memory (RAM), etc. that can store static information and instructions.
  • read read-only memory
  • ROM read-only memory
  • RAM random access memory
  • the processor mentioned in any of the above may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more for controlling the above.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • wire eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be stored by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

Embodiments of the present application disclose a data processing method, a terminal, a server, and an application development device, used to reduce the download time of a terminal downloading an application, so as to improve the user experience. The method of the embodiments of the present application comprises: a terminal sending a download request message to a server, the download request message requesting an application to be downloaded, and comprising device information of the terminal, a complete installation package of the application in the server comprising at least two installation packages, and the at least two installation packages being adapted to at least two types of terminals with different configurations; and the terminal acquiring a target installation package of the application, the target installation package being an installation package that is determined by the server for the terminal according to the device information and that matches the configuration of the terminal, and the target installation package being one of the at least two installation packages.

Description

数据处理方法、终端、服务器以及应用开发设备Data processing method, terminal, server, and application development device
本申请要求于2018年5月16日提交中国国家知识产权局、申请号为201810469718.3、发明名称为“数据处理方法、终端、服务器以及应用开发设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application submitted by the State Intellectual Property Office of China, Application No. 201810469718.3, and the invention titled "Data Processing Method, Terminal, Server, and Application Development Equipment" on May 16, 2018. The citations are incorporated herein by reference.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种数据处理方法、终端、服务器以及应用开发设备。The present application relates to the field of communications technologies, and in particular, to a data processing method, a terminal, a server, and an application development device.
背景技术Background technique
在移动互联网时代,随着智能终端的发展和普及,应用程序(application,APP)也越来越多。In the era of mobile Internet, with the development and popularization of smart terminals, applications (applications, APP) are also increasing.
目前,终端下载应用主要是从下载服务器中获取该应用的安装包,终端下载完后即可使用该应用,当该应用为能够适配于不同硬件配置的终端的应用时,该安装包包含适配于不同硬件配置的终端的文件。Currently, the terminal downloading application mainly obtains an installation package of the application from the download server, and the application can be used after the terminal is downloaded. When the application is an application that can be adapted to a terminal with different hardware configurations, the installation package includes Files for terminals with different hardware configurations.
但是,当该应用的安装包当中包含适配于不同配置的终端的文件时,会导致该应用的安装包增大,增加了终端下载该快应用的下载时间。However, when the installation package of the application includes files adapted to terminals of different configurations, the installation package of the application is increased, and the download time of the terminal to download the fast application is increased.
发明内容Summary of the invention
本申请实施例提供了一种数据处理方法、终端、服务器以及应用开发设备,用于减少终端下载应用的下载时间,从而提高用户的体验。The embodiment of the present application provides a data processing method, a terminal, a server, and an application development device, which are used to reduce download time of a terminal downloading an application, thereby improving a user experience.
本申请实施例第一方面提供了一种数据处理方法,包括:A first aspect of the embodiments of the present application provides a data processing method, including:
当用户需要下载应用时,用户可以通过终端向服务器发送下载请求消息,其中,用户下载应用的页面的途径可以有多种方式,例如可以通过应用市场应用程序、浏览器链接等,再进行相应的下载请求。其中,该下载请求消息携带有该终端的设备信息,其中,用户请求下载的该应用在服务器中的完整安装包存储有至少两个安装包,该至少两个安装包适配于至少两种不同配置的终端;然后终端可以获取服务器发送的该应用的目标安装包,该目标安装包为该服务器根据该终端的设备为该终端确定的与该终端的配置相匹配的安装包,该目标安装包为该至少两个安装包中的一个。When the user needs to download the application, the user can send a download request message to the server through the terminal, where the user can download the application page in multiple ways, for example, by applying a market application, a browser link, etc., and then correspondingly Download request. The download request message carries the device information of the terminal, where the complete installation package of the application requested by the user in the server stores at least two installation packages, and the at least two installation packages are adapted to at least two different packages. a configured terminal; the terminal may obtain a target installation package of the application sent by the server, where the target installation package is an installation package determined by the server according to the device of the terminal to match the configuration of the terminal, the target installation package Is one of the at least two installation packages.
本实施例中,该终端获取到的该应用的目标安装包是该服务器根据该设备信息为该终端确定的与该终端的配置相匹配的安装包,该目标安装包为该至少两个安装包的一个,因此,该目标安装包相对于该快应用的至少两个安装包较小,那么终端下载该目标安装包所需的时长会小于该终端下载该应用的至少两个安装包所需的时长,因此,减少了终端下载应用的下载时间,从而提高用户的体验。In this embodiment, the target installation package of the application acquired by the terminal is an installation package that is determined by the server according to the device information to match the configuration of the terminal, and the target installation package is the at least two installation packages. Therefore, the target installation package is smaller than the at least two installation packages of the quick application, and the time required for the terminal to download the target installation package is less than that required by the terminal to download at least two installation packages of the application. The duration, therefore, reduces the download time of the terminal downloading the application, thereby improving the user experience.
一种可能的实现方式中,在该终端向服务器发送下载请求消息之后,在该终端获取该应用的目标安装包之前,还可以包括:终端可以接收服务器发送的下载响应消息,其中,该下载响应消息包含有该应用的目标安装包的下载地址;然后该终端获取该应用的目标安 装包可以包括:终端可以根据该下载响应消息中包含的该应用的目标安装包的下载地址从服务器下载该应用的目标安装包。在该可能的实现方式中,提供了一种具体的终端获取该应用的目标安装包的获取方式,在实际应用中,提升了方案的可实现性。In a possible implementation manner, after the terminal sends the download request message to the server, before the terminal acquires the target installation package of the application, the terminal may further include: the terminal may receive the download response message sent by the server, where the download response The message includes a download address of the target installation package of the application; then the terminal acquiring the target installation package of the application may include: the terminal may download the application from the server according to the download address of the target installation package of the application included in the download response message. Target installation package. In this possible implementation manner, a specific terminal obtains a method for acquiring a target installation package of the application, and in actual application, the achievability of the solution is improved.
另一种可能的实现方式中,该应用的目标安装包可以包括该应用的主安装包和该应用的至少一个资源包,该主安装包可以包含该应用的通用文件,该应用的至少一个资源包可以包含该服务器根据该设备信息为该终端匹配的该应用的资源文件。在该可能的实现方式,提供了一种目标安装包具体包含的内容,在实际应用当中,提供了一种具体的实施方案,提升了方案的可实现性。In another possible implementation manner, the target installation package of the application may include a main installation package of the application and at least one resource package of the application, where the main installation package may include a general file of the application, and at least one resource of the application The package may contain a resource file of the application that the server matches for the terminal according to the device information. In the possible implementation manner, a specific installation content of the target installation package is provided, and in a practical application, a specific implementation solution is provided, which improves the achievability of the solution.
另一种可能的实现方式中,该应用的通用文件可以包括该应用的通用配置文件和该应用的通用资源文件;该至少一个资源包可以包括布局资源包、语言资源包和图片资源包,该布局资源包可以包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,该第一等级分辨率大于该第二等级分辨率,该第二等级分辨率大于所述第三等级分辨率。在该可能的实现方式中,提供了一种应用本申请数据处理方法的一种实际应用场景,增加了方案的实用性和可操作性。In another possible implementation manner, the universal file of the application may include a general configuration file of the application and a universal resource file of the application; the at least one resource package may include a layout resource package, a language resource package, and a picture resource package, where The layout resource package may include a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource package, The second level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution. In this possible implementation, a practical application scenario of applying the data processing method of the present application is provided, which increases the practicability and operability of the solution.
另一种可能的实现方式中,该设备信息可以包括该终端的配置信息,且该终端的配置信息与该服务器预置的默认配置信息一致,该应用的目标安装包可以包括该应用的默认安装包,该默认安装包可以包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件。在该可能的实现方式中,提供了一种该终端接收到的目标安装包所包含的内容,在实际应用当中,提供了一种具体的实施方式,提升了方案的可实现性。In another possible implementation, the device information may include configuration information of the terminal, and the configuration information of the terminal is consistent with the default configuration information preset by the server, and the target installation package of the application may include a default installation of the application. A package that can contain the application's generic file and the application's resource file that matches the preset's default configuration information. In this possible implementation, a content included in the target installation package received by the terminal is provided, and in a practical application, a specific implementation manner is provided, which improves the achievability of the solution.
另一种可能的实现方式中,该设备信息可以包括该终端的配置信息;该终端的配置信息与该预置的配置信息不完全相同,其中,当该终端的配置信息与该预置的配置信息完全不同的时候,该预置的配置信息中的至少一个资源配置可以包含有至少三种参数类型;那么,该应用的目标安装包可以包括该应用的默认安装包和该应用的至少一个资源包,该默认安装包可以包含有该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该应用的至少一个资源包可以包含与差异配置信息匹配的该应用的资源文件,该差异配置信息可以为该配置信息中与该预置的默认配置信息不相同的部分配置信息。在该可能的实现方式中,提供了一种该终端接收到的目标安装包所包含的内容,在实际应用当中,提供了一种具体的实施方式,提升了方案的可实现性和完整性。In another possible implementation manner, the device information may include configuration information of the terminal; the configuration information of the terminal is not completely the same as the preset configuration information, where the configuration information of the terminal and the preset configuration are When the information is completely different, at least one resource configuration in the preset configuration information may include at least three parameter types; then, the target installation package of the application may include the default installation package of the application and at least one resource of the application. a package, the default installation package may include a general file of the application and a resource file of the application that matches the default configuration information of the preset, and at least one resource package of the application may include the resource of the application that matches the difference configuration information. The file, the difference configuration information may be part of the configuration information that is different from the preset default configuration information. In this possible implementation, the content included in the target installation package received by the terminal is provided, and in a practical application, a specific implementation manner is provided, which improves the achievability and integrity of the solution.
另一种可能的实现方式中,该应用的通用文件可以包括该应用的通用配置文件和该应用的通用资源文件;该至少一个资源包可以包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包可以包括竖屏布局资源包或横屏布局资源包,该语言资源包可以包括中文资源包、英文资源包或其他语言资源包,该图片资源包可以包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,该第一等级分辨率大于第二等级分辨率,第二等级分辨率大于第三等级分辨率。在该可能的实现方式中,提供了一种应用本申请数据处理方法的另一种实际应用场景,增加了方案的多样性和可操作性。In another possible implementation manner, the universal file of the application may include a general configuration file of the application and a universal resource file of the application; the at least one resource package may include a layout resource package, a language resource package, and a picture resource package. At least one resource package, the layout resource package may include a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package may include a Chinese resource package, an English resource package or other language resource package, and the picture resource package may include the first The level resolution picture resource package, the second level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution. In this possible implementation, another practical application scenario of applying the data processing method of the present application is provided, which increases the diversity and operability of the solution.
另一种可能的实现方式中,在该终端获取该应用的目标安装包之后,还可以包括:首 先,终端可以按照预设的解压规则将该应用的目标安装包解压至目标安装目录,然后,终端可以运行该应用。在该可能的实现方式中,该提供了一种具体的终端解压该应用的具体方式,提升了方案的完整性和实用性。In another possible implementation manner, after the terminal acquires the target installation package of the application, the terminal may further include: first, the terminal may decompress the target installation package of the application to the target installation directory according to a preset decompression rule, and then, The terminal can run the application. In this possible implementation, the specific manner in which the specific terminal decompresses the application is provided, and the integrity and practicability of the solution are improved.
另一种可能的实现方式中,在该终端获取该应用的目标安装包之后,在该终端可以按照预设的解压规则将该应用的目标安装包解压至目标安装目录之前,还可以包括:该终端可以验证该应用的目标安装包是否具备该服务器的数据签名,如果具备该服务器的数据签名,那么该终端可以确定该应用的目标安装包合法。在该可能的实现方式中,该提供了一种终端验证目标安装包的合法性的具体方法,通过验证目标安装包是否具备服务器的数据签名来确定该目标安装包的合法性,提升了方案的完善度。In another possible implementation manner, after the terminal obtains the target installation package of the application, before the terminal can decompress the target installation package of the application to the target installation directory according to the preset decompression rule, the method may further include: The terminal can verify whether the target installation package of the application has the data signature of the server. If the data signature of the server is available, the terminal can determine that the target installation package of the application is legal. In this possible implementation manner, the method for verifying the legitimacy of the target installation package by the terminal is provided, and the validity of the target installation package is determined by verifying whether the target installation package has the data signature of the server, thereby improving the scheme. Perfection.
另一种可能的实现方式中,该应用可以包括快应用。在该可能的实现方式中,该应用可以包括快应用,提供了一种具体的应用类型,在实际应用中,提升了方案的实用性。In another possible implementation, the application may include a fast application. In this possible implementation, the application may include a fast application, providing a specific application type, and improving the utility of the solution in practical applications.
本申请实施例第二方面提供了一种数据处理方法,包括:A second aspect of the embodiments of the present application provides a data processing method, including:
当用户需要下载应用时,用户可以通过终端向服务器发送下载请求消息,其中,用户下载应用的页面的途径可以有多种方式,例如可以通过应用市场应用程序、浏览器链接等,再进行相应的下载请求。其中,用户请求下载的该应用在服务器中的完整安装包存储有至少两个安装包,该至少两个安装包适配于至少两种不同配置的终端;然后该终端可以获取服务器发送的该应用的默认安装包,其中,该默认安装包可以包含该应用的通用文件和与该服务器中预置的配置信息匹配的该应用的资源文件。When the user needs to download the application, the user can send a download request message to the server through the terminal, where the user can download the application page in multiple ways, for example, by applying a market application, a browser link, etc., and then correspondingly Download request. The complete installation package of the application requested by the user in the server stores at least two installation packages, and the at least two installation packages are adapted to at least two terminals of different configurations; then the terminal can acquire the application sent by the server. The default installation package, where the default installation package can contain the application's generic file and the application's resource file that matches the configuration information preset in the server.
本实施例中,该终端获取到的该应用的默认安装包,该默认安装包可以包含该应用的通用文件和与该服务器中预置的配置信息匹配的该应用的资源文件,因此,该默认安装包相对于该应用的至少两个安装包较小,那么终端下载该默认安装包所需的时长会小于该终端下载该应用的至少两个安装包所需的时长,因此,减少了终端下载应用的下载时间,从而提高用户的体验。In this embodiment, the default installation package of the application obtained by the terminal may include a general file of the application and a resource file of the application matching the configuration information preset in the server, therefore, the default The installation package is smaller than the at least two installation packages of the application, and the time required for the terminal to download the default installation package is less than the length of time required for the terminal to download at least two installation packages of the application, thereby reducing terminal downloading. The download time of the app to enhance the user experience.
一种可能的实现方式中,在该终端可以向服务器发送第一下载请求消息之后,在该终端获取该服务器发送的该应用的默认安装包之前,还可以包括:终端可以接收该服务器发送的第一下载响应消息,其中,该第一下载响应消息可以包含有该应用的默认安装包的下载地址;对应地,该终端可以获取该应用的默认安装包可以包括:终端可以根据第一下载响应消息中包含的该默认安装包的下载地址从该服务器下载该应用的默认安装包。在该可能的实现方式中,提供了一种具体该终端获取默认安装包的获取方式,提升了方案的可实现性。In a possible implementation manner, after the terminal may send the first download request message to the server, before the terminal obtains the default installation package of the application sent by the server, the terminal may further include: the terminal may receive the first a download response message, wherein the first download response message may include a download address of a default installation package of the application; correspondingly, the terminal may obtain the default installation package of the application, where the terminal may include: the terminal may respond to the first download response message The download address of the default installation package included in the download from the server to download the default installation package for the application. In this possible implementation manner, a specific manner for obtaining the default installation package by the terminal is provided, which improves the implementability of the solution.
另一种可能的实现方式中,在该终端获取该应用的默认安装包之后,还可以包括:首先,终端可以按照预设的解压规则将该应用的默认安装包解压至目标安装目录中,然后,终端可以判断该默认安装包的文件与该终端的配置信息是否匹配,如果匹配,那么终端运行该应用。在该可能的实现方式中,提供了一种终端的解压方式以及判断获取到的应用能否在该终端的配置环境下运行的具体判断方法,在实际应用当中,提升了方案的可实现性和可操作性。In another possible implementation manner, after the terminal obtains the default installation package of the application, the terminal may further include: first, the terminal may extract the default installation package of the application to the target installation directory according to a preset decompression rule, and then The terminal can determine whether the file of the default installation package matches the configuration information of the terminal, and if it matches, the terminal runs the application. In this possible implementation manner, a decompression mode of the terminal and a specific judging method for judging whether the obtained application can run in the configuration environment of the terminal are provided, and in actual application, the achievability of the solution is improved. Operability.
另一种可能的实现方式中,在该终端可以根据预设的解压规则将该应用的默认安装包解压至目标安装目录之前,还可以包括:终端可以验证该应用的默认安装包是否具备服务 器的数据签名,如果具备,那么该终端可以确定该应用的默认安装包合法。在该可能的实现方式中,该提供了一种终端验证默认安装包的合法性的具体方法,通过验证默认安装包是否具备服务器的数据签名来确定该目默认安装包的合法性,提升了方案的完善度。In another possible implementation manner, before the terminal can decompress the default installation package of the application to the target installation directory according to the preset decompression rule, the terminal may further include: the terminal may verify whether the default installation package of the application has the server. Data signature, if available, the terminal can determine that the application's default installation package is legal. In this possible implementation, the method for verifying the legitimacy of the default installation package is provided by the terminal, and the validity of the default installation package is determined by verifying whether the default installation package has the data signature of the server, thereby improving the scheme. The perfection.
另一种可能的实现方式中,如果该默认安装包的文件与该终端的配置信息不匹配的话,该方法还可以包括:首先,该终端可以向该服务器发送第二下载请求消息,该第二下载请求消息可以包含该终端的配置信息;然后终端可以获取该应用的至少一个资源包,其中,该至少一个资源包可以包含该服务器根据终端的配置信息与该预置的配置信息中不相同的差异配置信息为该终端匹配的资源文件。在该可能的实现方式中,当该默认安装包的文件与该终端的配置信息不匹配时,终端可以重新向服务器请求获取需要的至少一个资源包,因此,在实际应用中,提升了方案的完整性和实用性。In another possible implementation, if the file of the default installation package does not match the configuration information of the terminal, the method may further include: first, the terminal may send a second download request message to the server, the second The download request message may include configuration information of the terminal; the terminal may obtain at least one resource package of the application, where the at least one resource package may include the server different from the preset configuration information according to the configuration information of the terminal. The difference configuration information is a resource file matched by the terminal. In this possible implementation, when the file of the default installation package does not match the configuration information of the terminal, the terminal may re-request the server to obtain at least one resource package required, so in the actual application, the solution is improved. Integrity and practicality.
另一种可能的实现方式中,在该终端向服务器发送第二下载请求消息之后,在该终端获取该应用的至少一个资源包之前,该方法还可以包括:该终端可以接收该服务器发送的第二下载响应消息,该第二下载响应消息中包含有该至少一个资源包的下载地址;对应地,该终端获取该应用的至少一个资源包可以包括:该终端可以根据该第二下载响应消息中包含的该至少一个资源包的下载地址从该服务器中下载该应用的至少一个资源包。在该可能的实现方式中,提供了一种具体的终端获取该应用的至少一个资源包的获取方式,在实际应用中,提升了方案的可实现性。In another possible implementation manner, after the terminal sends the second download request message to the server, before the terminal acquires the at least one resource package of the application, the method may further include: the terminal may receive the first The second download response message includes the download address of the at least one resource package. Correspondingly, the terminal acquiring the at least one resource package of the application may include: the terminal may be in the second download response message. The download address of the at least one resource package included includes at least one resource package of the application downloaded from the server. In this possible implementation manner, a specific terminal obtains an acquisition manner of at least one resource package of the application, and in actual applications, the implementability of the solution is improved.
另一种可能的实现方式中,在该终端获取该应用的至少一个资源包之后,该方法还可以包括:首先,该终端根据预设的解压规则将该应用的至少一个资源包解压至目标安装目录;然后,该终端运行该应用。在该可能的实现方式中,提供了一种终端解压该至少一个资源包的具体方式,在实际应用当中,提升了方案的实用性和可操作性。In another possible implementation manner, after the terminal acquires the at least one resource package of the application, the method may further include: first, the terminal decompresses at least one resource package of the application to the target installation according to a preset decompression rule. Directory; then, the terminal runs the application. In this possible implementation, a specific manner for the terminal to decompress the at least one resource package is provided, and the practicality and operability of the solution are improved in practical applications.
另一种可能的实现方式中,在该终端根据预设的解压规则将该应用的至少一个资源包解压至目标安装目录之前,该方法还可以包括:该终端可以验证该至少一个资源包是否具备该服务器的数据签名,如果具备,那么终端可以确定该至少一个资源包合法。在该可能的实现方式中,该提供了一种终端验证至少一个资源包的合法性的具体方法,通过验至少一个资源包是否具备服务器的数据签名来确定该至少一个资源包的合法性,提升了方案的完善度。In another possible implementation manner, before the terminal decompresses at least one resource package of the application to the target installation directory according to the preset decompression rule, the method may further include: the terminal may verify whether the at least one resource package has The data signature of the server, if available, the terminal can determine that the at least one resource bundle is legal. In this possible implementation, the method provides a specific method for the terminal to verify the validity of the at least one resource package, and determines whether the at least one resource package has the data signature of the server to determine the legality of the at least one resource package. The perfection of the program.
另一种可能的实现方式中,该应用的通用文件可以包括该应用的通用配置文件和该应用的通用资源文件。在该可能的实现方式中,提供了一种应用本申请数据处理方法的另一种实际应用场景,增加了方案的多样性。In another possible implementation, the universal file of the application may include a general configuration file of the application and a universal resource file of the application. In this possible implementation, another practical application scenario of applying the data processing method of the present application is provided, which increases the diversity of the solution.
另一种可能的实现方式中,该至少一个资源包可以包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包可以包括竖屏布局资源包或横屏布局资源包,该语言资源包可以包括中文资源包、英文资源包或其他语言资源包,该图片资源包可以包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,该第一等级分辨率大于第二等级分辨率,第二等级分辨率大于第三等级分辨率。在该可能的实现方式中,提供了一种应用本申请数据处理方法的另一种实际应用场景,增加了方案的多样性和可操作性。In another possible implementation manner, the at least one resource package may include at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package may include a vertical screen layout resource package or a horizontal screen layout resource. The language resource package may include a Chinese resource package, an English resource package or other language resource package, and the picture resource package may include a first level resolution picture resource package, a second level resolution picture resource package or a third level resolution. The picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution. In this possible implementation, another practical application scenario of applying the data processing method of the present application is provided, which increases the diversity and operability of the solution.
另一种可能的实现方式中,该应用可以包括快应用。在该可能的实现方式中,该应用可以包括快应用,提供了一种具体的应用类型,在实际应用中,提升了方案的实用性。In another possible implementation, the application may include a fast application. In this possible implementation, the application may include a fast application, providing a specific application type, and improving the utility of the solution in practical applications.
本申请实施例第三方面提供了一种数据处理方法,包括:A third aspect of the embodiments of the present application provides a data processing method, including:
当用户需要下载应用时,此时用户可以通过终端向服务器发送下载请求消息,该下载请求消息为该终端请求下载应用的消息,那么此时,服务器可以接收终端发送的下载请求消息,其中,该下载请求消息包含有该终端的设备信息,该终端请求下载的应用在服务器中的完整安装包中存储有至少两个安装包,该至少两个安装包适配于至少两种不同配置的终端。然后,服务器可以根据该终端的设备信息为该终端确定与该终端的配置相匹配的该应用的目标安装包,其中,该目标安装包为该至少两个安装包中的一个;最后,该服务器可以向终端发送该应用的目标安装包。When the user needs to download the application, the user can send a download request message to the server through the terminal, where the download request message is a message requesting the terminal to download the application, and then the server can receive the download request message sent by the terminal, where The download request message includes device information of the terminal, and the terminal requests the downloaded application to store at least two installation packages in the complete installation package in the server, and the at least two installation packages are adapted to at least two terminals of different configurations. Then, the server may determine, according to the device information of the terminal, the target installation package of the application that matches the configuration of the terminal, where the target installation package is one of the at least two installation packages; and finally, the server The target installation package for the application can be sent to the terminal.
本实施例中,服务器根据终端发送的下载请求消息中包含的该终端的设备信息为该终端确定与该终端的配置匹配的该应用的目标安装包,该目标安装包为该至少两个安装包中的一个,然后再将该目标安装包发送给该终端,因此,终端接收到的目标安装包相对于该应用的至少两个安装包的较小,那么终端下载该目标安装包所需的时长会小于该终端下载该至少两个安装包所需的时长,因此,减少了终端下载应用的下载时间,从而提高用户体验。In this embodiment, the server determines, according to the device information of the terminal included in the download request message sent by the terminal, the target installation package of the application that matches the configuration of the terminal, and the target installation package is the at least two installation packages. One of them, and then send the target installation package to the terminal, therefore, the target installation package received by the terminal is smaller than the at least two installation packages of the application, and the length of time required for the terminal to download the target installation package It will be less than the length of time required for the terminal to download the at least two installation packages. Therefore, the download time of the terminal downloading the application is reduced, thereby improving the user experience.
一种可能的实现方式中,在该服务器根据该终端的设备信息为该终端确定的与该终端的配置相匹配的该应用的目标安装包之后,在该服务器向该终端发送该应用的目标安装包之前,该方法还可以包括:该服务器可以向终端发送下载响应消息,该下载响应消息包含有该应用的目标安装包的下载地址,该下载响应消息可以用于该终端从服务器中下载该应用的目标安装包。那么该服务器向该终端发送该应用的目标安装包可以包括:该服务器可以根据该目标安装包的下载地址向该终端发送该应用的目标安装包。在该可能的实现方式中,提供了一种服务器向终端发送目标安装包的具体发送方式,在实际应用中,提升了方案的可实现性。In a possible implementation manner, after the server determines, according to the device information of the terminal, the target installation package of the application that matches the configuration of the terminal, the server sends the target installation of the application to the terminal. Before the packet, the method may further include: the server may send a download response message to the terminal, where the download response message includes a download address of the target installation package of the application, and the download response message may be used by the terminal to download the application from the server. Target installation package. Then, the server sending the target installation package of the application to the terminal may include: the server may send the target installation package of the application to the terminal according to the download address of the target installation package. In this possible implementation manner, a specific sending manner in which a server sends a target installation package to a terminal is provided, and in actual application, the achievability of the solution is improved.
另一种可能的实现方式中,该应用的目标安装包可以包括该应用的主安装包和该应用的至少一个资源包,该主安装包可以包含该应用的通用文件,该应用的至少一个资源包可以包含该服务器根据该设备信息为该终端匹配的该应用的资源文件。在该可能的实现方式中,提供了一种目标安装包具体可以包含的内容,在方案的实现上,提高了方案的实现性。In another possible implementation manner, the target installation package of the application may include a main installation package of the application and at least one resource package of the application, where the main installation package may include a general file of the application, and at least one resource of the application The package may contain a resource file of the application that the server matches for the terminal according to the device information. In this possible implementation, a content that the target installation package can specifically include is provided, and the implementation of the solution is improved.
另一种可能的实现方式中,该应用的通用文件可以包括该应用的配置文件和该应用的通用资源文件,该至少一个资源包可以包括布局资源包、语言资源包和图片资源包,该布局资源包可以包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,该第一等级分辨率大于该第二等级分辨率,该第二等级分辨率大于所述第三等级分辨率。在该可能的实现方式中,提供了一种应用本申请数据处理方法的一种实际应用场景,增加了方案的实用性和可操作性。In another possible implementation manner, the universal file of the application may include a configuration file of the application and a universal resource file of the application, and the at least one resource package may include a layout resource package, a language resource package, and a picture resource package, and the layout The resource package may include a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes a first level resolution picture resource package, and a second a level resolution picture resource package or a third level resolution picture resource package, the first level resolution being greater than the second level resolution, the second level resolution being greater than the third level resolution. In this possible implementation, a practical application scenario of applying the data processing method of the present application is provided, which increases the practicability and operability of the solution.
另一种可能的实现方式中,该设备信息可以包括该终端的配置信息;该服务器根据该终端的设备信息为该终端确定与该终端的配置相匹配该应用的目标安装包可以包括:首先,该服务器可以确定该配置信息与该服务器中预置的默认配置信息一致;然后,该服务器可 以向该终端确定与该终端的配置相匹配该应用的默认安装包,该默认安装包可以包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件。在该可能的实现方式中,提供了一种具体的该服务器根据终端的配置信息为该终端确定匹配的目标安装包的方法,在实际应用中,提升了方案的可实现性。In another possible implementation manner, the device information may include configuration information of the terminal, and the server determines, according to the device information of the terminal, that the target installation package of the application matches the configuration of the terminal, the first installation package of the application may include: The server may determine that the configuration information is consistent with the default configuration information preset in the server; then, the server may determine to the terminal that the configuration of the terminal matches the default installation package of the application, and the default installation package may include the application. The generic file and the resource file for the application that matches the default configuration information for the preset. In this possible implementation, a specific method for determining, by the server, a matching target installation package for the terminal according to the configuration information of the terminal is provided, and in actual application, the achievability of the solution is improved.
另一种可能的实现方式中,该设备信息可以包括该终端的配置信息;该终端的配置信息与该服务器中预置的配置信息不完全相同,其中,当该终端的配置信息与该预置的配置信息完全不相同时,该预置的配置信息中的至少一种资源配置可以包含至少三种参数类型;该服务器根据该终端的设备信息为该终端确定与该终端的配置相匹配的该应用的目标安装包可以包括:首先,该服务器可以确定该配置信息与预置的配置信息不一致,然后该服务器可以为该终端确定与该终端的配置相匹配的该应用的默认安装包和该应用的至少一个资源包,该默认安装包可以包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该应用的至少一个资源包可以包含与差异配置信息匹配的该应用的资源文件,该差异配置信息为该配置中与该预置的默认配置信息不相同的部分配置信息,在该可能的实现方式中,提供了另一种具体的该服务器根据终端的配置信息为该终端确定匹配的目标安装包的方法,在实际应用中,提升了方案的可实现性和多样性。In another possible implementation manner, the device information may include configuration information of the terminal; the configuration information of the terminal is not completely the same as the configuration information preset in the server, where the configuration information of the terminal and the preset When the configuration information is completely different, at least one resource configuration in the preset configuration information may include at least three parameter types; the server determines, according to the device information of the terminal, the terminal that matches the configuration of the terminal. The target installation package of the application may include: first, the server may determine that the configuration information is inconsistent with the preset configuration information, and then the server may determine, for the terminal, the default installation package of the application and the application that match the configuration of the terminal. At least one resource package, the default installation package may include a general file of the application and a resource file of the application matching the preset default configuration information, and at least one resource package of the application may include the matching with the difference configuration information The resource file of the application, the difference configuration information is the default configuration in the configuration with the preset The part of the configuration information that is different from the information, in the possible implementation manner, another specific method for the server to determine the matching target installation package for the terminal according to the configuration information of the terminal is provided, and in the actual application, the solution is improved. The achievability and diversity.
另一种可能的实现方式中,该应用的通用文件可以包括该应用的通用配置文件和该应用的通用资源文件,该至少一个资源包可以包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包可以包括竖屏布局资源包或横屏布局资源包,该语言资源包可以包括中文资源包、英文资源包或其他语言资源包,该图片资源包可以包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,该第一等级分辨率大于第二等级分辨率,第二等级分辨率大于第三等级分辨率。在该可能的实现方式中,提供了一种应用本申请数据处理方法的另一种实际应用场景,增加了方案的多样性和可操作性。In another possible implementation manner, the universal file of the application may include a general configuration file of the application and a universal resource file of the application, where the at least one resource package may include a layout resource package, a language resource package, and a picture resource package. At least one resource package, the layout resource package may include a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package may include a Chinese resource package, an English resource package or other language resource package, and the picture resource package may include the first The level resolution picture resource package, the second level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution. In this possible implementation, another practical application scenario of applying the data processing method of the present application is provided, which increases the diversity and operability of the solution.
另一种可能的实现方式中,在该服务器根据该终端的设备信息为该终端确定的与该终端的配置相匹配的该应用的目标安装包之前,该方法还可以包括:首先,服务器可以接收该应用开发设备发送的该应用的完整安装包,该完整安装包可以包括该至少两个安装包中适配于该至少两种不同配置的终端的文件,该完整安装包可以为该应用开发设备根据预设的文件放置规则生成该应用的安装包;然后,该服务器可以根据预设的拆包规则将完整安装包拆分为多个子包;服务器可以将该多个子包在该服务器上进行注册,以使得该多个子包与该应用关联。在该可能的实现方式中,提供了一种服务器获取应用的完整安装包的具体方法以及将该完整安装包进行相应的处理的具体过程,在实际应用中,提升了方案的完整性和可实现性。In another possible implementation manner, before the server prepares a target installation package of the application that is determined by the terminal according to the device information of the terminal, the method may further include: first, the server may receive a complete installation package of the application sent by the application development device, the complete installation package may include a file of the at least two installation packages adapted to the at least two different configurations, the complete installation package may develop a device for the application The installation package of the application is generated according to a preset file placement rule; then, the server can split the complete installation package into multiple sub-packages according to a preset unpacking rule; the server can register the multiple sub-packages on the server. So that the plurality of sub-packets are associated with the application. In this possible implementation, a specific method for the server to obtain a complete installation package of the application and a specific process for processing the complete installation package are provided, and in the actual application, the integrity and achievability of the solution are improved. Sex.
另一种可能的实现方式中,该服务器按照预设的拆包规则将该完整安装包拆分为多个子包可以包括:该服务器可以根据资源配置规则将该完整安装包拆分为该应用的主安装包和该应用的至少两个资源包,该主安装包可以包含该应用的通用文件,该至少两个资源包可以包含有该应用的完整安装包中除该通用文件以外的其他资源文件。在该可能的实现方式中,提供了一种具体的服务器拆分该应用的完整安装包的具体拆分方式,在实际应用中,提升了方案的可实现性。In another possible implementation manner, the server splitting the complete installation package into multiple sub-packets according to a preset unpacking rule may include: the server may split the complete installation package into the application according to a resource configuration rule. a main installation package and at least two resource packages of the application, the main installation package may include a general file of the application, and the at least two resource packages may include other resource files in the complete installation package of the application except the common file . In this possible implementation, a specific splitting manner is provided for a specific server to split the complete installation package of the application. In practical applications, the achievability of the solution is improved.
另一种可能的实现方式中,该服务器按照预设的拆分规则将该完整安装包拆分为多个子包可以包括:服务器可以根据预设的默认配置规则以及预设的资源配置规则将该完整安装包拆分为该应用的默认安装包和该应用的至少一个资源包,其中,该默认安装包可以包含有该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该至少一个资源包可以包含有该应用的其他资源文件,该应用的其他资源文件为该完整安装包中除该与预置的默认配置信息匹配的该应用的资源文件和该通用文件以外的资源文件。在该可能的实现方式中,提供了另一种服务器拆分该应用的完整安装包的具体拆分方式,在实际应用的过程中,提升了方案的可实现性和多样性。In another possible implementation manner, the server splitting the complete installation package into multiple sub-packets according to a preset splitting rule may include: the server may be configured according to a preset default configuration rule and a preset resource configuration rule. The full installation package is split into a default installation package of the application and at least one resource package of the application, wherein the default installation package may include a common file of the application and a resource of the application matching the default configuration information of the preset. a file, the at least one resource package may include other resource files of the application, and the other resource files of the application are the resource files of the application and the common file in the complete installation package except the preset default configuration information Resource file. In this possible implementation, another specific splitting manner of the server to split the complete installation package of the application is provided, and the achievability and diversity of the solution are improved in the actual application process.
另一种可能的实现方式中,在该服务器根据预设的拆包规则将该完整安装包拆分为多个子包之后,该服务器将该多个子包进行注册,以使得该多个子包与该应用关联之前,该方法还可以包括:服务器可以对该多个子包标记数据签名。在该可能的实现方式中,该服务器可以对多个子包进行数据签名,用于后续终端通过该数据签名来确定目标安装包的合法性,因此,提升了方案的完整性。In another possible implementation manner, after the server splits the complete installation package into multiple sub-packets according to a preset unpacking rule, the server registers the multiple sub-packets, so that the multiple sub-packets and the Before applying the association, the method may further include: the server may mark the data signature of the plurality of sub-packets. In this possible implementation, the server may perform data signature on multiple sub-packets for the subsequent terminal to determine the legitimacy of the target installation package by using the data signature, thereby improving the integrity of the solution.
另一种可能的实现方式中,在该服务器获取该应用的完整安装包之后,在该服务器按照预设拆包规则将该完整安装包拆分为多个子包之前,该方法还可以包括:服务器可以验证该完整安装包的数据签名与预置的账号配置签名是否匹配,如果匹配,那么触发该服务器根据预设的拆分规则将该完整安装包拆分为多个子包。在该可能的实现方式中,提供了一种具体的服务器判断完整安装包的合法性的具体方法,提升了方案的完整性。In another possible implementation manner, after the server obtains the complete installation package of the application, the method may further include: before the server splits the complete installation package into multiple sub-packets according to a preset unpacking rule. It can be verified whether the data signature of the complete installation package matches the preset account configuration signature. If it matches, the server is triggered to split the complete installation package into multiple sub-packets according to a preset splitting rule. In this possible implementation manner, a specific method for determining the legitimacy of a complete installation package by a specific server is provided, which improves the integrity of the solution.
另一种可能的实现方式中,该应用可以包括快应用。在该可能的实现方式中,该应用可以包括快应用,提供了一种具体的应用类型,在实际应用中,提升了方案的实用性。In another possible implementation, the application may include a fast application. In this possible implementation, the application may include a fast application, providing a specific application type, and improving the utility of the solution in practical applications.
本申请实施例第四方面提供了一种数据处理方法,包括:A fourth aspect of the embodiments of the present application provides a data processing method, including:
当用户需要请求下载应用时,用户可以通过终端向服务器发下载请求,此时服务器可以接收终端发送的第一下载请求消息,其中,该第一下载请求消息为该终端请求下载应用的请求消息,该应用在服务器中存储有至少两个安装包,该至少两个安装包适配于至少两种不同配置的终端;该服务器可以向该终端发送该应用的默认安装包,该默认安装包包含该应用的通用文件和与该服务器中预置的配置信息匹配的该应用的资源文件,该默认安装包为该至少两个安装包中的一个。When the user needs to request to download the application, the user may send a download request to the server through the terminal, and the server may receive the first download request message sent by the terminal, where the first download request message is a request message for the terminal to download the application. The application stores at least two installation packages in the server, the at least two installation packages being adapted to at least two terminals of different configurations; the server may send a default installation package of the application to the terminal, the default installation package includes the A common file of the application and a resource file of the application matching the configuration information preset in the server, the default installation package being one of the at least two installation packages.
本实施例中,服务器可以根据该终端的第一下载请求消息向该终端发送该应用的默认安装包,该默认安装包包含该应用的通用文件和与该服务器中预置的配置信息匹配的该应用的资源文件,该默认安装包为该至少两个安装包中的一个,因此,该默认安装包相对于该至少两个安装包较小,那么终端下载该默认安装包所需的时长会小于该终端下载该至少两个安装包所需的时长,因此减少了终端下载应用的时间,提高了用户体验。In this embodiment, the server may send a default installation package of the application to the terminal according to the first download request message of the terminal, where the default installation package includes the universal file of the application and the configuration information matched with the configuration information preset in the server. The resource file of the application, the default installation package is one of the at least two installation packages, so the default installation package is smaller than the at least two installation packages, and the time required for the terminal to download the default installation package is less than The length of time required for the terminal to download the at least two installation packages, thereby reducing the time for the terminal to download the application and improving the user experience.
另一种可能的实现方式中,在服务器接收终端发送的第一下载请求消息之后,在该服务器向终端发送该应用的默认安装包之前,该方法还可以包括:该服务器可以向该终端发送的第一下载响应消息,其中,该第一下载响应消息包含有该应用的默认安装包的下载地址;对应地,该服务器向该终端发送该应用的默认安装包可以包括:该服务器可以根据该第一下载响应消息中包含的该默认安装包的下载地址向该终端发送该应用的默认安装包。 在该可能的实现方式中,提供了一种服务器向终端发送默认安装包的方式,提升了方案的可实现性。In another possible implementation manner, after the server receives the first download request message sent by the terminal, before the server sends the default installation package of the application to the terminal, the method may further include: the server may send the a first download response message, where the first download response message includes a download address of a default installation package of the application; correspondingly, the server sending the default installation package of the application to the terminal may include: the server may be configured according to the first The download address of the default installation package included in the download response message sends the default installation package of the application to the terminal. In this possible implementation manner, a method for the server to send a default installation package to the terminal is provided, which improves the achievability of the solution.
另一种可能的实现方式中,在服务器向终端发送该应用的默认安装包之后,该方法还可以包括:该服务器可以接收该终端的第二下载请求消息,该第二下载请求消息包含有该终端的配置信息,然后,该服务器可以根据该终端的配置信息为该终端确定与该终端的配置相匹配的该应用的至少一个资源包,该至少一个资源包可以包含于差异配置相匹配的该应用的资源文件,该差异配置信息可以为该终端的配置信息与该预置的配置信息中不相同的部分配置信息;服务器可以向终端发送该至少一个资源包。在该可能的实现方式中,服务器可以获取第二下载请求消息,该第二下载请求消息包含有该终端的配置信息,然后,服务器可以根据该配置信息为终端匹配其需要的至少一个资源包,然后将该至少一个资源包发送至终端,因此,在当终端确定默认安装包的文件与其配置信息不匹配时,可以通过再次向服务器获取需要的至少一个资源包,因此,提升了方案的完善度。In another possible implementation manner, after the server sends the default installation package of the application to the terminal, the method may further include: the server may receive a second download request message of the terminal, where the second download request message includes the The configuration information of the terminal, and then the server may determine, according to the configuration information of the terminal, the at least one resource package of the application that matches the configuration of the terminal, the at least one resource package may be included in the difference configuration The resource file of the application, the difference configuration information may be part of the configuration information of the terminal and the configuration information of the preset configuration information; the server may send the at least one resource package to the terminal. In this possible implementation, the server may obtain a second download request message, where the second download request message includes configuration information of the terminal, and then the server may match the at least one resource package required by the terminal according to the configuration information. And then sending the at least one resource package to the terminal. Therefore, when the terminal determines that the file of the default installation package does not match the configuration information, the terminal may obtain the required at least one resource package from the server again, thereby improving the integrity of the solution. .
另一种可能的实现方式中,在该服务器根据该终端的配置信息为该终端确定与该终端的配置相匹配的该应用的至少一个资源包之后,在该服务器向该终端发送至少一个资源包之前,该方法还可以包括:该服务器可以向终端发送第二响应消息,该第二响应消息包含有该应用的至少一个资源包的下载地址;对应地,该服务器向终端发送该至少一个资源包可以包括:该服务器可以根据该第二下载响应消息中包含的该至少一个资源包的下载地址向该终端发送该至少一个资源包。在该可能的实现方式中,提供了一种具体的服务器向终端发送至少一个资源包的具体方式,提升了方案的可实现性。In another possible implementation manner, after the server determines, according to the configuration information of the terminal, the at least one resource package of the application that matches the configuration of the terminal, the server sends at least one resource package to the terminal. The method may further include: the server may send a second response message to the terminal, where the second response message includes a download address of the at least one resource package of the application; correspondingly, the server sends the at least one resource package to the terminal The method may include: the server may send the at least one resource package to the terminal according to the download address of the at least one resource package included in the second download response message. In this possible implementation manner, a specific manner in which a specific server sends at least one resource package to a terminal is provided, which improves the achievability of the solution.
另一种可能实现方式中,该应用的通用文件可以包括该应用的通用配置文件和该应用的通用资源文件。In another possible implementation, the universal file of the application may include a general configuration file of the application and a universal resource file of the application.
另一种可能实现方式中,该至少一个资源包可以包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于所述第二等级分辨率,第二等级分辨率大于第三等级分辨率。在该可能的实现方式中,提供了一种应用本申请数据处理方法的一种实际应用场景,增加了方案的多样性和可操作性。In another possible implementation manner, the at least one resource package may include at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package. The language resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes a first level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package. The first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution. In this possible implementation, a practical application scenario of applying the data processing method of the present application is provided, which increases the diversity and operability of the solution.
另一种可能实现方式中,在该服务器向该终端发送该应用的默认安装包之前,该方法还可以包括:首先,服务器接收该应用开发设备发送的该应用的完整安装包,该完整安装包可以包括该至少两个安装包中适配于该至少两种不同配置的终端的文件,该完整安装包为该应用开发设备根据预设的文件放置规则生成该应用的完整安装包;然后,该服务器可以根据预设的拆包规则将该完整安装包拆分为多个子包,该服务器将该多个子包在该服务器上进行注册,以使得该多个子包与该应用关联。在该可能的实现方式中,提供了一种服务器获取应用的完整安装包的具体方法以及将该完整安装包进行相应的处理的具体过程,在实际应用中,提升了方案的完整性和可实现性。In another possible implementation manner, before the server sends the default installation package of the application to the terminal, the method may further include: first, the server receives a complete installation package of the application sent by the application development device, and the complete installation package Included in the at least two installation packages are files adapted to the at least two differently configured terminals, the complete installation package for which the application development device generates a complete installation package of the application according to a preset file placement rule; The server may split the complete installation package into multiple sub-packets according to a preset unpacking rule, and the server registers the plurality of sub-packets on the server, so that the multiple sub-packets are associated with the application. In this possible implementation, a specific method for the server to obtain a complete installation package of the application and a specific process for processing the complete installation package are provided, and in the actual application, the integrity and achievability of the solution are improved. Sex.
另一种可能实现方式中,该服务器根据预设的拆包规则将该完整安装包拆分为多个子包可以包括:该服务器可以根据预设的默认配置规则以及预设的资源配置规则将该完整安 装包拆分为该应用的默认安装包和该应用的至少一个资源包,该默认安装包可以包含有该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该至少一个资源包包含该应用的其他资源文件,该应用的其他资源文件为该完整安装包中除该与所述预置的默认配置信息匹配的该应用的资源文件和该通用文件以外的资源文件。提供了一种服务器拆分该应用的完整安装包的具体拆分方式,在实际应用的过程中,提升了方案的可实现性。In another possible implementation manner, the server splitting the complete installation package into multiple sub-packets according to a preset unpacking rule may include: the server may be configured according to a preset default configuration rule and a preset resource configuration rule. The full installation package is split into a default installation package of the application and at least one resource package of the application, and the default installation package may include a common file of the application and a resource file of the application matching the default configuration information of the preset. The at least one resource package includes other resource files of the application, and the other resource files of the application are resources of the application and resources other than the common file in the complete installation package except the preset default configuration information. file. A specific splitting manner is provided for the server to split the complete installation package of the application, and the achievability of the solution is improved in the actual application process.
另一种可能的实现方式中,该应用可以包括快应用。在该可能的实现方式中,该应用可以包括快应用,提供了一种具体的应用类型,在实际应用中,提升了方案的实用性。In another possible implementation, the application may include a fast application. In this possible implementation, the application may include a fast application, providing a specific application type, and improving the utility of the solution in practical applications.
本申请实施例第五方面提供了一种数据处理方法,包括:A fifth aspect of the embodiments of the present application provides a data processing method, including:
在应用开发过程中,开发人员开发该应用,通过编译得到该应用的文件,然后,应用开发设备可以将该应用的文件生成完整安装包,该完整安装包包含有至少两个安装包,其中,该至少两个安装包适配于至少两种配置的终端,然后,应用开发设备可以向服务器发送该完整安装包。In the application development process, the developer develops the application, compiles the file of the application, and then the application development device can generate a complete installation package of the application file, where the complete installation package includes at least two installation packages, wherein The at least two installation packages are adapted to at least two configured terminals, and then the application development device can send the complete installation package to the server.
本实施例中,通过应用开发设备将应用的文件生成完整安装包,然后向服务器发送该完整安装包,用于后续服务器对完整安装包进行拆包后得到多个子包,然后服务器根据终端的下载请求消息中的设备信息向终端发送对应匹配的目标安装包,从而实现终端减少下载应用的时间。In this embodiment, the application development device generates a complete installation package by using the application development device, and then sends the complete installation package to the server, and the subsequent server obtains multiple sub-packages after unpacking the complete installation package, and then the server downloads according to the terminal. The device information in the request message sends a corresponding matching target installation package to the terminal, so that the terminal reduces the time for downloading the application.
一种可能的实现方式中,该应用开发设备生成该应用的完整安装包可以包括:该应用开发设备可以根据预设的文件放置规则将该应用的文件进行放置,得到该应用的完整安装包。在该可能的实现方式中,提供了一种应用开发设备生成应用的完整安装包的具体生成方式,提升了方案的可实现性。In a possible implementation manner, the application development device that generates the complete installation package of the application may include: the application development device may place the application file according to a preset file placement rule to obtain a complete installation package of the application. In this possible implementation manner, a specific generation manner of a complete installation package of an application development device generating application is provided, which improves the achievability of the solution.
本申请实施例第六方面提供了一种终端,该终端具有实现上述第一方面或第二方面终端行为的功能,该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能对应的模块。A sixth aspect of the present application provides a terminal, where the terminal has a function of implementing the behavior of the terminal in the first aspect or the second aspect, and the function may be implemented by using hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
本申请实施例第七方面提供了一种服务器,该终端具有实现上述第三方或第四方面服务器行为的功能,该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能对应的模块。A seventh aspect of the embodiments of the present application provides a server, where the terminal has a function of implementing the third-party or fourth-party server behavior, and the function may be implemented by using hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
本申请实施例第八方面提供了一种应用开发设备,该终端具有实现上述第五方面应用开发设备行为的功能,该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能对应的模块。An eighth aspect of the embodiments of the present application provides an application development device, where the terminal has a function of implementing the behavior of the application development device in the fifth aspect, and the function may be implemented by using hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
本申请实施例中第九方面提供了一种终端,该终端包括:处理器、存储器、输入输出设备以及总线;该处理器、存储器、输入输出设备分别与该总线相连,该存储器中存储有计算机指令;该处理器在执行该存储器中的计算机指令时,该存储器中存储有计算机指令;该处理器在执行该存储器中的计算机指令时,用于实现如第一方面或第二方面任意一种实现方式。A ninth aspect of the embodiments of the present application provides a terminal, where the terminal includes: a processor, a memory, an input and output device, and a bus; the processor, the memory, and the input and output device are respectively connected to the bus, where the computer stores the computer. The processor stores the computer instructions in the memory when the processor executes the computer instructions in the memory; the processor is configured to implement any one of the first aspect or the second aspect when executing the computer instructions in the memory Method to realize.
本申请实施例中第十方面提供了一种服务器,该服务器包括:处理器、存储器、输入输出设备以及总线;该处理器、存储器、输入输出设备分别与该总线相连,该存储器中存储有计算机指令;该处理器在执行该存储器中的计算机指令时,该存储器中存储有计算机 指令;该处理器在执行该存储器中的计算机指令时,用于实现如第三方面或第四方面任意一种实现方式。A tenth aspect of the embodiments of the present application provides a server, where the server includes: a processor, a memory, an input and output device, and a bus; the processor, the memory, and the input and output device are respectively connected to the bus, where the computer stores the computer. The processor stores a computer instruction in the memory when the processor executes the computer instruction in the memory; the processor is configured to implement any one of the third aspect or the fourth aspect when executing the computer instruction in the memory Method to realize.
本申请实施例中第十一方面提供了一种应用开发设备,该应用开发设备包括:处理器、存储器、输入输出设备以及总线;该处理器、存储器、输入输出设备分别与该总线相连,该存储器中存储有计算机指令;该处理器在执行该存储器中的计算机指令时,该存储器中存储有计算机指令;该处理器在执行该存储器中的计算机指令时,用于实现如第五方面任意一种实现方式。An eleventh aspect of the present application provides an application development device, where the application development device includes: a processor, a memory, an input and output device, and a bus; the processor, the memory, and the input and output device are respectively connected to the bus, where A computer instruction is stored in the memory; the processor stores a computer instruction in the memory when executing the computer instruction in the memory; and the processor is configured to implement any one of the fifth aspects when executing the computer instruction in the memory Implementation.
本申请实施例第十二方面提供了一种芯片系统,该芯片系统包括处理器,用于支持网络设备实现上述第一方面或第二方面中所涉及的功能,例如,例如发送或处理上述方法中所涉及的数据和/或信息。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存网络设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。A twelfth aspect of the embodiments of the present application provides a chip system, where the chip system includes a processor for supporting a network device to implement the functions involved in the first aspect or the second aspect, for example, transmitting or processing the foregoing method. Data and/or information involved in this. In a possible design, the chip system further includes a memory for storing necessary program instructions and data of the network device. The chip system can be composed of chips, and can also include chips and other discrete devices.
本申请实施例第十三方面提供了一种芯片系统,该芯片系统包括处理器,用于支持网络设备实现上述第三方面或第四方面中所涉及的功能,例如,例如发送或处理上述方法中所涉及的数据和/或信息。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存网络设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。A thirteenth aspect of the embodiments of the present application provides a chip system, including a processor, for supporting a network device to implement the functions involved in the third aspect or the fourth aspect, for example, sending or processing the foregoing method Data and/or information involved in this. In a possible design, the chip system further includes a memory for storing necessary program instructions and data of the network device. The chip system can be composed of chips, and can also include chips and other discrete devices.
本申请实施例第十四方面提供了一种芯片系统,该芯片系统包括处理器,用于支持网络设备实现上述第五方面中所涉及的功能,例如,例如发送或处理上述方法中所涉及的数据和/或信息。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存网络设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。A fourteenth aspect of the embodiments of the present application provides a chip system, including a processor, for supporting a network device to implement the functions involved in the foregoing fifth aspect, for example, for transmitting or processing the method involved in the foregoing method. Data and / or information. In a possible design, the chip system further includes a memory for storing necessary program instructions and data of the network device. The chip system can be composed of chips, and can also include chips and other discrete devices.
本申请实施例第十五方面提供了一种包括指令的计算机程序产品,其特征在于,当其在计算机上运行时,使得该计算机执行如第一方面、第二方面、第三方面、第四方面或第五方面中任一种的实现方式。A fifteenth aspect of the embodiments of the present application provides a computer program product comprising instructions, wherein when executed on a computer, the computer is caused to perform the first aspect, the second aspect, the third aspect, and the fourth Aspect or implementation of any of the fifth aspects.
本申请实施例第十六方面提供了一种计算机可读存储介质,其特征在于,包括指令,当该指令在计算机上运行时,使得计算机执行如第一方面、第二方面、第三方面、第四方面或第五方面中任一种实现方式。A sixteenth aspect of the embodiments of the present application provides a computer readable storage medium, comprising: instructions, when the instructions are run on a computer, causing the computer to perform the first aspect, the second aspect, the third aspect, Any one of the fourth aspect or the fifth aspect.
附图说明DRAWINGS
图1为本申请实施例中的一种场景系统框架示意图;1 is a schematic diagram of a framework of a scenario system in an embodiment of the present application;
图2为本申请实施例中数据处理方法的一个实施例示意图;2 is a schematic diagram of an embodiment of a data processing method in an embodiment of the present application;
图3为本申请实施例中数据处理方法的一种场景示意图;FIG. 3 is a schematic diagram of a scenario of a data processing method according to an embodiment of the present application;
图4为本申请实施例中数据处理方法的另一种场景示意图;4 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application;
图5-A为本申请实施例中数据处理方法的另一种场景示意图;FIG. 5-A is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application;
图5-B为本申请实施例中数据处理方法的另一种场景示意图;FIG. 5-B is a schematic diagram of another scenario of a data processing method in an embodiment of the present application;
图6-A为本申请实施例中数据处理方法的另一种场景示意图;FIG. 6 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application; FIG.
图6-B为本申请实施例中数据处理方法的另一种场景示意图;FIG. 6-B is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application;
图7为本申请实施例中数据处理方法的另一种场景示意图;FIG. 7 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application;
图8为本申请实施例中数据处理方法的另一种场景示意图;FIG. 8 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application;
图9为本申请实施例中数据处理方法的另一种场景示意图;FIG. 9 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application;
图10为本申请实施例中数据处理方法的另一个实施例示意图;FIG. 10 is a schematic diagram of another embodiment of a data processing method according to an embodiment of the present application; FIG.
图11为本申请实施例中数据处理方法的另一种场景示意图;FIG. 11 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application;
图12为本申请实施例中数据处理方法的另一种场景示意图;FIG. 12 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application;
图13为本申请实施例中数据处理方法的另一种场景示意图;FIG. 13 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application;
图14为本申请实施例中数据处理方法的另一个实施例示意图;FIG. 14 is a schematic diagram of another embodiment of a data processing method according to an embodiment of the present application;
图15为本申请实施例中数据处理方法的另一种场景示意图;FIG. 15 is a schematic diagram of another scenario of a data processing method according to an embodiment of the present application;
图16为本申请实施例中终端的一种结构示意图;16 is a schematic structural diagram of a terminal in an embodiment of the present application;
图17为本申请实施例中终端的另一种结构示意图;17 is another schematic structural diagram of a terminal in an embodiment of the present application;
图18为本申请实施例中服务器的一种结构示意图;18 is a schematic structural diagram of a server in an embodiment of the present application;
图19为本申请实施例中应用开发设备的一种结构示意图;FIG. 19 is a schematic structural diagram of an application development device according to an embodiment of the present application;
图20为本申请实施例中终端的另一种结构示意图;20 is another schematic structural diagram of a terminal in an embodiment of the present application;
图21为本申请实施例中服务器的另一种结构示意图;21 is another schematic structural diagram of a server in an embodiment of the present application;
图22为本申请实施例中应用开发设备的另一种结构示意图。FIG. 22 is another schematic structural diagram of an application development device in an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种数据处理方法、终端、服务器以及应用开发设备,用于减少终端下载应用的下载时间,从而提高用户的体验。The embodiment of the present application provides a data processing method, a terminal, a server, and an application development device, which are used to reduce download time of a terminal downloading an application, thereby improving a user experience.
请参阅图1,图1为本申请实施例提供的一种应用场景系统框架示意图,其中,终端与服务器建立通信连接,该终端可以为手机、电脑、电视或者平板电脑等,具体此处不做限定,终端与该服务器建立通信连接之后,可以向服务器请求下载应用,然后终端通过服务器反馈的下载地址将该应用的安装包。在现有技术中,终端下载应用的安装包会将该应用的完整安装包下载下来,当该应用的完整安装包包含适配于不同配置的终端的文件时,例如,该应用的安装包当中存在多种分辨率的图片、多种语言的文件等,那么该完整安装包会增大,导致该终端下载该应用的完整安装包的下载时间增长。Referring to FIG. 1 , FIG. 1 is a schematic diagram of a system framework of an application scenario according to an embodiment of the present disclosure, where a terminal establishes a communication connection with a server, and the terminal may be a mobile phone, a computer, a television, or a tablet computer. After the terminal establishes a communication connection with the server, the terminal may request to download the application from the server, and then the terminal installs the application package by using the download address fed back by the server. In the prior art, the installation package of the terminal downloading application downloads the complete installation package of the application, and when the complete installation package of the application includes files adapted to terminals of different configurations, for example, the installation package of the application If there are multiple resolution pictures, files in multiple languages, etc., the full installation package will increase, resulting in an increase in the download time of the complete installation package in which the terminal downloads the application.
有鉴于此,本申请实施例提出一种数据处理方法以减小终端下载该应用的下载时间,终端与服务器建立通信连接,然后根据用户的需求向服务器发送下载请求消息,该下载请求消息为该终端请求下载应用的消息,且该下载请求消息携带有该终端的设备信息;服务器用于接收终端发送的下载请求消息以及根据该终端的设备信息向终端发送与该终端的配置相匹配的该应用的目标安装包;另外,该服务器获取到该应用的完整安装包之后,可以根据预设的拆包规则将该完整安装包拆分为多个子包,然后将该多个子包关联注册在该服务器中,在终端请求该应用的安装包时,根据该终端的设备信息来为该终端确定与该终端的配置相匹配的安装包,其中,该终端的配置可以包括终端的硬件配置,还可以包括该终端的软件配置,其中,硬件配置可以包括终端的类型,例如,手机、电视或者电脑等,终端的屏幕分辨率、终端使用的语言系统、终端当前使用的布局状态等,而终端的软件配置 可以包括终端使用的操作系统,例如视窗操作windows系统或者网际操作IOS系统等,本申请对此不做限定。In view of this, the embodiment of the present application provides a data processing method to reduce the download time of the terminal downloading the application, the terminal establishes a communication connection with the server, and then sends a download request message to the server according to the user's request, and the download request message is the The terminal requests to download the message of the application, and the download request message carries the device information of the terminal; the server is configured to receive the download request message sent by the terminal, and send the application that matches the configuration of the terminal to the terminal according to the device information of the terminal. Target installation package; in addition, after the server obtains the complete installation package of the application, the complete installation package can be split into multiple sub-packages according to a preset unpacking rule, and then the multiple sub-packages are associated with the server. When the terminal requests the installation package of the application, the terminal determines the installation package that matches the configuration of the terminal according to the device information of the terminal, where the configuration of the terminal may include the hardware configuration of the terminal, and may also include Software configuration of the terminal, wherein the hardware configuration may include the type of the terminal For example, a mobile phone, a television or a computer, a screen resolution of the terminal, a language system used by the terminal, a layout state currently used by the terminal, etc., and the software configuration of the terminal may include an operating system used by the terminal, such as a window operation window system or an internet operation. IOS system, etc., this application does not limit this.
需要说明的是,该服务器可以是具备下载服务功能和拆包功能的服务器,在实际应用中,为终端提供服务的服务器也可以是两个服务器,其中,一个为提供下载服务的下载服务器,另一个为提供拆包功能的拆包服务器,该拆包服务器将应用的完整安装包拆分为多个子包之后,再将该多个子包发送至下载服务器中,下载服务器再将该多个子包进行关联注册,并向终端提供下载应用的功能,本申请对此不做限定,在后续的实施例中,仅以该服务器具备下载服务功能和拆包功能的服务器为例进行说明。It should be noted that the server may be a server having a download service function and an unpacking function. In actual applications, the server serving the terminal may also be two servers, one of which is a download server that provides a download service, and the other An unpacking server that provides an unpacking function, the unpacking server splits the application's complete installation package into multiple sub-packets, and then sends the plurality of sub-packets to the download server, and the download server performs the plurality of sub-packages. The function of downloading the application is provided to the terminal, and the function of downloading the application is provided to the terminal. This application is not limited in this application. In the following embodiments, only the server having the download service function and the unpacking function of the server is taken as an example for description.
本申请实施例中,该终端请求下载的该应用可以为本地应用,也可以为快应用,还可以为其他类型的应用,本申请对此不做限定,在后续的实施例中,仅以终端请求下载快应用为例进行说明。In the embodiment of the present application, the application that the terminal requests to download may be a local application, a fast application, or another type of application, which is not limited in this application. In the following embodiments, only the terminal is used. Request to download the fast application as an example.
本申请实施例中,应用开发设备生成该快应用的完整安装包可以是应用开发设备根据预设的文件放置规则将该快应用的文件生成该快应用的完整安装包,还可以是应用开发设备通过其他的方式生成该快应用的完整安装包,本申请对此不做限定,在后续的实施例中,仅以该应用开发设备根据预设的文件放置规则将该快应用的文件生成该快应用的完整安装包为例进行说明。In the embodiment of the present application, the application development device generates a complete installation package of the fast application, and the application development device may generate the complete application package of the fast application according to a preset file placement rule, or may be an application development device. The complete installation package of the fast application is generated in other manners, which is not limited in this application. In the following embodiments, only the application development device generates the fast application file according to a preset file placement rule. The complete installation package of the application is described as an example.
本申请实施例中,服务器接收到终端发送的下载请求消息之后,可以是服务器根据该下载请求消息为该终端确定与该终端的配置相匹配的该快应用的目标安装包,再将该目标安装包直接发送至该终端;也可以是该服务器根据该下载请求消息为该终端确定与该终端的配置相匹配的快应用的目标安装包,然后向该终端发送该下载响应消息,该下载响应消息携带有该目标安装包的下载地址,终端再根据该下载地址从服务器中下载该目标安装包,具体此处不做限定,在后续的实施例中,仅以该服务器发送下载响应消息至终端为例进行说明。In the embodiment of the present application, after receiving the download request message sent by the terminal, the server may determine, according to the download request message, the target installation package of the fast application that matches the configuration of the terminal, and then install the target. The packet is directly sent to the terminal; or the server determines, according to the download request message, a target installation package of the fast application that matches the configuration of the terminal, and then sends the download response message to the terminal, the download response message The downloading address of the target installation package is carried, and the terminal downloads the target installation package from the server according to the download address, which is not limited herein. In the following embodiment, only the server sends a download response message to the terminal. The example is explained.
本申请实施例中,该下载响应消息中携带的该目标安装包的下载地址可以是以下载资源列表的形式,该列表中填写有该目标安装包的下载地址,还可以是以其他形式携带,具体此处不做限定,在后续实施例中,仅以该服务器发送该下载资源列表至该终端为例进行说明。In the embodiment of the present application, the download address of the target installation package carried in the download response message may be in the form of a download resource list, where the download address of the target installation package is filled in, and may be carried in other forms. Specifically, it is not limited here. In the following embodiments, only the server sends the download resource list to the terminal as an example for description.
本申请实施例中,终端的设备信息可以包括配置信息,也可以包括硬件信息或者更多其他相关的信息,本申请对此不做限定,在后续的实施例中,仅以该终端的设备信息包括配置信息和硬件信息为例进行说明。In this embodiment, the device information of the terminal may include configuration information, and may also include hardware information or other related information, which is not limited in this application. In the following embodiments, only the device information of the terminal is used. This includes an example of configuration information and hardware information.
本申请实施例中,服务器在获取到该快应用的完整安装包时,可以对该完整安装包的数据签名进行验证,确定该完整安装包的数据签名与预置的账号签名是否匹配,若匹配,服务器才进入下一步的执行操作,若不匹配,则服务器返回错误;服务器也可以为不需要验证,直接进入下一步的执行操作,具体此处不做限定,在后续的实施例中,仅以该服务器验证该完整安装包的数据签名与预置的账号签名是否匹配,再确定是否进入下一步的操作为例进行说明。通过该服务器验证该快应用的完整安装包的数据签名,可以提高服务器侧的安装包的安全性维护,一定程度上防止恶意用户将携带有病毒的安装包上传至服务器中。In the embodiment of the present application, when the server obtains the complete installation package of the fast application, the server may verify the data signature of the complete installation package, and determine whether the data signature of the complete installation package matches the preset account signature. The server enters the next execution operation. If the server does not match, the server returns an error. The server can also perform the next operation without the need for verification. The specific example is not limited herein. In the following embodiments, only The server verifies whether the data signature of the complete installation package matches the preset account signature, and then determines whether to proceed to the next step as an example for description. By verifying the data signature of the complete installation package of the fast application, the server can improve the security maintenance of the installation package on the server side, and prevent malicious users from uploading the installation package carrying the virus to the server to some extent.
在本申请实施例中,终端在获取到服务器为其匹配的该快应用的目标安装包之后,终端可以验证该快应用的目标安装包是否携带有该服务器的数据签名,也可以直接解压该目标安装包,在后续的实施例中,仅以该终端验证该快应用的目标安装包是否携带有该服务器的数据签名,再解压该目标安装包为例进行说明,通过终端验证该目标安装包来提高终端获取到的安装包的安全性。In the embodiment of the present application, after the terminal obtains the target installation package of the fast application that the server matches, the terminal may verify whether the target installation package of the fast application carries the data signature of the server, or directly decompress the target. The installation package, in the following embodiment, only the terminal verifies whether the target installation package of the fast application carries the data signature of the server, and then decompresses the target installation package as an example, and the terminal installs the target installation package. Improve the security of the installation package obtained by the terminal.
本申请实施例中,服务器在前期获取到该快应用的完整安装包时,可以根据预设的拆包规则将该完整安装包拆分为多个子包,用于后续为终端确定与该终端的配置相匹配的该快应用的安装包。在本申请实施例中,服务器根据预设的拆包规则将该快应用的完整安装包的拆分方式有多种,例如,服务器可以根据资源配置类型将该完整安装包拆分为主安装包和多个资源包,还可以根据不同的默认配置组合将该完整安装包拆分为多种配置组合的安装包和多个资源包,其中,该不同配置的组合可以是一组或者多组,例如,第一配置组合可以为高分辨率、中文以及横屏布局等,第二配置组合为中分辨率、英文以及竖屏布局等,在后续仅以服务器以预置的一组默认配置信息拆分出一个默认安装包为例进行说明。因此,服务器根据预设的拆包规则将该快应用的完整安装包的拆分方式有多种,下面通过举例说明:In the embodiment of the present application, when the server obtains the complete installation package of the fast application, the server may split the complete installation package into multiple sub-packets according to a preset unpacking rule, and subsequently determine the terminal for the terminal. Configure the matching package for this fast app. In the embodiment of the present application, the server splits the complete installation package of the fast application according to a preset unpacking rule. For example, the server may split the complete installation package into a main installation package according to the resource configuration type. And a plurality of resource packages, and the complete installation package may be split into a plurality of configuration combinations and a plurality of resource packages according to different default configuration combinations, wherein the combination of the different configurations may be one or more groups. For example, the first configuration combination may be a high resolution, a Chinese, a horizontal screen layout, etc., and the second configuration is combined into a medium resolution, an English, and a vertical screen layout, etc., and is subsequently disassembled by the server with a preset set of default configuration information. Take a default installation package as an example. Therefore, the server splits the complete installation package of the fast application according to the preset unpacking rules. The following examples are illustrated:
方式一:服务器可以根据资源配置规则将该快应用的完整安装包拆分为该快应用的主安装包和该快应用的至少两个资源包,其中,该主安装包包括该快应用的通用配置文件,当该快应用的完整安装包中包含有通用资源文件时,那么该主安装包还包括该通用资源文件,则该至少两个资源包包括该快应用的完整安装包中除该通用资源文件以外的其他资源文件。Manner 1: The server may split the complete installation package of the quick application into at least two resource packages of the quick application and at least two resource packages of the fast application according to the resource configuration rule, where the main installation package includes the universal application package a configuration file, when the full installation package of the quick application includes a universal resource file, then the main installation package further includes the universal resource file, and the at least two resource packages include the general installation package of the fast application except the universal Resource files other than resource files.
方式二:服务器根据预设的默认配置规则以及预设的资源配置规则将该快应用的完整安装包拆分为该快应用的默认安装包和至少一个资源包,该默认安装包包括该快应用的通用配置文件以及与预置的默认配置信息匹配的该快应用的资源文件,当该快应用的完整安装包中包括通用资源文件时,该默认安装包还包括该快应用的通用资源文件,则该至少一个资源包包括除该通用资源文件以外的其他资源文件。Manner 2: The server splits the full installation package of the quick application into the default installation package of the fast application and at least one resource package according to a preset default configuration rule and a preset resource configuration rule, and the default installation package includes the fast application. a general configuration file and a resource file of the fast application matching the preset default configuration information. When the full installation package of the quick application includes a universal resource file, the default installation package further includes a universal resource file of the fast application. Then the at least one resource package includes a resource file other than the universal resource file.
下面结合具体的实施例对上述各种方式进行说明。The above various modes will be described below in conjunction with specific embodiments.
请参阅图2,介绍本申请实施例通过方式一数据处理的方法实施例,且在本实施例中,服务器根据资源配置规则将该快应用的完整安装包拆分为该快应用的主安装包和至少两个资源包。Referring to FIG. 2, an embodiment of a data processing method in the embodiment of the present application is described. In this embodiment, the server splits the complete installation package of the fast application into the main installation package of the fast application according to the resource configuration rule. And at least two resource bundles.
201、应用开发设备根据预设的文件放置规则将该快应用的文件生成该快应用的完整安装包。201. The application development device generates the complete application package of the fast application according to a preset file placement rule.
开发人员完成快应用的开发之后,应用开发设备可以将该快应用的文件生成该快应用的完整安装包,该完整安装包的文件为应用开发设备按照预设的文件放置规则进行放置在该完整安装包中的对应的目录文件夹中,其中,当该快应用的完整安装包当中包含适配于不同配置的终端的文件。下面通过表1进行举例说明该安装包的一种基于该预设的文件放置规则的结构,需要说明的是,表1仅仅是一种本申请实施例提供的一种完整安装包文件放置结构,在实际应用当中,可以是其他结构类型的完整安装包,本申请对此不做限定。示例性的,如表1所示,该快应用各种类型的文件放置在表1中对应的文件夹,该快应用 的项目依赖类库放置在该依赖类库node_modules文件夹中,项目源文件夹放置于源src文件夹中,该快应用的公用的资源文件和组件文件放置在公共common文件夹,drawable为默认图片目录,放置于common文件夹,在终端安装该快应用时,图片资源文件会默认解压至drawable文件夹中。其中,示例性的,该快应用的完整安装包中包含适配于三种分辨率的图片资源文件,低分辨率图片资源文件匹配于分辨率为480*800以下的屏幕,中分辨率图片资源文件匹配于分辨率为480*800的屏幕,高分辨率图片资源文件匹配于分辨率为720*1280的屏幕,这三种类型分辨率的图片资源文件都放置于该drawable文件夹中;另外,该快应用完整安装包还包括横竖屏布局的资源文件,Page1为页面目录,该横竖屏的分类文件放置于该Page1文件夹中,其中,该Page1文件夹下包括index.ux页面文件夹,用于后续横竖屏布局资源文件解压时默认放置于该index.ux页面文件夹,横屏布局资源文件为以后缀为index_land.ux的文件,竖屏布局资源文件为以后缀为index_port.ux文件,这两种类型的图片都放置于该index.ux页面文件夹中;该快应用的完整安装包中包括多种语言的文件,其中,语言文件放置于字符串String的语言资源目录下,完整安装包中的中文语言资源文件为以后缀为zh_cn文件,英语语言文件为以后缀为en_us的文件;该快应用的项目配置文件是以后缀为manifest.json的文件,该快应用的项目需要的各种模块以及配置信息是以后缀为package.json的文件。After the developer completes the development of the fast application, the application development device can generate a complete installation package of the fast application file, and the file of the complete installation package is placed on the application development device according to a preset file placement rule. The corresponding directory folder in the installation package, wherein the full installation package of the quick application contains files adapted to terminals of different configurations. The structure of the installation package based on the preset file placement rule is exemplified in the following Table 1. It should be noted that Table 1 is only a complete installation package file placement structure provided by the embodiment of the present application. In the actual application, it may be a complete installation package of other structure types, which is not limited in this application. Exemplarily, as shown in Table 1, the fast application various types of files are placed in the corresponding folder in Table 1, the fast application project dependent class library is placed in the dependency class library node_modules folder, the project source file The folder is placed in the source src folder, the public resource file and component file of the fast application are placed in the common common folder, the drawable is the default image directory, and is placed in the common folder, and the image resource file is installed when the terminal installs the fast application. It will be extracted to the drawable folder by default. Exemplarily, the full installation package of the fast application includes a picture resource file adapted to three resolutions, and the low resolution picture resource file is matched to a screen with a resolution of 480*800 or less, and the medium resolution picture resource The file matches the screen with a resolution of 480*800, and the high-resolution image resource file matches the screen with a resolution of 720*1280. The image resource files of these three types of resolutions are placed in the drawable folder; The quick application complete installation package further includes a resource file of a horizontal and vertical screen layout, and Page1 is a page directory, and the horizontal and vertical screen classification files are placed in the Page1 folder, wherein the Page1 folder includes an index.ux page folder, When the subsequent horizontal and vertical screen layout resource files are decompressed, they are placed in the index.ux page folder by default. The horizontal screen layout resource file is a file with the suffix index_land.ux, and the vertical screen layout resource file is suffixed with the index_port.ux file. Both types of images are placed in the index.ux page folder; the full installation package of the quick application includes files in multiple languages, of which the language Placed in the language resource directory of the string String, the Chinese language resource file in the complete installation package is the suffix zh_cn file, the English language file is the file with the suffix en_us; the project profile of the fast application is the suffix manifest The .json file, the various modules required for the fast application project, and the configuration information are files suffixed with package.json.
需要说明的是,对于不同的快应用,其适配于多种不同配置的终端的文件都不一致,例如,对于表1中的快应用的完整安装包中包含不同分辨率的图片资源文件,且分为高中低三种分辨率,实际应用当中,该快应用在开发阶段还可以根据实际需求分为更细致的分辨率,例如,高分辨率中可以细分为高一档分辨率、高二档分辨率等;对于语言资源文件,表1中分为中文资源文件和英文资源文件,在实际应用中,可以分为更多类型的语言,例如西班牙语资源文件、德语资源文件等;其次,表1中的文件的后缀为根据快应用的需求所设定的,在实际应用中,可以根据实际需求变更文件夹的命名等,表1仅仅是一种举例说明。It should be noted that, for different fast applications, the files of the terminals adapted to multiple different configurations are inconsistent. For example, the full installation package of the fast application in Table 1 includes image resource files of different resolutions, and It is divided into three resolutions: high, medium and low. In practical applications, the fast application can be divided into more detailed resolutions according to actual needs during the development stage. For example, high resolution can be subdivided into high first resolution and high second. Resolution; etc.; for language resource files, Table 1 is divided into Chinese resource files and English resource files. In practical applications, it can be divided into more types of languages, such as Spanish resource files, German resource files, etc. The suffix of the file in 1 is set according to the requirements of the fast application. In practical applications, the naming of the folder can be changed according to actual needs, and Table 1 is merely an example.
表1Table 1
Figure PCTCN2019086534-appb-000001
Figure PCTCN2019086534-appb-000001
Figure PCTCN2019086534-appb-000002
Figure PCTCN2019086534-appb-000002
202、应用开发设备向服务器发送该快应用的完整安装包。202. The application development device sends a complete installation package of the fast application to the server.
应用开发设备将该快应用的完整安装包生成之后,可以向服务器发送该快应用的完整安装包。After the application development device generates the complete installation package of the quick application, the complete installation package of the quick application can be sent to the server.
203、服务器验证该完整安装包的数据签名与预置的账号签名是否匹配,若是,则执行步骤205,若否,则执行步骤204。203. The server verifies whether the data signature of the complete installation package matches the preset account signature. If yes, step 205 is performed, and if no, step 204 is performed.
服务器获取到该快应用的完整安装包之后,可以将验证该快应用的完整安装包的数据签名与预置的账号签名是否匹配,其中,该预置的账号签名为该开发人员在该服务器中注册的账号对应匹配的数据签名,如果匹配,那么执行步骤205,如果不匹配,那么执行步骤204。After obtaining the complete installation package of the fast application, the server may verify whether the data signature of the complete installation package of the quick application matches the preset account signature, wherein the preset account signature is the developer in the server. The registered account corresponds to the matching data signature. If yes, step 205 is performed. If not, step 204 is performed.
需要说明的是,在开发人员在开发该快应用时,会经过开发阶段,编译生成该快应用的文件,然后会对该文件进行打包和签名等过程,因此,在该快应用的完整安装包当中携带有该开发人员的数据签名。It should be noted that when the developer develops the fast application, it will go through the development phase, compile and generate the file of the fast application, and then package and sign the file, so the complete installation package of the fast application. It carries the developer's data signature.
204、服务器执行其他操作。204. The server performs other operations.
服务器通过验证确定该完整安装包的数据签名与该预置的账号签名不匹配,那么服务器可以执行其他操作,具体可以是该服务器向用户返回提示错误的信息,或者该服务器可以重新再验证一次该完整安装包,再确定是否匹配,本申请对此不做限定。After the server determines that the data signature of the complete installation package does not match the preset account signature, the server may perform other operations, specifically, the server may return information indicating the error to the user, or the server may re-verify the information. Complete the installation package and determine whether it matches. This application does not limit this.
205、服务器根据资源配置规则将该完整安装包拆分为主安装包和至少两个资源包。205. The server splits the complete installation package into a main installation package and at least two resource packages according to resource configuration rules.
服务器获取到该快应用的完整安装包,可以根据资源配置规则将该完整安装包拆分为主安装包和至少两个资源包。例如,如表1中所示的快应用的完整安装包结构,经过该服务器进行拆分后得到多个子包,具体可以参阅图3,该快应用完整安装包通过服务器根据资源配置规则拆分得到一个主安装包、高分辨率图片资源包、中分辨率图片资源包、低分辨率图片资源包、竖屏页面布局资源包、横屏页面布局资源包、中文资源包以及英文资源包,其中,主安装包所包含的文件如图4所示,由于该快应用包含通用资源文件,所以该主安装包包括通用配置文件和通用资源文件。The server obtains the complete installation package of the fast application, and can split the complete installation package into a main installation package and at least two resource packages according to resource configuration rules. For example, the complete installation package structure of the fast application as shown in Table 1 is obtained by splitting the server to obtain a plurality of sub-packages. For details, refer to FIG. 3, the fast application complete installation package is obtained by the server according to the resource configuration rule. A main installation package, a high resolution picture resource package, a medium resolution picture resource package, a low resolution picture resource package, a vertical screen page layout resource package, a horizontal screen page layout resource package, a Chinese resource package, and an English resource package, wherein The files included in the main installation package are shown in Figure 4. Since the quick application contains a common resource file, the main installation package includes a common configuration file and a general resource file.
下面通过举例说明的方式来说明服务器拆分得到快应用的多个子包的文件放置状态,首先,服务器拆分得到的主安装包中的文件放置规则如表2所示,按照表2所示将对应的文件放置于对应的文件夹当中。The following is an example to illustrate the file placement status of multiple sub-packets that are quickly applied by the server. First, the file placement rules in the main installation package obtained by the server split are shown in Table 2, as shown in Table 2. The corresponding file is placed in the corresponding folder.
表2Table 2
Figure PCTCN2019086534-appb-000003
Figure PCTCN2019086534-appb-000003
例如,服务器拆分得到的高分辨率图片资源包的文件放置状态具体如表3所示,高分辨率的图片资源放置于common文件夹下,Page1页面使用的高分辨率图片文件放置于Page1页面目录下。For example, the file placement status of the high-resolution image resource package obtained by the server split is as shown in Table 3. The high-resolution image resource is placed in the common folder, and the high-resolution image file used on the Page1 page is placed on the Page1 page. Under contents.
表3table 3
Figure PCTCN2019086534-appb-000004
Figure PCTCN2019086534-appb-000004
Figure PCTCN2019086534-appb-000005
Figure PCTCN2019086534-appb-000005
另外,例如,竖屏布局资源包的文件放置状态如表4所示,Page1页面使用的竖屏高分辨率图片资源放置于Page1页面目录下;中文资源包的文件放置状态如表5所示,中文语言文件放置于Page1页面目录下的String语言资源目录下。In addition, for example, the file placement state of the vertical screen layout resource package is as shown in Table 4, and the vertical screen high-resolution image resource used by the Page1 page is placed in the Page1 page directory; the file placement state of the Chinese resource package is as shown in Table 5. Chinese language files are placed in the String language resource directory under the Page1 page directory.
表4Table 4
Figure PCTCN2019086534-appb-000006
Figure PCTCN2019086534-appb-000006
表5table 5
Figure PCTCN2019086534-appb-000007
Figure PCTCN2019086534-appb-000007
206、服务器对该主安装包和至少两个资源包标记该服务器的数据签名。206. The server marks the data signature of the server for the primary installation package and at least two resource packages.
服务器拆分该完整安装包得到主安装包和至少两个资源包,该服务器可以对该主安装包和至少两个资源包标记该服务器的数据签名,通过该服务器的数据签名,后续终端在获取到对应的安装包时,可以通过验证该数据签名来确定该安装包为该服务器经过处理的安装包,从而提高了终端获取到的安装包的安全性和完整性,一定程序上减少由于恶意用户上传携带有病毒等的安装包。The server splits the complete installation package to obtain a main installation package and at least two resource packages, and the server can mark the data signature of the server for the main installation package and at least two resource packages, and the subsequent terminal is obtained by the data signature of the server. When the corresponding installation package is verified, the installation package can be determined as the installation package processed by the server by verifying the data signature, thereby improving the security and integrity of the installation package acquired by the terminal, and reducing the number of programs due to malicious users. Upload an installation package that contains a virus, etc.
207、服务器将该主安装包和至少两个资源包进行关联注册。207. The server associates the main installation package with at least two resource packages.
服务器可以将该主安装包和至少两个资源包在服务器中进行关联注册,以使得该主安装包和至少两个资源包与该快应用关联;具体可以是服务器在其预置有该快应用的安装包列表,将拆分得到的每个该快应用的相关安装包的下载地址填写在该列表中,服务器通过该列表可以确定该主安装包和至少两个资源包为该快应用的安装包,从而实现该主安装包和至少两个资源包与快应用进行关联。The server may associate the main installation package and the at least two resource packages in the server, so that the main installation package and the at least two resource packages are associated with the quick application; specifically, the server may preset the fast application in the server. a list of installation packages, the download address of each relevant installation package of the quick application obtained by the split is filled in the list, and the server can determine that the main installation package and at least two resource packages are installed for the fast application through the list. Package, thus implementing the main installation package and at least two resource bundles associated with the quick application.
208、终端获取该终端的设备信息。208. The terminal acquires device information of the terminal.
终端在使用的过程中可以获取该终端的设备信息,其中,该设备信息可以包括该终端的配置信息和该终端的硬件信息。该配置信息可以包括该终端的屏幕分辨率信息、当前使用的语言信息以及当前该终端的布局使用状态信息,该硬件信息可以包括向服务器上报该终端的类型的信息。例如,如图5-A所示,该终端为手机时,此时该手机可以获取其配置信息和硬件信息,从图5-A可知,该手机的配置信息为屏幕分辨率为720*1280,当前使用的语言为简体中文,当前为竖屏布局使用状态;该硬件信息为手机类型的终端。The terminal device may obtain device information of the terminal in the process of using, where the device information may include configuration information of the terminal and hardware information of the terminal. The configuration information may include screen resolution information of the terminal, language information currently used, and layout usage status information of the current terminal, and the hardware information may include information for reporting the type of the terminal to the server. For example, as shown in FIG. 5-A, when the terminal is a mobile phone, the mobile phone can obtain configuration information and hardware information at this time. As shown in FIG. 5-A, the configuration information of the mobile phone has a screen resolution of 720*1280. The currently used language is Simplified Chinese, which is currently in the vertical screen layout state; the hardware information is a mobile phone type terminal.
209、终端向该服务器发送下载请求消息。209. The terminal sends a download request message to the server.
当用户需要下载快应用时,用户可以通过终端向该服务器发送下载请求消息,其中,该下载请求消息包含该终端的设备信息。需要说明的是,终端可以通过多种启动下载快应 用的途径,即终端在通过相应的途径打开下载快应用的页面,再进行下载请求的过程,例如,可以通过桌面图标、应用市场应用程序、浏览器链接等,本申请对此不做限定。下面通过图5-B所示,终端通过应用市场进入下载快应用界面的应用场景,用户通过该应用市场应用程序下载快应用“饿了么”,其中,该“饿了么”的完整安装包包含适配于不同配置的终端的文件,这里以“饿了么”这个快应用的完整安装包包含含高分辨图片资源文件、中分辨率图片资源文件、低分辨率图片资源文件为例进行说明,那么用户打开终端安装的应用市场应用程序(application,APP),然后用户点击搜索,并输入“饿了么”,然后点击推荐的“饿了么”快应用的“秒开”键,然后在本申请实施例的方案中,此时手机会向服务器发送下载请求消息,且该下载请求消息携带有该手机的设备信息。When the user needs to download the fast application, the user may send a download request message to the server through the terminal, where the download request message includes device information of the terminal. It should be noted that the terminal can download the fast application through various ways, that is, the terminal opens the page for downloading the fast application through the corresponding path, and then performs the download request process, for example, through the desktop icon, the application market application, Browser links and the like, which are not limited in this application. As shown in Figure 5-B, the terminal enters the application scenario of downloading the fast application interface through the application market, and the user downloads the fast application "Hungry" through the application market application, wherein the "Hungry" complete installation package Contains files that are adapted to terminals of different configurations. Here, the complete installation package of "Hungry" is a high-resolution image resource file, a medium-resolution image resource file, and a low-resolution image resource file. , then the user opens the application market application (application, APP) installed in the terminal, then the user clicks on the search and enters "Hungry", then clicks on the recommended "Hungry" fast application "Second On" button, then In the solution of the embodiment of the present application, the mobile phone sends a download request message to the server, and the download request message carries the device information of the mobile phone.
当该终端为图6-A所示的平板电脑时,此时该平板电脑为竖屏布局的使用状态,假设该平板电脑分辨率为720*1280,使用的语言为中文,那么其发送至服务器的下载请求消息中包含的设备信息为分辨率720*1280、使用语言为中文、竖屏布局以及平板电脑的终端类型。该平板电脑如图6-B所示的状态,使用的布局状态为横屏,使用的语言为英文,当前使用的分辨率为480*800。When the terminal is the tablet shown in FIG. 6-A, the tablet is in a state of use of the vertical screen layout. If the resolution of the tablet is 720*1280 and the language used is Chinese, then the tablet is sent to the server. The device information contained in the download request message is the resolution 720*1280, the usage language is Chinese, the vertical screen layout, and the terminal type of the tablet. The tablet is in the state shown in Figure 6-B. The layout state used is landscape, the language used is English, and the currently used resolution is 480*800.
210、服务器根据该下载请求消息整合下载资源列表。210. The server integrates the download resource list according to the download request message.
服务器就可以获取到该下载请求消息,然后该服务器可以根据该下载请求消息整合下载资源列表,具体可以是该服务器根据该终端的设备信息为该终端确定与该终端的硬件相匹配的目标安装包,然后将该目标安装包的下载地址整合在该下载资源列表中,其中,该目标安装包包括主安装包和至少一个资源包。The server may obtain the download request message, and then the server may integrate the download resource list according to the download request message, where the server may determine, according to the device information of the terminal, the target installation package that matches the hardware of the terminal. And then the download address of the target installation package is integrated in the download resource list, wherein the target installation package includes a main installation package and at least one resource package.
例如,图5-B中,用户点击“饿了么”的快应用的图标,那么服务器根据该手机的设备信息可确定为该终端匹配该快应用的目标安装包如图7所示,由于该“饿了么”的快应用只区分不同分辨率的图片资源文件,其他资源是默认的,因此,该目标安装包当中包含主安装包和高分辨率资源包;那么该服务器可以将该目标安装包包含多个子包的下载地址整合至该下载资源列表中。For example, in FIG. 5-B, the user clicks the icon of the "Hungry" quick application, then the server can determine that the terminal matches the target installation package of the fast application according to the device information of the mobile phone, as shown in FIG. The "Hungry" fast application only distinguishes between image resource files of different resolutions. Other resources are default. Therefore, the target installation package contains the main installation package and the high-resolution resource package; then the server can install the target. The download address of the package containing multiple sub-packages is integrated into the list of download resources.
下面再举例说明,如图6-A所示的平板电脑,该平板电脑请求获取表1所示的快应用,由图3可知,该快应用的完整安装包当中包含多种分辨率的图片资源文件、多种布局资源文件和多语言资源文件,服务器根据其设备信息为其匹配该快应用的目标安装包,该目标安装包所包含的内容如图8所示,目标安装包包括主安装包、高分辨率图片资源包、竖屏布局资源包以及中文资源包,那么在该服务器整合的下载资源列表中携带有这些子包的下载地址。而针对于6-B所示的平板电脑,服务器为其确定匹配如表1所示的对应的快应用的目标安装包当中包含图9所示,目标安装包包含主安装包、中分辨率图片资源包、横屏布局资源包以及英文资源包。For example, as shown in FIG. 6-A, the tablet computer requests to obtain the fast application shown in Table 1. As can be seen from FIG. 3, the full installation package of the fast application includes multiple resolution image resources. A file, a plurality of layout resource files, and a multi-language resource file. The server matches the target installation package of the fast application according to the device information. The content of the target installation package is as shown in FIG. 8, and the target installation package includes the main installation package. The high-resolution image resource package, the vertical screen layout resource package, and the Chinese resource package, then the download address of the sub-packages is carried in the list of downloaded resources integrated by the server. For the tablet shown in 6-B, the server determines the target installation package for matching the corresponding fast application as shown in Table 1. As shown in Figure 9, the target installation package contains the main installation package and the medium resolution picture. Resource package, horizontal layout resource package, and English resource package.
211、服务器向终端发送下载资源列表。211. The server sends a download resource list to the terminal.
服务器整合下载资源列表之后,可以向终端发送该下载资源列表,其中,该下载资源列表中携带有该服务器为该终端确定的与该终端的配置相匹配的目标安装包的下载地址。例如,步骤210中,服务器为该图5-B所示的手机匹配该快应用的主安装包和高分辨率图片资源包、然后在该下载资源列表中就包含有这些子包的下载地址。After the server integrates the download resource list, the download resource list may be sent to the terminal, where the download resource list carries the download address of the target installation package that the server determines for the terminal that matches the configuration of the terminal. For example, in step 210, the server matches the main installation package and the high-resolution picture resource package of the quick application for the mobile phone shown in FIG. 5-B, and then the download address of the sub-packages is included in the download resource list.
212、终端向服务器发送下载目标安装包请求。212. The terminal sends a download target installation package request to the server.
终端接收到服务器发送的下载资源列表之后,可以根据该下载资源列表中目标安装包的下载地址生成相应的下载目标安装包请求,该请求消息中携带有该目标安装包的下载地址,该请求消息用于指示服务器发送该下载地址中存储的目标安装包至该终端。After receiving the download resource list sent by the server, the terminal may generate a corresponding download target installation package request according to the download address of the target installation package in the download resource list, where the request message carries the download address of the target installation package, and the request message It is used to instruct the server to send the target installation package stored in the download address to the terminal.
需要说明的是,该下载资源列表中包含有多个该快应用的安装包的下载地址,那么终端在发送请求时,可以发起多次请求,每个请求中携带有该对应安装包的下载地址。It should be noted that the download resource list includes a plurality of download addresses of the installation package of the fast application, and the terminal may initiate multiple requests when sending the request, and each request carries the download address of the corresponding installation package. .
213、服务器向该终端发送该主安装包和至少一个资源包。213. The server sends the primary installation package and the at least one resource package to the terminal.
服务器获取到终端发送的请求消息之后,服务器可以根据终端发送的请求消息中携带的下载地址向该终端发送主安装包和对应的至少一个资源包。如图7所示,当图5-B中的手机请求下载“饿了么”时,根据该手机的设备信息,服务器可以为该终端匹配图7中的“饿了么”的主安装包以及高分辨率图片资源包,那么服务器根据终端发送的下载地址可以向主安装包和高分辨率图片资源包发送至终端。另外,如图6-B,服务器可以为该平板电脑匹配如图9所示的主安装包、中分辨率图片资源包、横屏布局资源包以及英文资源包,当该平板电脑将对应的下载地址发送至服务器时,服务器可以根据该下载地址将该主安装包、高分辨率图片资源包、横屏布局资源包以及英文资源包发送至该平板电脑。After the server obtains the request message sent by the terminal, the server may send the main installation package and the corresponding at least one resource package to the terminal according to the download address carried in the request message sent by the terminal. As shown in FIG. 7, when the mobile phone in FIG. 5-B requests to download "Hungry", according to the device information of the mobile phone, the server can match the terminal with the "Hungry" main installation package in FIG. 7 and The high-resolution picture resource package, the server can send the main installation package and the high-resolution picture resource package to the terminal according to the download address sent by the terminal. In addition, as shown in FIG. 6-B, the server can match the main installation package, the medium resolution picture resource package, the horizontal layout resource package, and the English resource package as shown in FIG. 9 to the tablet, and the corresponding download will be performed on the tablet. When the address is sent to the server, the server can send the main installation package, the high-resolution picture resource package, the horizontal layout resource package, and the English resource package to the tablet according to the download address.
214、终端确定该主安装包和至少一个资源包具备服务器的数据签名。214. The terminal determines that the primary installation package and the at least one resource package have a data signature of the server.
终端接收到该主安装包和至少一个资源包之后,可以验证该主安装包和该至少一个资源包确定这些安装包具备服务器的数据签名,通过验证该数据签名,可以提高终端接收到的安装包的安全性,一定程度上避免恶意用户上传病毒安装包至服务器,导致终端下载病毒安装包。需要说明的是,当该终端确定目标安装包的数据签名与该服务器的数据签名不匹配,那么终端可以返回操作错误,安装操作终止。After receiving the primary installation package and the at least one resource package, the terminal may verify that the primary installation package and the at least one resource package determine that the installation package has a data signature of the server, and by verifying the data signature, the installation package received by the terminal may be improved. The security, to a certain extent, prevents malicious users from uploading the virus installation package to the server, causing the terminal to download the virus installation package. It should be noted that, when the terminal determines that the data signature of the target installation package does not match the data signature of the server, the terminal may return an operation error, and the installation operation is terminated.
215、终端按照预设解压规则将该主安装包和至少一个资源包解压至目标安装目录。215. The terminal decompresses the main installation package and the at least one resource package to the target installation directory according to a preset decompression rule.
终端确定主安装包和至少一个资源包之后,可以按照预设的解压规则将该主安装包和至少一个资源包解压至目标安装目录。下面通过表6来说明本申请提供的一种可能的解压方式,在前述步骤中,图6-A所示的平板电脑获取到主安装包、高分辨率图片资源包、竖屏布局资源包以及中文资源包,其中,主安装包的文件放置状态如表2所示,那么在解压该主安装包时,该平板电脑可以将主安装包中的文件解压至对应的表6中的对应目录中;高分辨率图片资源包的文件放置状态如表3所示,那么解压该高分辨率资源包时,将该hdpi文件夹中的图片资源解压至表6中的drawable文件夹,将表3中的Page1目录下的高分辨率图片资源文件解压至表6中的Page1文件夹下的drawable文件夹中;竖屏布局资源包的文件放置状态如表4所示,将表4中Page1目录下的竖屏高分辨率图片资源文件解压至表6中Page1目录下的index.ux文件夹中,其中,表4的竖屏高分辨率图片资源文件后缀为index_land.ux,在解压时,该平板电脑会将其后缀修改为index.ux,然后放置于表6中Page1目录下的index.ux文件夹中;而中文资源包的文件放置状态如表5所示,那么该表5中Page1目录下的String文件夹下的中文语言文件后缀为zh_cn,在平板电脑解压该语言文件是可以将该语言文件的文件名修改为default,然后解压至表6中的String文件下。通过本申请的数据处理方法来下载快应用的目标安装包,不仅可以减小终端下载该快应用的下载时间,还可以减少快应用的安装包在终端上占用的存储空间,提高用户体验。After the terminal determines the primary installation package and the at least one resource package, the primary installation package and the at least one resource package may be decompressed to the target installation directory according to a preset decompression rule. A possible decompression method provided by the present application is described below through Table 6. In the foregoing steps, the tablet shown in FIG. 6-A obtains a main installation package, a high-resolution image resource package, a vertical screen layout resource package, and Chinese resource package, wherein the file placement status of the main installation package is as shown in Table 2. When the main installation package is decompressed, the tablet can extract the files in the main installation package to the corresponding directories in the corresponding table 6. The file placement status of the high-resolution image resource package is as shown in Table 3. When decompressing the high-resolution resource package, extract the image resources in the hdpi folder to the drawable folder in Table 6, which will be in Table 3. The high-resolution image resource files in the Page1 directory are extracted to the drawable folder in the Page1 folder in Table 6; the file placement status of the vertical screen layout resource package is as shown in Table 4, and will be in the Page1 directory in Table 4. The vertical screen high-resolution image resource file is extracted to the index.ux folder in the Page1 directory in Table 6, wherein the vertical screen high-resolution image resource file of Table 4 is suffixed with index_land.ux, and when unpacked, the tablet meeting The suffix is modified to index.ux, and then placed in the index.ux folder in the Page1 directory in Table 6; and the file placement state of the Chinese resource package is as shown in Table 5, then the String file in the Page1 directory in Table 5 The Chinese language file suffixed is zh_cn. To extract the language file on the tablet, you can change the file name of the language file to default, and then extract it to the String file in Table 6. By downloading the target installation package of the fast application by using the data processing method of the present application, the download time of the fast application can be reduced, and the storage space occupied by the installation package of the fast application can be reduced, thereby improving the user experience.
表6Table 6
Figure PCTCN2019086534-appb-000008
Figure PCTCN2019086534-appb-000008
216、终端运行该快应用。216. The terminal runs the fast application.
终端执行对获取到主安装包和至少一个资源包进行解压之后,终端可以执行该快应用,展示相应的页面。如图5-B所示,该手机可以展示“饿了么”的页面,其页面的图片分辨率为高分辨率的图片,默认竖屏以及中文语言环境,如图6-A所示,该平板电脑可以展示表1所对应的快应用的页面,显示高分辨率的图片,竖屏布局状态以及中文语言页面。After the terminal performs decompression on obtaining the main installation package and the at least one resource package, the terminal may execute the fast application and display the corresponding page. As shown in Figure 5-B, the phone can display a "hungry" page with a high resolution image, a default vertical screen, and a Chinese locale, as shown in Figure 6-A. The tablet can display the fast application page corresponding to Table 1, displaying high resolution pictures, vertical screen layout status and Chinese language page.
本申请实施例中,该终端获取到的该快应用的目标安装包是该服务器根据该设备信息为该终端确定的与该终端的硬件相匹配的目标安装包,因此,该目标安装包相对于该快应用的完整安装包较小,那么终端下载该目标安装包所需的时长会小于该终端下载该快应用的完整安装包所需的时长,因此,减少了终端下载快应用的下载时间,从而提高用户的体验。In the embodiment of the present application, the target installation package of the fast application acquired by the terminal is a target installation package that is determined by the server according to the device information to match the hardware of the terminal, and therefore, the target installation package is opposite to the target installation package. The full installation package of the fast application is small, and the time required for the terminal to download the target installation package is less than the length of time required for the terminal to download the complete installation package of the fast application, thereby reducing the download time of the terminal downloading the fast application. Thereby improving the user experience.
请参阅图10,介绍本申请实施例通过方式二数据处理的方法实施例,且在本实施例中,服务器根据预设的默认配置规则以及预设的资源配置规则将该快应用的完整安装包拆分为该快应用的默认安装包和至少一个资源包。Referring to FIG. 10, an embodiment of the method for processing data in the second mode of the embodiment of the present application is described. In this embodiment, the server completes the package of the fast application according to a preset default configuration rule and a preset resource configuration rule. Split into the default installation package for the quick app and at least one resource bundle.
1001、应用开发设备根据预设的文件放置规则将该快应用的文件生成完整安装包。1001. The application development device generates a complete installation package for the fast application file according to a preset file placement rule.
1002、应用开发设备向服务器发送该快应用的完整安装包。1002. The application development device sends a complete installation package of the fast application to the server.
1003、服务器验证该完整安装包的数据签名与预置的账号签名是否匹配,若是,则执行步骤1005;若否,则执行步骤1004。1003. The server verifies whether the data signature of the complete installation package matches the preset account signature. If yes, step 1005 is performed; if not, step 1004 is performed.
1004、服务器执行其他操作。1004. The server performs other operations.
步骤1001至步骤1004与前述图2中的步骤201至步骤204类似,具体此处不再赘述。Steps 1001 to 1004 are similar to steps 201 to 204 in FIG. 2, and details are not described herein again.
1005、服务器根据预设的默认配置规则以及预设的资源配置规则将该完整安装包拆分为默认安装包和至少一个资源包。1005. The server splits the complete installation package into a default installation package and at least one resource package according to a preset default configuration rule and a preset resource configuration rule.
服务器可以将获取到的完整安装包根据预设的默认配置规则以及预设的资源配置规则将完整安装包拆分为默认安装包和至少一个资源包,其中,该默认安装包包含与该预设的默认配置规则对应的默认配置信息相匹配的资源文件以及通用配置文件,需要说明的是,当该快应用的完整安装包中存在通用资源文件时,则该默认安装包还包括该通用资源文件,至少一个资源包包含完整安装包中除通用资源文件以外的其他资源文件。另外,该预设的默认配置规则对应的默认配置信息可以是根据当前使用该快应用的用户中的配置信息来确 定的使用频率最高的是哪种类型的配置信息,或者是根据该快应用所使用的频率最高的地区等相关参考因素来确定,本申请对此不做限定,当然最优方式可以是以使用频段最高的一组配置作为默认配置信息。The server may split the complete installation package into a default installation package and at least one resource package according to a preset default configuration rule and a preset resource configuration rule, wherein the default installation package includes the preset The default configuration rule corresponding to the default configuration information matches the resource file and the common configuration file. It should be noted that when the universal resource file exists in the complete installation package of the fast application, the default installation package also includes the universal resource file. At least one resource bundle contains resource files other than the generic resource files in the full installation package. In addition, the default configuration information corresponding to the preset default configuration rule may be the type of configuration information that is determined to be the most frequently used according to the configuration information of the user currently using the fast application, or according to the fast application. It is determined by the relevant reference factors such as the region with the highest frequency of use, and the present application does not limit this. Of course, the optimal mode may be that the group configuration with the highest frequency band is used as the default configuration information.
需要说明的是,当出现该终端的配置信息与服务器预置的默认配置信息完全不相同时,针对本申请提出的解决终端下载快应用的较长的问题,那么此时该预置的默认配置信息中的至少一种资源配置包含有至少三种参数类型,下面通过例如举例说明,当快应用的完整安装包当中包含有中文资源文件、英文资源文件、横屏布局资源文件以及竖屏布局资源文件,那么假设预置的默认配置信息为中文和横屏布局,那么当终端的配置信息为竖屏布局使用状态和英文使用语言环境,那么此时可知该终端的配置信息与该服务器预置的默认配置信息完全不相同,那么此时,服务器需要为该终端匹配默认安装包、中文资源包以及竖屏布局资源包,即此时终端下载快应用的安装包大小与现有技术当中的一样,那么无法解决技术问题。因此,本申请提出,当该预置的配信息中的至少一种资源配置包含至少三种参数类型,假设该快应用的完整安装包包含中文资源文件、英文资源文件、其他语言资源文件、横屏布局资源文件以及竖屏布局资源文件,那么该终端下载默认安装包、中文资源包以及竖屏布局资源包比现有技术当中终端下载该快应用的完整安装包的要小,则可以减少终端下载快应用的下载时间,因此,当终端的配置信息与预置的配置信息完全不相同时,只要配置信息当中包含有至少一种资源配置有三种参数类型即可解决技术问题。It should be noted that when the configuration information of the terminal is completely different from the default configuration information preset by the server, for the long problem of solving the terminal downloading fast application proposed by the present application, the preset default configuration at this time is used. At least one resource configuration in the information includes at least three parameter types. For example, when the complete installation package of the fast application includes a Chinese resource file, an English resource file, a horizontal screen layout resource file, and a vertical screen layout resource, File, then assume that the default configuration information of the preset is Chinese and horizontal screen layout, then when the configuration information of the terminal is the vertical screen layout usage state and the English language usage environment, then the configuration information of the terminal and the server preset information are known at this time. The default configuration information is completely different. In this case, the server needs to match the default installation package, the Chinese resource package, and the vertical screen layout resource package for the terminal. That is, the installation package size of the terminal download fast application is the same as that in the prior art. Then you can't solve the technical problem. Therefore, the application proposes that when at least one resource configuration in the preset configuration information includes at least three parameter types, it is assumed that the complete installation package of the fast application includes a Chinese resource file, an English resource file, other language resource files, and a horizontal The screen layout resource file and the vertical screen layout resource file, then the terminal download default installation package, Chinese resource package, and vertical screen layout resource package are smaller than the complete installation package of the fast download application of the terminal in the prior art, thereby reducing the terminal Downloading the download time of the fast application, therefore, when the configuration information of the terminal is completely different from the preset configuration information, the technical problem can be solved as long as the configuration information includes at least one resource configuration with three parameter types.
下面通过图11所示的例子进行举例说明,该快应用的完整安装包包含适配于不同分辨率的资源文件、不同布局资源文件以及不同语言的资源文件,那么服务器根据预设的默认配置规则将该快应用的完整安装包拆分出默认安装包,假设该预设的默认配置规则为高分辨率、中文以及竖屏布局,那么该默认安装包所包含的内容如图12所示,该默认安装包包括通用文件、高分辨率图片资源文件、竖屏布局资源文件以及中文资源文件;服务器根据预设的资源配置规则可以将该完整安装包中除默认安装包以外的文件拆分为中分辨图片资源包、低分辨率图片资源包、横屏布局资源包以及英文资源包。The following is an example of the example shown in FIG. 11. The complete installation package of the fast application includes resource files adapted to different resolutions, different layout resource files, and resource files in different languages, and then the server according to a preset default configuration rule. The complete installation package of the quick application is split out of the default installation package. If the default configuration rule of the preset is high resolution, Chinese, and vertical screen layout, the content of the default installation package is as shown in FIG. 12, The default installation package includes a common file, a high-resolution image resource file, a vertical screen layout resource file, and a Chinese resource file; the server can split the files of the complete installation package except the default installation package according to preset resource configuration rules. Resolve image resource bundles, low-resolution image resource bundles, horizontal layout resource bundles, and English resource bundles.
1006、服务器对该默认安装包和至少一个资源包标记该服务器的数据签名。1006. The server marks the data signature of the server for the default installation package and at least one resource package.
1007、服务器将该默认安装包和至少一个资源包进行关联注册。1007. The server associates the default installation package with at least one resource package.
1008、终端获取该终端的设备信息。1008. The terminal acquires device information of the terminal.
1009、终端向服务器发送下载请求消息。1009. The terminal sends a download request message to the server.
步骤1006至步骤1009与前述图2中的步骤206至步骤209类似,具体此处不再赘述。Steps 1006 to 1009 are similar to the foregoing steps 206 to 209 in FIG. 2, and details are not described herein again.
1010、服务器判断该终端的配置信息是否与预置的默认配置信息匹配,若是,则执行步骤1011;若否,则执行步骤1018。1010. The server determines whether the configuration information of the terminal matches the preset default configuration information. If yes, step 1011 is performed; if no, step 1018 is performed.
服务器可以判断该终端的设备信息中的配置信息是否与该预置的默认配置信息匹配,如果匹配,那么该服务器执行步骤1011,如果不匹配,那么服务器执行步骤1018。例如,如图6-A所示的平板电脑,此时该平板电脑为竖屏布局的使用状态,假设该平板电脑分辨率为720*1280,使用的语言为中文,而预置的默认配置信息可知为高分辨率、中文以及竖屏布局,当该平板电脑请求如表1所示对应的该快应用时,已知高分辨率图片资源文件适用于屏幕分辨率700*1280,所以该服务器可以确定该平板电脑的配置信息与预置默认配置信息匹配。再举例说明,如图6-B所示假设该平板电脑使用的语言为英文,屏幕分辨率为 480*800,从图中可知当前为横屏使用状态,那么服务器可以确定该平板电脑的配置信息与该预置的默认配置信息不匹配。The server may determine whether the configuration information in the device information of the terminal matches the preset default configuration information. If yes, the server performs step 1011. If not, the server performs step 1018. For example, as shown in Figure 6-A, the tablet is in the state of use of the vertical screen layout. It is assumed that the resolution of the tablet is 720*1280, the language used is Chinese, and the default configuration information is preset. It can be known that for high resolution, Chinese and vertical screen layout, when the tablet requests the corresponding fast application as shown in Table 1, the known high resolution image resource file is suitable for the screen resolution of 700*1280, so the server can Make sure the tablet's configuration information matches the preset default configuration information. For example, as shown in FIG. 6-B, it is assumed that the tablet uses the English language and the screen resolution is 480*800. As shown in the figure, the current status is the horizontal screen usage state, and the server can determine the configuration information of the tablet. Does not match the default configuration information for this preset.
1011、服务器确定第一下载资源列表。1011. The server determines a first download resource list.
服务器确定该终端的配置信息与预置的默认配置信息匹配,那么服务器可以为该终端确定与该终端的硬件相匹配该快应用的默认安装包,然后该服务器可以将确定好的默认安装包的下载地址进行整合填写至第一下载资源列表中。The server determines that the configuration information of the terminal matches the preset default configuration information, and the server may determine, for the terminal, the default installation package of the fast application that matches the hardware of the terminal, and then the server may determine the default installation package. The download address is integrated and filled in to the first download resource list.
1012、服务器向终端发送第一下载资源列表。1012. The server sends a first download resource list to the terminal.
服务器可以向终端发送该第一下载资源列表,其中,该第一下载资源列表包含该快应用的默认安装包的下载地址。例如,服务器可以向图6-B所示的平板电脑发送该第一下载资源列表。The server may send the first download resource list to the terminal, where the first download resource list includes a download address of the default installation package of the fast application. For example, the server can send the first download resource list to the tablet shown in FIG. 6-B.
1013、终端向服务器发送第一下载目标安装包请求。1013. The terminal sends a first download target installation package request to the server.
步骤1013与前述图2中的步骤212类似,具体此处不再赘述。Step 1013 is similar to step 212 in FIG. 2 above, and details are not described herein again.
1014、服务器向终端发送默认安装包。1014. The server sends a default installation package to the terminal.
终端接收到该第一下载资源列表之后,可以向该服务器发送该默认安装包的下载地址,然后服务器根据该下载地址向终端发送该默认安装包;例如,在步骤1013中,图6-A所示的平板电脑向服务器发送第一下载目标安装包请求,该请求当中携带有该默认安装包的下载地址,则服务器可以向其发送默认安装包。After receiving the first download resource list, the terminal may send the download address of the default installation package to the server, and then the server sends the default installation package to the terminal according to the download address; for example, in step 1013, FIG. 6-A The illustrated tablet sends a first download target installation package request to the server, where the request carries the download address of the default installation package, and the server can send a default installation package to the server.
1015、终端确定该默认安装包具备服务器的数据签名。1015. The terminal determines that the default installation package has a data signature of the server.
终端接收到该默认安装包之后,可以验证该默认安装包的数据签名是否与服务器的数据签名匹配,如果匹配,那么终端可以确定该默认安装包合法,如果不匹配,那么终端可以返回操作错误。After receiving the default installation package, the terminal can verify whether the data signature of the default installation package matches the data signature of the server. If the terminal matches, the terminal can determine that the default installation package is legal. If not, the terminal can return an operation error.
1016、终端按照预设规则将该默认安装包解压至目标安装目录。1016. The terminal extracts the default installation package to the target installation directory according to a preset rule.
终端可以按照预设的解压规则将该默认安装包解压至该目标安装目录。例如,在前述1014步骤中,确定图6-B所示的平板电脑获取该默认安装包,该默认安装包如图12所示,那么该平板电脑可以将该默认安装包的文件对应解压至目标安装目录中,具体可以是如表6所示,高分辨率图片资源文件解压至common目录下的drawable的文件夹,竖屏布局资源文件解压至Page1目录,并且竖屏布局资源文件的后缀修改为index.ux,高分辨率页面独立使用资源解压至Page1目录下的drawable文件夹,中文资源文件解压至String目录下,并且中文资源文件的后缀修改为default。The terminal can extract the default installation package to the target installation directory according to a preset decompression rule. For example, in the foregoing step 1014, determining that the tablet shown in FIG. 6-B obtains the default installation package, and the default installation package is as shown in FIG. 12, the tablet can extract the file corresponding to the default installation package to the target. In the installation directory, as shown in Table 6, the high-resolution image resource file is extracted to the drawable folder in the common directory, the vertical screen layout resource file is extracted to the Page1 directory, and the suffix of the vertical screen layout resource file is modified to Index.ux, the high-resolution page is extracted independently using the resources to the drawable folder in the Page1 directory. The Chinese resource file is extracted to the String directory, and the suffix of the Chinese resource file is changed to default.
1017、终端运行该快应用。1017. The terminal runs the fast application.
步骤1017与前述图2中的步骤216类似,具体此处不再赘述。Step 1017 is similar to step 216 in FIG. 2 above, and details are not described herein again.
1018、服务器确定第二下载资源列表。1018. The server determines a second download resource list.
服务器确定该终端的配置信息与该预置的默认配置信息不匹配,那么服务器可以根据该终端的配置信息为该终端确定与该终端的硬件相匹配的该快应用的默认安装包和至少一个资源包,然后将该默认安装包的下载地址和该至少一个资源包的下载地址整合填写到第二下载资源列表中。例如,图6-B的平板电脑的使用语言为英文,屏幕分辨率为480*800以及横屏使用状态,该预置的默认配置信息为高分辨率、中文以及竖屏布局,那么该服务器可以为该平板电脑确定与该平板电脑的配置相匹配的默认安装包、中分辨率资源包、英 文资源包以及横屏资源包,具体如图13所示,为该服务器为该平板电脑所匹配的该快应用的安装包。那么服务器可以将默认安装包的下载地址、中分辨率资源包的下载地址、英文资源包的下载地址以及横屏资源包的下载地址整合到第二下载资源列表中。The server determines that the configuration information of the terminal does not match the preset default configuration information, and the server may determine, according to the configuration information of the terminal, the default installation package and the at least one resource of the fast application that matches the hardware of the terminal. The package then integrates the download address of the default installation package and the download address of the at least one resource package into the second download resource list. For example, the tablet of Figure 6-B is in English, the screen resolution is 480*800 and the horizontal screen is used. The default configuration information of the preset is high resolution, Chinese and vertical screen layout, then the server can Determining, for the tablet, a default installation package, a medium resolution resource package, an English resource package, and a horizontal screen resource package that match the configuration of the tablet, as shown in FIG. 13, which is matched by the server for the tablet. The installation package for this fast application. Then, the server can integrate the download address of the default installation package, the download address of the medium resolution resource package, the download address of the English resource package, and the download address of the horizontal screen resource package into the second download resource list.
1019、服务器向终端发送第二下载资源列表。1019. The server sends a second download resource list to the terminal.
服务器可以向该终端发送第二下载资源列表;例如,前述步骤1018中举例说明的图6-B中的平板电脑,该平板电脑可以获取到该第二下载资源列表。The server may send the second download resource list to the terminal; for example, the tablet in FIG. 6-B illustrated in the foregoing step 1018, the tablet may obtain the second download resource list.
1020、终端向服务器发送第二下载目标安装包请求。1020. The terminal sends a second download target installation package request to the server.
步骤1020与前述图2中的步骤212类似,具体此处不再赘述。Step 1020 is similar to step 212 in FIG. 2 above, and details are not described herein again.
1021、服务器向终端发送默认安装包和至少一个资源包。1021: The server sends a default installation package and at least one resource package to the terminal.
终端可以将该第二下载资源列表中的默认安装包和至少一个资源包的下载地址发送至该服务器中,然后服务器可以向该终端发送默认安装包和至少一个资源包。例如,图6-B中,平板电脑可以接收到如图13所示的三个安装包:默认安装包、英文资源包、中分辨率资源包以及横屏布局资源包。The terminal may send the default installation package in the second download resource list and the download address of the at least one resource package to the server, and then the server may send the default installation package and the at least one resource package to the terminal. For example, in Figure 6-B, the tablet can receive three installation packages as shown in Figure 13: the default installation package, the English resource package, the medium resolution resource package, and the horizontal layout resource package.
1022、终端确定该默认安装包以及至少一个资源包具备服务器的数据签名。1022: The terminal determines that the default installation package and the at least one resource package have a data signature of the server.
终端接收到该默认安装包以及至少一个资源包之后,可以验证该默认安装包的数据签名以及至少一个资源包的数据签名是否与服务器的数据签名匹配,如果匹配,那么终端可以确定该默认安装包以及该至少一个资源包合法,如果不匹配,那么终端可以返回操作错误。After receiving the default installation package and the at least one resource package, the terminal may verify the data signature of the default installation package and whether the data signature of the at least one resource package matches the data signature of the server. If the terminal matches, the terminal may determine the default installation package. And the at least one resource package is legal. If it does not match, the terminal can return an operation error.
1023、终端按照预设解压规则将该默认安装包以及至少一个资源包解压至目标安装目录。1023. The terminal extracts the default installation package and the at least one resource package to the target installation directory according to a preset decompression rule.
终端可以按照预设解压规则将该默认安装包以及至少一个资源包解压至目标安装目录,下面举例说明本申请提供的一种可能的解压方式,如前述步骤1020,如图6-B所示的平板电脑,该平板电脑接收到默认安装包、中分辨率资源包、英文资源包以及横屏布局资源包,该平板电脑解压该默认安装包可以按照步骤1016中举例说明的图6-A所示的平板解压默认安装包的解压方式将文件解压至表6中对应的文件夹中,而针对于英文资源包,该平板电脑可以将该英文资源包中的文件解压至表6中的String目录下,且覆盖默认安装包中的中文资源文件,并且将该英文资源文件的后缀修改为default,对于横屏资源包,该平板电脑可以将该横屏资源包中的横屏布局资源文件解压至Page1目录下,覆盖前面该平板电脑解压默认安装包中的竖屏布局资源文件,并且将该横屏布局资源文件的后缀修改为index.ux,而对于中分辨率资源包,该平板电脑可以将中分辨率图片资源文件解压至表6中Common目录下的drawable默认目录中,并覆盖该文件中的高分辨率图片资源文件。因此,通过前述平板电脑解压该默认安装包、中分辨率图片资源包、英文资源包以及横屏布局资源包的解压方式,终端即使下载了多余的资源文件,但是在解压过程中可以覆盖不必要的资源文件,所以终端不会存储冗余的资源文件,因此,通过本申请的数据处理方法来下载快应用的目标安装包,不仅可以减小终端下载该快应用的下载时间,还可以减少快应用的安装包在终端上占用的存储空间,提高用户体验。The terminal may decompress the default installation package and the at least one resource package to the target installation directory according to the preset decompression rule. The following describes a possible decompression method provided by the application, as shown in the foregoing step 1020, as shown in FIG. 6-B. The tablet receives the default installation package, the medium resolution resource package, the English resource package, and the horizontal layout resource package, and the tablet decompresses the default installation package according to the figure 6A illustrated in step 1016. Decompress the default installation package of the tablet to extract the files to the corresponding folder in Table 6. For the English resource package, the tablet can extract the files in the English resource package to the String directory in Table 6. And overwrite the Chinese resource file in the default installation package, and modify the suffix of the English resource file to default. For the horizontal screen resource package, the tablet can extract the horizontal layout resource file in the horizontal screen resource package to Page1. Under the directory, overwrite the front panel of the tablet to extract the vertical screen layout resource file in the default installation package, and the horizontal screen layout resource file The suffix is modified to index.ux, and for the medium resolution resource bundle, the tablet can extract the medium resolution image resource file to the drawable default directory in the Common directory in Table 6, and overwrite the high resolution in the file. Image resource file. Therefore, the decompression method of the default installation package, the medium resolution picture resource package, the English resource package, and the horizontal screen layout resource package is decompressed by the foregoing tablet computer, and even if the terminal downloads the redundant resource file, the terminal may overwrite the unnecessary during the decompression process. The resource file, so the terminal does not store redundant resource files. Therefore, downloading the target installation package of the fast application through the data processing method of the present application can not only reduce the download time of the terminal to download the fast application, but also reduce the fast time. The installation package of the application occupies storage space on the terminal to improve the user experience.
1024、终端运行该快应用。1024. The terminal runs the fast application.
步骤1024与前述图2中的步骤216类似,具体此处不再赘述。Step 1024 is similar to step 216 in FIG. 2 above, and details are not described herein again.
本申请实施例中,该终端获取到的该快应用的目标安装包是该服务器根据该设备信息为该终端确定的与该终端的配置相匹配的目标安装包,因此,该目标安装包相对于该快应用的完整安装包较小,那么终端下载该目标安装包所需的时长会小于该终端下载该快应用的完整安装包所需的时长,因此,减少了终端下载快应用的下载时间,从而提高用户的体验。In the embodiment of the present application, the target installation package of the fast application acquired by the terminal is a target installation package that is determined by the server according to the device information to match the configuration of the terminal, and therefore, the target installation package is relative to the target installation package. The full installation package of the fast application is small, and the time required for the terminal to download the target installation package is less than the length of time required for the terminal to download the complete installation package of the fast application, thereby reducing the download time of the terminal downloading the fast application. Thereby improving the user experience.
一种可能的实现方式中,服务器接收终端发送的第一下载请求消息,该第一下载请求消息为该终端请求下载该快应用的消息,然后服务器接收到该第一下载请求消息之后,服务器直接返回包含该快应用的默认安装包的下载地址的第一下载资源列表至该终端,终端根据该默认安装包的下载地址下载该快应用的默认安装包;而当终端通过检测确定该默认安装包的文件与其配置信息不匹配时,该终端可以向该服务器发送第二下载请求消息,此时,该第二下载请求消息携带有该终端的配置信息,该服务器可以根据该终端的配置信息为该终端匹配相应的该快应用的至少一个资源包,该至少一个资源包中包含有该与差异配置信息匹配的该快应用的资源文件,该差异配置信息为该终端的配置信息与该服务器中预置的默认配置信息中不相同的部分配置信息;然后服务器可以向该终端发送该包含有该至少一个资源包的下载地址的第二资源列表,终端可以根据该下载地址从服务器下载该至少一个资源包。下面通过图14来详细介绍该可能的实现方式,请参阅图14,本申请实施例中数据处理方法的另一个实施例包括:In a possible implementation manner, the server receives a first download request message sent by the terminal, where the first download request message is a message that the terminal requests to download the fast application, and then after the server receives the first download request message, the server directly Returning a first download resource list containing the download address of the default installation package of the fast application to the terminal, and the terminal downloads the default installation package of the quick application according to the download address of the default installation package; and when the terminal determines the default installation package by detecting When the file does not match the configuration information, the terminal may send a second download request message to the server. At this time, the second download request message carries the configuration information of the terminal, and the server may use the configuration information of the terminal as the The terminal matches the corresponding at least one resource package of the fast application, where the at least one resource package includes the resource file of the fast application that matches the difference configuration information, where the difference configuration information is configuration information of the terminal and the server Set the default configuration information in the same part of the configuration information; then serve May transmit to the terminal the downloading comprises at least one second packet address resource list of resources, the terminal can download the at least one resource from a server according to the download packet address. The possible implementation manner is described in detail below with reference to FIG. 14. Referring to FIG. 14, another embodiment of the data processing method in the embodiment of the present application includes:
1401、应用开发设备根据预设的文件放置规则将该快应用的文件生成完整安装包。1401. The application development device generates a complete installation package for the fast application file according to a preset file placement rule.
1402、应用开发设备向服务器发送该快应用的完整安装包。1402. The application development device sends a complete installation package of the fast application to the server.
1403、服务器验证该完整安装包的数据签名与预置的账号签名是否匹配,若是,则执行步骤1405;若否,则执行步骤1404。1403. The server verifies whether the data signature of the complete installation package matches the preset account signature. If yes, step 1405 is performed; if no, step 1404 is performed.
1404、服务器执行其他操作。1404. The server performs other operations.
1405、服务器根据预设的默认配置规则以及预设的资源配置规则将该完整安装包拆分为默认安装包和至少一个资源包。1405. The server splits the complete installation package into a default installation package and at least one resource package according to a preset default configuration rule and a preset resource configuration rule.
1406、服务器对该默认安装包和至少一个资源包标记该服务器的数据签名。1406. The server marks the data signature of the server for the default installation package and at least one resource package.
1407、服务器将该默认安装包和至少一个资源包进行关联注册。1407. The server associates the default installation package with at least one resource package.
步骤1401至步骤1407与前述图10中的步骤1001至步骤1007类似,具体此处不再赘述,详细请参阅前述步骤1001至步骤1007的描述。Steps 1401 to 1407 are similar to the steps 1001 to 1007 in FIG. 10, and details are not described herein again. For details, refer to the description of the foregoing steps 1001 to 1007.
1408、终端向服务器发送第一下载请求消息。1408. The terminal sends a first download request message to the server.
当用户需要下载该快应用时,此时用户可以通过终端向服务器发送第一下载请求消息,该第一下载请求消息为终端请求下载快应用的消息。需要说明的是,终端可以多种方式启动下载快应用的途径,具体可以包括应用市场应用程序、浏览器链接等,具体此处不做限定。When the user needs to download the fast application, the user can send a first download request message to the server through the terminal, where the first download request message is a message that the terminal requests to download the fast application. It should be noted that the terminal can initiate the method of downloading the fast application in a plurality of manners, and specifically includes an application market application, a browser link, and the like, which is not limited herein.
1409、服务器向终端发送第一下载资源列表。1409. The server sends a first download resource list to the terminal.
服务器接收到该第一下载请求消息之后,服务器可以将该快应用的默认安装包的下载地址填写到第一下载资源列表中,然后向终端发送该第一下载资源列表。After the server receives the first download request message, the server may fill in the download address of the default installation package of the fast application into the first download resource list, and then send the first download resource list to the terminal.
1410、终端向服务器发送下载该快应用的默认安装包请求。1410. The terminal sends a default installation package request for downloading the fast application to the server.
终端接收到该第一资源列表之后,可以向该服务器发送下载该应用的默认安装包请求,其中,该请求当中包含有该默认安装包的下载地址。After receiving the first resource list, the terminal may send a default installation package request for downloading the application to the server, where the request includes a download address of the default installation package.
1411、服务器向终端发送该默认安装包。1411. The server sends the default installation package to the terminal.
服务器可以根据该下载默认安装包请求向该终端发送该快应用的默认安装包。这里以图12为例进行说明,服务器中存储的该快应用的默认安装包如图12所示,那么此时服务器可以向终端发送该默认安装包,该默认安装包当中包含有通用文件、高分辨率图片资源文件、竖屏布局资源文件以及中文资源文件。The server may send a default installation package of the quick application to the terminal according to the download default installation package request. 12 is taken as an example for description. The default installation package of the fast application stored in the server is as shown in FIG. 12, then the server can send the default installation package to the terminal, and the default installation package includes a common file and a high file. Resolution image resource file, vertical screen layout resource file, and Chinese resource file.
1412、终端确定该默认安装包具备服务器的数据签名。1412. The terminal determines that the default installation package has a data signature of the server.
1413、终端按照预设规则将该默认安装包解压至目标安装目录。1413. The terminal extracts the default installation package to the target installation directory according to a preset rule.
步骤1412至步骤1413与前述图10中的步骤1015至步骤1016类似,具体此处不再赘述。Steps 1412 to 1413 are similar to steps 1015 to 1016 in FIG. 10 described above, and details are not described herein again.
1414、终端判断该默认安装包的文件与其配置信息是否匹配,若是,则执行步骤1415;若否,则执行步骤1416。1414. The terminal determines whether the file of the default installation package matches its configuration information. If yes, step 1415 is performed; if no, step 1416 is performed.
终端对该默认安装包进行解压之后,可以判断该默认安装包的文件与其配置信息是否匹配,如果匹配,那么执行步骤1415;如果不匹配,那么执行步骤1416。示例性的,如图6-A的平板电脑,该平板电脑为竖屏布局的使用状态,假设该平板电脑分辨率为720*1280,使用的语言为中文,那么从图12可知,6-A的平板电脑与服务器预置的默认配置信息一致;再举例说明不匹配的情况,如6-B所示的平板电脑,该平板电脑使用的语言为英文,屏幕分辨率为480*800,从图中可知当前为横屏使用状态,那么可知,6-B的平板电脑的配置信息与该服务器预置的默认配置信息不一致。After the terminal decompresses the default installation package, it can be determined whether the file of the default installation package matches its configuration information. If yes, step 1415 is performed; if not, step 1416 is performed. Exemplarily, as shown in the tablet of FIG. 6-A, the tablet is in a state of use of a vertical screen layout. Assuming that the resolution of the tablet is 720*1280 and the language used is Chinese, then as shown in FIG. 12, 6-A The tablet is consistent with the default configuration information of the server preset; another example is the mismatch, such as the tablet shown in 6-B, the language of the tablet is English, the screen resolution is 480*800, from the figure It can be seen that the current status is the horizontal screen usage. It can be seen that the configuration information of the 6-B tablet is inconsistent with the default configuration information preset by the server.
1415、终端运行该快应用。1415. The terminal runs the fast application.
步骤1415与前述图2中的步骤216类似,具体此处不再赘述。Step 1415 is similar to step 216 in FIG. 2 above, and details are not described herein again.
1416、终端向服务器发送第二下载请求消息。1416. The terminal sends a second download request message to the server.
当终端确定其配置信息与预置的默认配置信息时,终端可以获取其配置信息,然后终端可以向服务器发送第二下载请求消息,其中,该第二下载请求消息包含有该终端的配置信息,其中,该配置信息可以包括该终端的屏幕分辨率信息、当前使用的语言环境信息以及当前布局使用状态信息等,具体此处不做限定。When the terminal determines the configuration information and the preset default configuration information, the terminal may obtain the configuration information, and then the terminal may send a second download request message to the server, where the second download request message includes configuration information of the terminal. The configuration information may include the screen resolution information of the terminal, the currently used locale information, and the current layout usage status information, which are not limited herein.
1417、服务器向终端发送第二下载资源列表。1417. The server sends a second download resource list to the terminal.
服务器接收到该第二下载请求消息之后,服务器可以根据该第二下载请求消息中携带的该终端的配置信息为该终端确定与该终端的配置相匹配的至少一个资源包,具体可以是,该服务器可以确定该终端的配置信息与该预置的默认配置信息中的不相同的配置信息,这里将该不相同的配置信息称为差异配置信息,然后服务器可以根据该差异配置信息为该终端匹配与该差异配置信息匹配的该快应用的至少一个资源包,然后将该至少一个资源包的下载地址填写至第二下载资源列表。如图6-B所示的平板电脑,可知,该平板电脑的配置信息与该预置的默认配置信息的差异配置信息为该平板电脑的屏幕分辨率为400*800、使用的语言环境为英文,使用的布局状态为横屏布局。After the server receives the second download request message, the server may determine, according to the configuration information of the terminal that is carried in the second download request message, the at least one resource package that matches the configuration of the terminal, where specifically, the The server may determine configuration information of the terminal that is different from the default configuration information of the preset, where the different configuration information is referred to as difference configuration information, and then the server may match the terminal according to the difference configuration information. And at least one resource package of the fast application that matches the difference configuration information, and then filling the download address of the at least one resource package into the second download resource list. As shown in Figure 6-B, the difference between the configuration information of the tablet and the default configuration information of the preset is that the screen resolution of the tablet is 400*800, and the language environment used is English. The layout state used is the horizontal screen layout.
1418、终端向服务器发送下载该快应用的至少一个资源包请求。1418. The terminal sends, to the server, at least one resource package request for downloading the fast application.
终端可以向服务器发送下载该快应用的至少一个资源包请求,其中,该请求包含有该至少一个资源包的下载地址;需要说明的是,终端需要请求多个资源包时,可以发送多次请求,每次请求携带相应的资源包的下载地址即可。示例性的,图6-B的平板电脑可以向服务器发送英文资源包的请求、横屏布局资源包的请求以及中分辨率图片资源包的请求,每个请求当中携带对应的资源包的下载地址。The terminal may send, to the server, at least one resource package request for downloading the fast application, where the request includes a download address of the at least one resource package; it should be noted that when the terminal needs to request multiple resource packets, the terminal may send multiple requests. Each request carries the download address of the corresponding resource bundle. Exemplarily, the tablet of FIG. 6-B can send a request for an English resource package, a request for a horizontal screen layout resource package, and a request for a medium resolution picture resource package to the server, where each request carries a download address of the corresponding resource package. .
1419、终端接收该服务器发送的该快应用的至少一个资源包。1419. The terminal receives at least one resource package of the fast application sent by the server.
终端接收服务器发送的该快应用的至少一个资源包;示例性的,图6-B的平板电脑向服务器发送相应的请求之后,可以接收服务器发送的资源包,具体如图15所示,有该快应用的中分辨率资源包,横屏布局资源包以及英文资源包。The terminal receives at least one resource package of the fast application sent by the server; for example, after the tablet computer of FIG. 6-B sends a corresponding request to the server, the resource packet sent by the server may be received, as shown in FIG. Fast application medium resolution resource package, horizontal screen layout resource package and English resource package.
1420、终端确定该至少一个资源包具备该服务器的数据签名。1420. The terminal determines that the at least one resource package has a data signature of the server.
终端接收到该至少一个资源包后,可以确定该资源包是否具备该服务器的数据签名,如果是,则终端可以确定该至少一个资源包合法,如果不是,则终端可以返回操作错误。After receiving the at least one resource package, the terminal may determine whether the resource package has the data signature of the server. If yes, the terminal may determine that the at least one resource package is legal. If not, the terminal may return an operation error.
1421、终端按照预设规则将该至少一个资源包解压至目标安装目录。1421. The terminal decompresses the at least one resource package to a target installation directory according to a preset rule.
终端可以将该至少一个资源包解压至目标安装目录中,具体的解压过程可以参阅前述图10中的步骤1023中终端解压该至少一个资源包的解压方式对该至少一个资源包进行解压,具体此处不再详细介绍。The terminal may decompress the at least one resource package to the target installation directory. For the specific decompression process, refer to step 1023 in the foregoing step 1023 to decompress the at least one resource packet by decompressing the at least one resource packet. It will not be described in detail.
1422、终端运行该快应用。1422. The terminal runs the fast application.
步骤1422与前述图2中的步骤1024类似,具体此处不再赘述。Step 1422 is similar to step 1024 in FIG. 2 above, and details are not described herein again.
本申请实施例中,终端获取到默认安装包,当该默认安装包的文件与该终端的配置信息匹配时,那么终端可以运行该快应用;当该默认安装包的文件与该终端的配置信息不匹配时,该终端可以获取至少一个资源包,该至少一个资源包为该服务器根据该终端的配置信息为该终端确定的与该终端的配置相匹配的资源包,因此,该终端获取到的目标安装包当中包含默认安装包和至少一个资源包,该目标安装包相对于该快应用的完整安装包较小,那么终端下载该目标安装包所需的时长会小于该终端下载该快应用的完整安装包所需的时长,因此,减少了终端下载快应用的下载时间,从而提高用户的体验。In this embodiment, the terminal obtains the default installation package. When the file of the default installation package matches the configuration information of the terminal, the terminal may run the fast application; when the default installation package file and the terminal configuration information If the terminal does not match, the terminal may acquire at least one resource package, where the at least one resource package is a resource package that is determined by the server according to the configuration information of the terminal and matches the configuration of the terminal, and therefore, the terminal acquires The target installation package includes a default installation package and at least one resource package. The target installation package is smaller than the full installation package of the fast application, and the terminal downloading the target installation package may take less time than the terminal downloads the fast application. The length of time required to completely install the package, thus reducing the download time of the terminal downloading the fast application, thereby improving the user experience.
上面对本申请实施例中的数据处理方法进行了描述,下面对本申请实施例中的终端进行描述,请参阅图16,其中,接收单元1603、解压单元1604、运行单元1605、验证单元1606以及确定单元1607为可选单元,本申请实施例中终端的一个实施例包括:The data processing method in the embodiment of the present application is described above. The following describes the terminal in the embodiment of the present application. Referring to FIG. 16, the receiving unit 1603, the decompressing unit 1604, the running unit 1605, the verifying unit 1606, and the determining unit are described. 1607 is an optional unit. One embodiment of the terminal in this embodiment of the present application includes:
发送单元1601,用于向服务器发送下载请求消息,该下载请求消息为该终端请求下载应用的请求消息,该下载请求消息包含该终端的设备信息,该应用在该服务器中的完整安装包存储有至少两个安装包,该至少两个安装包适配于至少两种不同配置的终端;The sending unit 1601 is configured to send, to the server, a download request message, where the download request message is a request message for downloading an application, where the download request message includes device information of the terminal, where the application stores the complete installation package in the server. At least two installation packages, the at least two installation packages being adapted to at least two differently configured terminals;
获取单元1602,用于获取该应用的目标安装包,该目标安装包为该服务器根据该设备信息为该终端确定的与该终端的配置相匹配的安装包,该目标安装包为该至少两个安装包中的一个。The obtaining unit 1602 is configured to obtain a target installation package of the application, where the target installation package is an installation package determined by the server according to the device information and matched with a configuration of the terminal, where the target installation package is the at least two One of the installation packages.
本实施例中,该终端还包括:In this embodiment, the terminal further includes:
接收单元1603,用于接收该服务器发送的下载响应消息,该下载响应消息包含该应用的目标安装包的下载地址;The receiving unit 1603 is configured to receive a download response message sent by the server, where the download response message includes a download address of the target installation package of the application;
对应地,该获取单元1602具体用于:Correspondingly, the obtaining unit 1602 is specifically configured to:
根据该下载响应信息中包含的该应用的目标安装包的下载地址从该服务器下载该应用的目标安装包。The target installation package of the application is downloaded from the server according to the download address of the target installation package of the application included in the download response information.
本实施例中,该应用的目标安装包包括该应用的主安装包和该应用的至少一个资源包,该主安装包包含该应用的通用文件,该应用的至少一个资源包包含该服务器根据该设备信息为该终端匹配的该应用的资源文件。In this embodiment, the target installation package of the application includes a main installation package of the application and at least one resource package of the application, the main installation package includes a general file of the application, and at least one resource package of the application includes the server according to the The device information is a resource file of the application that the terminal matches.
本实施例中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件;该至少一个资源包包括布局资源包、语言资源包和图片资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,该第一等级分辨率大于第二等级分辨率,该第二等级分辨率大于第三等级分辨率。In this embodiment, the universal file of the application includes a general configuration file of the application and a universal resource file of the application; the at least one resource package includes a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen. The layout resource package or the horizontal layout resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes a first level resolution picture resource package and a second level resolution picture resource package. Or a third level resolution picture resource package, the first level resolution being greater than the second level resolution, the second level resolution being greater than the third level resolution.
本实施例中,该设备信息包括该终端的配置信息,且该终端的配置信息与该服务器预置的默认配置信息一致,该应用的目标安装包包括该应用的默认安装包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件。In this embodiment, the device information includes configuration information of the terminal, and the configuration information of the terminal is consistent with the default configuration information preset by the server, and the target installation package of the application includes a default installation package of the application, and the default installation package A generic file containing the application and a resource file for the application that matches the preset default configuration information.
本实施例中,该设备信息包括该终端的配置信息;该终端的配置信息与该预置的配置信息不完全相同,其中,当该终端的配置信息与该预置的配置信息完全不同时,该预置的配置信息中的至少一种资源配置包含至少三种参数类型;该应用的目标安装包包括该应用的默认安装包和该应用的至少一个资源包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该应用的至少一个资源包包含与差异配置信息匹配的该应用的资源文件,该差异配置信息为该配置信息中与该预置的默认配置信息不相同的部分配置信息。In this embodiment, the device information includes configuration information of the terminal; the configuration information of the terminal is not completely the same as the preset configuration information, where when the configuration information of the terminal is completely different from the preset configuration information, At least one resource configuration of the preset configuration information includes at least three parameter types; the target installation package of the application includes a default installation package of the application and at least one resource package of the application, where the default installation package includes the application a common file and a resource file of the application that matches the default configuration information of the preset, the at least one resource package of the application includes a resource file of the application that matches the difference configuration information, where the difference configuration information is in the configuration information The preset configuration information of the preset is not the same as the partial configuration information.
本实施例中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件;该至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,第二等级分辨率大于第三等级分辨率。In this embodiment, the universal file of the application includes a general configuration file of the application and a universal resource file of the application; the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package, where The layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource package and a second The level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
本实施例中,该终端还包括:In this embodiment, the terminal further includes:
解压单元1604、用于按照预设的解压规则将该应用的目标安装包解压至目标安装目录;The decompressing unit 1604 is configured to decompress the target installation package of the application to the target installation directory according to a preset decompression rule;
运行单元1605,用于运行该应用。The running unit 1605 is configured to run the application.
本实施例中,该终端还包括:In this embodiment, the terminal further includes:
验证单元1606,用于验证该应用的目标安装包是否具备该服务器的数据签名;The verification unit 1606 is configured to verify whether the target installation package of the application has the data signature of the server;
确定单元1606,用于确定该应用的目标安装包合法。The determining unit 1606 is configured to determine that the target installation package of the application is legal.
本实施例中,该应用包括快应用。In this embodiment, the application includes a fast application.
本申请实施例中,发送单元1602向服务器发送下载请求消息,该下载请求消息携带有该终端的设备信息,该获取单元1602获取到的该快应用的目标安装包,其中该目标安装包为该服务器根据该设备信息为该终端确定的与该终端的配置相匹配的安装包,因此,该目标安装包相对于该快应用的完整安装包较小,那么终端下载该目标安装包所需的时长会小 于该终端下载该快应用的完整安装包所需的时长,因此,减少了终端下载快应用的下载时间,从而提高用户的体验。In the embodiment of the present application, the sending unit 1602 sends a download request message to the server, where the download request message carries the device information of the terminal, and the acquiring unit 1602 acquires the target installation package of the fast application, where the target installation package is the target installation package. The server determines, according to the device information, an installation package that is determined by the terminal to match the configuration of the terminal. Therefore, the target installation package is smaller than the complete installation package of the quick application, and the length of time required for the terminal to download the target installation package. It will be less than the length of time required for the terminal to download the full installation package of the fast application. Therefore, the download time of the terminal downloading the fast application is reduced, thereby improving the user experience.
下面通过介绍本申请实施例中终端的另一种结构示意图,请求参阅图17,其中,接收单元1703、解压单元1704、判断单元1705、运行单元1706、验证单元1707以及确定单元1708为可选单元,本申请实施例中终端的一个实施例包括:The following is a schematic diagram of another structure of the terminal in the embodiment of the present application. Referring to FIG. 17, the receiving unit 1703, the decompressing unit 1704, the determining unit 1705, the running unit 1706, the verifying unit 1707, and the determining unit 1708 are optional units. An embodiment of the terminal in this embodiment of the present application includes:
发送单元1701,用于向服务器发送第一下载请求消息,该第一下载请求消息为该终端请求下载应用的请求消息,该应用为在该服务器中存储有至少两个安装包的应用,该至少两个安装包适配于至少两种不同配置的终端;The sending unit 1701 is configured to send, to the server, a first download request message, where the first download request message is a request message for downloading an application, where the application is an application that stores at least two installation packages in the server, where the at least Two installation packages are adapted to terminals of at least two different configurations;
获取单元1702,用于获取该应用的默认安装包,该默认安装包包含该应用的通用文件和与该服务器中预置的配置信息匹配的该应用的资源文件。The obtaining unit 1702 is configured to obtain a default installation package of the application, where the default installation package includes a common file of the application and a resource file of the application that matches configuration information preset in the server.
本实施例中,该终端还包括:In this embodiment, the terminal further includes:
接收单元1703,用于接收该服务器发送的第一下载响应消息,该第一下载响应消息包含该应用的默认安装包的下载地址;The receiving unit 1703 is configured to receive a first download response message sent by the server, where the first download response message includes a download address of a default installation package of the application;
对应地,该获取单元1702具体用于:Correspondingly, the obtaining unit 1702 is specifically configured to:
根据该第一下载响应消息中包含的该默认安装包的下载地址从该服务器下载该应用的默认安装包。The default installation package of the application is downloaded from the server according to the download address of the default installation package included in the first download response message.
本实施例中,该终端还包括:In this embodiment, the terminal further includes:
解压单元1704,用于按照预设的解压规则将该应用的默认安装包解压至目标安装目录;The decompressing unit 1704 is configured to decompress the default installation package of the application to the target installation directory according to a preset decompression rule;
判断单元1705,用于判断该默认安装包的文件与该终端的配置信息是否匹配;The determining unit 1705 is configured to determine whether the file of the default installation package matches the configuration information of the terminal;
运行单元1706,用于运行该应用。The running unit 1706 is configured to run the application.
本实施例中,该终端还包括:In this embodiment, the terminal further includes:
验证单元1707,用于验证该应用的默认安装包是否具备该服务器的数据签名;The verification unit 1707 is configured to verify whether the default installation package of the application has the data signature of the server;
确定单元1708,用于确定该应用的默认安装包合法。The determining unit 1708 is configured to determine a default installation package of the application.
本实施例中,该发送单元还用于:In this embodiment, the sending unit is further configured to:
向该服务器发送第二下载请求消息,该第二下载请求消息包含该终端的配置信息;Sending a second download request message to the server, where the second download request message includes configuration information of the terminal;
该获取单元还用于:The acquisition unit is also used to:
获取该应用的至少一个资源包,该至少一个资源包包含该服务器根据差异配置信息为该终端匹配的资源文件,该差异配置信息为该终端的配置信息与该预置的配置信息不相同的部分配置信息。Acquiring at least one resource package of the application, where the at least one resource package includes a resource file that is matched by the server according to the difference configuration information, where the difference configuration information is that the configuration information of the terminal is different from the preset configuration information. Configuration information.
本实施例中,该接收单元1703还用于:In this embodiment, the receiving unit 1703 is further configured to:
接收该服务器发送的第二下载响应消息,该第二下载响应消息包含该应用的至少一个资源包的下载地址;Receiving a second download response message sent by the server, where the second download response message includes a download address of the at least one resource package of the application;
对应地,该获取单元具体用于:Correspondingly, the obtaining unit is specifically configured to:
根据该第二下载响应消息中包含的该至少一个资源包的下载地址从该服务器下载所述应用的至少一个资源包。And downloading, by the server, at least one resource package of the application according to the download address of the at least one resource package included in the second download response message.
本实施例中,该解压单元1704还用于:In this embodiment, the decompression unit 1704 is further configured to:
根据该预设的解压规则将该应用的至少一个资源包解压至目标安装目录;Decompressing at least one resource package of the application to the target installation directory according to the preset decompression rule;
该运行单元1706具体用于运行所述应用。The running unit 1706 is specifically configured to run the application.
本实施例中,该验证单元1707还用于验证该至少一个资源包是否具备该服务器的数据签名;In this embodiment, the verification unit 1707 is further configured to verify whether the at least one resource package has a data signature of the server;
该确定单元1708还用于确定该至少一个资源包合法。The determining unit 1708 is further configured to determine that the at least one resource package is legal.
本实施例中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件。In this embodiment, the universal file of the application includes a general configuration file of the application and a universal resource file of the application.
本实施例中,该至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,所述图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于所述第二等级分辨率,第二等级分辨率大于第三等级分辨率。In this embodiment, the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package The Chinese resource package includes an English resource package, an English resource package, or another language resource package, where the image resource package includes a first level resolution picture resource package, a second level resolution picture resource package, or a third level resolution picture resource package, and the first level The resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
本实施例中,该应用包括快应用。In this embodiment, the application includes a fast application.
本申请实施例中,获取单元1702获取到默认安装包,当该默认安装包的文件与该终端的配置信息匹配时,那么运行单元1706可以运行该快应用;当该默认安装包的文件与该终端的配置信息不匹配时,该获取单元1702可以获取至少一个资源包,该至少一个资源包为该服务器根据该终端的配置信息为该终端确定的与该终端的配置相匹配的资源包,因此,该获取单元1702获取到的目标安装包当中包含默认安装包和至少一个资源包,该目标安装包相对于该快应用的完整安装包较小,那么终端下载该目标安装包所需的时长会小于该终端下载该快应用的完整安装包所需的时长,因此,减少了终端下载快应用的下载时间,从而提高用户的体验。In the embodiment of the present application, the obtaining unit 1702 obtains a default installation package. When the file of the default installation package matches the configuration information of the terminal, the running unit 1706 may run the quick application; when the file of the default installation package is When the configuration information of the terminal does not match, the obtaining unit 1702 may acquire at least one resource package, where the at least one resource package is a resource package that is determined by the server according to the configuration information of the terminal and matches the configuration of the terminal. The target installation package obtained by the obtaining unit 1702 includes a default installation package and at least one resource package, and the target installation package is smaller than the complete installation package of the quick application, and the time required for the terminal to download the target installation package is It is less than the length of time required for the terminal to download the complete installation package of the fast application, thereby reducing the download time of the terminal downloading the fast application, thereby improving the user experience.
上面对本申请实施例中的数据处理方法进行了描述,下面对本申请实施例中服务器进行描述,请参阅图18,其中,第二发送单元1804、第二接收单元1805、拆分单元1806、注册单元1807、标记单元1808、验证单元1809以及触发单元1810为可选单元,本申请实施例中服务器的一个实施例包括:The data processing method in the embodiment of the present application is described above. The following describes the server in the embodiment of the present application. Referring to FIG. 18, the second sending unit 1804, the second receiving unit 1805, the splitting unit 1806, and the registration unit are described. 1807, the marking unit 1808, the verification unit 1809, and the triggering unit 1810 are optional units. One embodiment of the server in this embodiment of the present application includes:
第一接收单元1801,用于接收终端发送的下载请求消息,该下载请求消息为该终端请求下载应用的请求消息,该下载请求消息包含该终端的设备信息,该应用在所述服务器中的完整安装包中存储有至少两个安装包,该至少两个安装包适配于至少两种不同配置的终端;The first receiving unit 1801 is configured to receive a download request message sent by the terminal, where the download request message is a request message for the terminal to download an application, where the download request message includes device information of the terminal, and the application is complete in the server. The installation package stores at least two installation packages, and the at least two installation packages are adapted to at least two terminals of different configurations;
确定单元1802,用于根据该终端的设备信息为该终端确定与该终端的配置相匹配该应用的目标安装包,该目标安装包为该至少两个安装包中的一个;The determining unit 1802 is configured to determine, according to the device information of the terminal, the target installation package of the application that matches the configuration of the terminal, where the target installation package is one of the at least two installation packages;
第一发送单元1803,用于向该终端发送该应用的目标安装包。The first sending unit 1803 is configured to send a target installation package of the application to the terminal.
本实施例中,该服务器还包括:In this embodiment, the server further includes:
第二发送单元1804,用于向该终端发送下载响应消息,该下载响应消息包含该应用的目标安装包的下载地址,该下载响应消息用于该终端从该服务器中下载该应用的目标安装包;The second sending unit 1804 is configured to send a download response message to the terminal, where the download response message includes a download address of the target installation package of the application, and the download response message is used by the terminal to download the target installation package of the application from the server. ;
第一发送单元具体用于:The first sending unit is specifically configured to:
根据该目标安装包的下载地址向该终端发送该应用的目标安装包。The target installation package of the application is sent to the terminal according to the download address of the target installation package.
本实施例中,该应用的目标安装包包括该应用的主安装包和该应用的至少一个资源包,该主安装包包含该应用的通用文件,该应用的至少一个资源包包含该服务器根据该设备信息为该终端匹配的该应用的资源文件。In this embodiment, the target installation package of the application includes a main installation package of the application and at least one resource package of the application, the main installation package includes a general file of the application, and at least one resource package of the application includes the server according to the The device information is a resource file of the application that the terminal matches.
本实施例中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件;该至少一个资源包包括布局资源包、语言资源包和图片资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,该第一等级分辨率大于第二等级分辨率,该第二等级分辨率大于第三等级分辨率。In this embodiment, the universal file of the application includes a general configuration file of the application and a universal resource file of the application; the at least one resource package includes a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen. The layout resource package or the horizontal layout resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes a first level resolution picture resource package and a second level resolution picture resource package. Or a third level resolution picture resource package, the first level resolution being greater than the second level resolution, the second level resolution being greater than the third level resolution.
本实施例中,该终端的设备信息包括该终端的配置信息;该确定单元1802具体用于:In this embodiment, the device information of the terminal includes configuration information of the terminal; the determining unit 1802 is specifically configured to:
确定该配置信息与该服务器中预置的默认配置信息一致;Determining that the configuration information is consistent with the default configuration information preset in the server;
为该终端确定与该终端的配置相匹配该应用的默认安装包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件。Determining, for the terminal, a default installation package for the application that matches the configuration of the terminal, the default installation package containing a generic file for the application and a resource file for the application that matches the preset default configuration information.
本实施例中,该设备信息包括该终端的配置信息;该终端的配置信息与该服务器中预置的配置信息不完全相同,其中,当该终端的配置信息与该预置的配置信息完全不相同时,该预置的配置信息中的至少一种资源配置包含至少三种参数类型;该确定单元1802具体用于:In this embodiment, the device information includes configuration information of the terminal; the configuration information of the terminal is not completely the same as the configuration information preset in the server, where the configuration information of the terminal and the preset configuration information are not at all When the same, the at least one resource configuration of the preset configuration information includes at least three parameter types; the determining unit 1802 is specifically configured to:
确定该配置信息与预置的默认配置信息不一致;Determining that the configuration information is inconsistent with the preset default configuration information;
为该终端确定与该终端的配置相匹配该应用的默认安装包和该应用的至少一个资源包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该应用的至少一个资源包包含与差异配置信息匹配的该应用的资源文件,该差异配置信息为该配置信息中与该预置的默认配置信息不相同的部分配置信息。Determining, for the terminal, a default installation package of the application and at least one resource package of the application, the default installation package including a common file of the application and the application matching the default configuration information of the preset And a resource file, where the at least one resource package of the application includes a resource file of the application that matches the difference configuration information, where the difference configuration information is part of the configuration information that is different from the preset default configuration information.
本实施例中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件,该至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,第二等级分辨率大于第三等级分辨率。In this embodiment, the universal file of the application includes a general configuration file of the application and a universal resource file of the application, and the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package, where The layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource package and a second The level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
本实施例中,该服务器还包括:In this embodiment, the server further includes:
第二接收单元1805,用于接收应用开发设备发送的该应用的完整安装包,该完整安装包包括该至少两个安装包中适配于该至少两种不同配置的终端的文件,该完整安装包为所述应用开发设备根据预设的文件放置规则生成的该应用的安装包;a second receiving unit 1805, configured to receive a complete installation package of the application sent by the application development device, where the complete installation package includes files of the at least two installation packages that are adapted to the at least two different configurations, the complete installation The package is an installation package of the application generated by the application development device according to a preset file placement rule;
拆分单元1806,用于根据预设的拆包规则将该完整安装包拆分为多个子包;The splitting unit 1806 is configured to split the complete installation package into multiple sub-packets according to a preset unpacking rule;
注册单元1807,用于将该多个子包在该服务器上进行注册,以使得该多个子包与该应用关联。The registration unit 1807 is configured to register the plurality of sub-packets on the server, so that the plurality of sub-packets are associated with the application.
本实施例中,该拆分单元1806具体用于:In this embodiment, the splitting unit 1806 is specifically configured to:
根据资源配置规则将该完整安装包拆分为该应用的主安装包和该应用的至少两个资源包,该主安装包包含该应用的通用文件,该至少两个资源包包含该应用所述完整安装包中除该通用文件以外的其他资源文件。Splitting the complete installation package into the application's main installation package and at least two resource packages of the application according to the resource configuration rule, the main installation package includes a general file of the application, and the at least two resource packages include the application A resource file other than the generic file in the full installation package.
本实施例中,该拆分单元1806具体用于:In this embodiment, the splitting unit 1806 is specifically configured to:
根据预设的默认配置规则以及预设的资源配置规则将该完整安装包拆分为该应用的默 认安装包和该应用的至少一个资源包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该至少一个资源包包含该应用的其他资源文件,该应用的其他资源文件为该完整安装包中除该与预置的默认信息匹配的该应用的资源文件和该通用文件以外的资源文件。Splitting the complete installation package into the default installation package of the application and at least one resource package of the application according to a preset default configuration rule and a preset resource configuration rule, the default installation package includes a common file of the application and The resource file of the application matched by the preset default configuration information, the at least one resource package includes other resource files of the application, and the other resource files of the application are the ones of the complete installation package that match the preset default information. The resource file of the application and the resource file other than the common file.
本实施例中,该服务器还包括:In this embodiment, the server further includes:
标记单元1808,用于对该多个子包标记数据签名。The marking unit 1808 is configured to sign the data of the plurality of sub-packets.
本实施例中,该服务器还包括:In this embodiment, the server further includes:
验证单元1809,用于验证该完整安装包的数据签名与预置的账号配置签名是否匹配;The verification unit 1809 is configured to verify whether the data signature of the complete installation package matches the preset account configuration signature.
触发单元1810,用于触发该服务器根据预设的拆包父子将该完整安装包拆分为多个子包。The trigger unit 1810 is configured to trigger the server to split the complete installation package into multiple sub-packets according to a preset unpacking parent.
本申请实施例中,第一接收单元1801接收终端发送的下载请求消息,该下载请求消息为该终端请求下载应用的请求消息,该应用在服务器上存储有至少两个安装包,该至少两个安装包适配于至少两种不同配置的终端,该下载请求消息携带有该终端的设备信息,确定单元1802根据该终端的设备信息为该终端确定与该终端的配置相匹配该应用的目标安装包,该目标安装包为该至少两个安装包中的一个,然后第一发送单元1803向终端发送该应用的目标安装包,因此,该目标安装包相对于该应用的完整安装包较小,那么终端下载该目标安装包所需的时长会小于该终端下载该应用的完整安装包所需的时长,因此,减少了终端下载应用的下载时间,从而提高用户的体验。In the embodiment of the present application, the first receiving unit 1801 receives a download request message sent by the terminal, where the download request message is a request message for the terminal to download an application, where the application stores at least two installation packages, the at least two The installation package is adapted to the terminal of the at least two different configurations, the download request message carries the device information of the terminal, and the determining unit 1802 determines, according to the device information of the terminal, the target installation of the application that matches the configuration of the terminal. a package, the target installation package is one of the at least two installation packages, and then the first sending unit 1803 sends the target installation package of the application to the terminal, so the target installation package is smaller than the complete installation package of the application. Then, the length of time required for the terminal to download the target installation package is less than the length of time required for the terminal to download the complete installation package of the application, thereby reducing the download time of the terminal downloading the application, thereby improving the user experience.
本申请实施例中,图18所示的服务器中各个单元还可以实现以下内容:In the embodiment of the present application, each unit in the server shown in FIG. 18 can also implement the following contents:
第一接收单元1801,用于接收终端发送的第一下载请求消息,该第一下载请求消息为该终端请求下载应用的请求消息,该应用为在该服务器中存储有至少两个安装包的应用,该至少两个安装包适配于至少两种不同配置的终端;The first receiving unit 1801 is configured to receive a first download request message sent by the terminal, where the first download request message is a request message for the terminal to download an application, where the application is an application that stores at least two installation packages in the server. The at least two installation packages are adapted to the terminal of at least two different configurations;
第一发送单元1802,用于向该终端发送该应用的默认安装包,该默认安装包包含该应用的通用文件和与该服务器中预置的配置信息匹配的该应用的资源文件。The first sending unit 1802 is configured to send, to the terminal, a default installation package of the application, where the default installation package includes a common file of the application and a resource file of the application that matches configuration information preset in the server.
本实施例中,第二发送单元1804用于:In this embodiment, the second sending unit 1804 is configured to:
向该终端发送第一下载响应消息,该第一下载响应消息包含该应用的默认安装包的下载地址;Sending a first download response message to the terminal, where the first download response message includes a download address of a default installation package of the application;
对应地,第一发送单元1802具体用于:Correspondingly, the first sending unit 1802 is specifically configured to:
根据该第一下载响应消息中包含的该默认安装包的下载地址向该终端发送该应用的默认安装包。And sending a default installation package of the application to the terminal according to the download address of the default installation package included in the first download response message.
本实施例中,第一接收单元1801还用于:In this embodiment, the first receiving unit 1801 is further configured to:
接收该终端的第二下载请求消息,该第二下载请求消息包含该终端的配置信息;Receiving a second download request message of the terminal, where the second download request message includes configuration information of the terminal;
确定单元1802,用于根据该终端的配置信息为该终端确定与该终端的配置相匹配的该应用的至少一个资源包,该至少一个资源包包含与差异配置信息相匹配的该应用的资源文件,该差异配置信息为该终端的配置信息与该预置的配置信息中不相同的部分配置信息;a determining unit 1802, configured to determine, according to configuration information of the terminal, at least one resource package of the application that matches the configuration of the terminal, where the at least one resource package includes a resource file of the application that matches the difference configuration information. The difference configuration information is part of the configuration information of the terminal that is different from the preset configuration information;
第一发送单元1802,用于向该终端发送该至少一个资源包。The first sending unit 1802 is configured to send the at least one resource bundle to the terminal.
本实施例中,第二发送单元1804用于:In this embodiment, the second sending unit 1804 is configured to:
向该终端发送第二下载响应消息,该第二下载响应消息包含该应用的至少一个资源包 的下载地址;Sending a second download response message to the terminal, where the second download response message includes a download address of the at least one resource package of the application;
对应地,该第一发送单元1802具体用于:Correspondingly, the first sending unit 1802 is specifically configured to:
根据该第二下载响应消息中包含的该至少一个资源包的下载地址向该终端发送该至少一个资源包。And sending the at least one resource package to the terminal according to the download address of the at least one resource package included in the second download response message.
本实施例中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件;In this embodiment, the universal file of the application includes a general configuration file of the application and a universal resource file of the application;
本实施例中,该至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于所述第二等级分辨率,第二等级分辨率大于所述第三等级分辨率。In this embodiment, the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package The Chinese resource package, the English resource package or other language resource package includes a first level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package, and the first level is resolved. The rate is greater than the second level of resolution, and the second level of resolution is greater than the third level of resolution.
本实施例中,第二接收单元1805用于:In this embodiment, the second receiving unit 1805 is configured to:
接收该应用开发设备发送的该应用的完整安装包,该完整安装包包括该至少两个安装包中适配于该至少两种不同配置的终端的文件,该完整安装包为该应用开发设备根据预设的文件放置规则生成的该应用的安装包;Receiving a complete installation package of the application sent by the application development device, where the complete installation package includes files of the at least two installation packages that are adapted to the at least two different configurations, the complete installation package is The installation package of the application generated by the preset file placement rule;
拆分单元1806用于:The splitting unit 1806 is used to:
根据预设的拆包规则将该完整安装包拆分为多个子包;Split the complete installation package into multiple sub-packages according to the preset unpacking rules;
注册单元1807用于: Registration unit 1807 is used to:
将该多个子包在该服务器上进行注册,以使得该多个子包与该应用关联。The plurality of sub-packets are registered on the server such that the plurality of sub-packets are associated with the application.
本实施例中,该拆分单元1806具体用于:In this embodiment, the splitting unit 1806 is specifically configured to:
根据预设的默认配置规则以及预设的资源配置规则将该完整安装包拆分为该应用的默认安装包和该应用的至少一个资源包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该至少一个资源包包含该应用的其他资源文件,该应用的其他资源文件为该完整安装包中除该与该预置的默认配置信息匹配的该应用的资源文件和该通用文件以外的资源文件。Splitting the complete installation package into the default installation package of the application and at least one resource package of the application according to a preset default configuration rule and a preset resource configuration rule, the default installation package includes a common file of the application and The preset default configuration information matches the resource file of the application, and the at least one resource package includes other resource files of the application, and the other resource files of the application are in the complete installation package, except the default configuration information corresponding to the preset. The resource file for the application and the resource file other than the common file.
本实施例中,该应用包括快应用。In this embodiment, the application includes a fast application.
本申请实施例中,第一接收单元1801接收终端发送的下载请求消息,该下载请求消息为该终端请求下载应用的请求消息,该应用在服务器上存储有至少两个安装包,该至少两个安装包适配于至少两种不同配置的终端,然后第一发送单元1803向终端发送该应用的默认安装包,当该默认安装包的文件与该终端的配置信息匹配时,那么终端可以直接运行该应用,当该默认安装包的文件与该终端的配置信息不匹配时,该第一接收单元1801可以接收终端发送的第二下载请求消息,该第二下载请求消息携带有该终端的配置信息,然后确定单元1802根据该第二下载请求消息为该终端确定与该终端的配置匹配的至少一个资源包,然后第一发送单元1803将该至少一个资源包发送至终端,因此,终端接收到的该服务器发送的安装包相对于该应用的完整安装包较小,那么终端下载该接收到的该服务器发送的安装包所需的时长会小于该终端下载该应用的完整安装包所需的时长,因此,减少了终端下载应用的下载时间,从而提高用户的体验。In the embodiment of the present application, the first receiving unit 1801 receives a download request message sent by the terminal, where the download request message is a request message for the terminal to download an application, where the application stores at least two installation packages, the at least two The installation package is adapted to the terminal of at least two different configurations, and then the first sending unit 1803 sends the default installation package of the application to the terminal. When the file of the default installation package matches the configuration information of the terminal, the terminal can directly run. In the application, when the file of the default installation package does not match the configuration information of the terminal, the first receiving unit 1801 may receive a second download request message sent by the terminal, where the second download request message carries configuration information of the terminal. Then, the determining unit 1802 determines, for the terminal, at least one resource packet that matches the configuration of the terminal according to the second download request message, and then the first sending unit 1803 sends the at least one resource packet to the terminal, and therefore, the terminal receives the The installation package sent by the server is smaller than the complete installation package of the application, then the terminal When the desired length of the received transmission server installation package will be less than the length of the terminal to download the complete application is required to install the package, thus reducing the terminal to download the application download time, thereby improving the user experience.
上面对本申请实施例中的数据处理方法进行了描述,下面对本申请实施例中的应用开发设备进行描述,请参阅图19,本申请实施例中应用开发设备的一个实施例包括:The data processing method in the embodiment of the present application is described above. The application development device in the embodiment of the present application is described below. Referring to FIG. 19, an embodiment of the application development device in the embodiment of the present application includes:
生成单元1901,用于生成应用的完整安装包,该应用的完整安装包包含至少两个安装包,该至少两个安装包适配于至少两种配置的终端;a generating unit 1901, configured to generate a complete installation package of the application, where the complete installation package of the application includes at least two installation packages, and the at least two installation packages are adapted to the terminals of the at least two configurations;
发送单元1902,用于向服务器发送该完整安装包。The sending unit 1902 is configured to send the complete installation package to the server.
本实施例中,该生成单元1901具体用于:In this embodiment, the generating unit 1901 is specifically configured to:
根据预设的文件放置规则将该应用的文件进行放置,得到该应用的完整安装包。The application's file is placed according to a preset file placement rule to obtain a complete installation package of the application.
本发明实施例还提供了另一种终端,如图20所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:The embodiment of the present invention further provides another terminal. As shown in FIG. 20, for the convenience of description, only parts related to the embodiment of the present invention are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present invention. . The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the terminal is a mobile phone as an example:
图20示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图20,手机包括:射频(Radio Frequency,RF)电路1110、存储器1120、输入单元1130、显示单元1140、传感器1150、音频电路1160、无线保真(wireless fidelity,WiFi)模块1170、处理器1180、以及电源1190等部件。本领域技术人员可以理解,图20中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 20 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to FIG. 20, the mobile phone includes: a radio frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, a wireless fidelity (WiFi) module 1170, and a processor 1180. And power supply 1190 and other components. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 20 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
下面结合图20对手机的各个构成部件进行具体的介绍:The following describes the components of the mobile phone in detail with reference to FIG. 20:
RF电路1110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1180处理;另外,将设计上行的数据发送给基站。通常,RF电路1110包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1110还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 1110 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving the downlink information of the base station, and processing it to the processor 1180; in addition, transmitting the designed uplink data to the base station. Generally, RF circuit 1110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 1110 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
存储器1120可用于存储软件程序以及模块,处理器1180通过运行存储在存储器1120的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1120 can be used to store software programs and modules, and the processor 1180 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.). Moreover, memory 1120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元1130可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元1130可包括触控面板1131以及其他输入设备1132。触控面板1131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1131上或在触控面板1131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操 作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1180,并能接收处理器1180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1131。除了触控面板1131,输入单元1130还可以包括其他输入设备1132。具体地,其他输入设备1132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. The touch panel 1131, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1131 or near the touch panel 1131. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 1131 may include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1180 is provided and can receive commands from the processor 1180 and execute them. In addition, the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1131, the input unit 1130 may also include other input devices 1132. Specifically, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元1140可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1140可包括显示面板1141,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1141。进一步的,触控面板1131可覆盖显示面板1141,当触控面板1131检测到在其上或附近的触摸操作后,传送给处理器1180以确定触摸事件的类型,随后处理器1180根据触摸事件的类型在显示面板1141上提供相应的视觉输出。虽然在图20中,触控面板1131与显示面板1141是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1131与显示面板1141集成而实现手机的输入和输出功能。The display unit 1140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 1140 may include a display panel 1141. Alternatively, the display panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 1131 can cover the display panel 1141. After the touch panel 1131 detects a touch operation thereon or nearby, the touch panel 1131 transmits to the processor 1180 to determine the type of the touch event, and then the processor 1180 according to the touch event. The type provides a corresponding visual output on the display panel 1141. Although in FIG. 20, the touch panel 1131 and the display panel 1141 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated. Realize the input and output functions of the phone.
手机还可包括至少一种传感器1150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1141的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one type of sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1141 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路1160、扬声器1161,传声器1162可提供用户与手机之间的音频接口。音频电路1160可将接收到的音频数据转换后的电信号,传输到扬声器1161,由扬声器1161转换为声音信号输出;另一方面,传声器1162将收集的声音信号转换为电信号,由音频电路1160接收后转换为音频数据,再将音频数据输出处理器1180处理后,经RF电路1110以发送给比如另一手机,或者将音频数据输出至存储器1120以便进一步处理。An audio circuit 1160, a speaker 1161, and a microphone 1162 can provide an audio interface between the user and the handset. The audio circuit 1160 can transmit the converted electrical data of the received audio data to the speaker 1161, and convert it into a sound signal output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, and the audio circuit 1160 After receiving, it is converted into audio data, and then processed by the audio data output processor 1180, transmitted to the other mobile phone via the RF circuit 1110, or outputted to the memory 1120 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块1170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图20示出了WiFi模块1170,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1170, which provides users with wireless broadband Internet access. Although FIG. 20 shows the WiFi module 1170, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器1180是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1120内的软件程序和/或模块,以及调用存储在存储器1120内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1180可包括一个或多个处理单元;优选的,处理器1180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1180中。The processor 1180 is a control center for the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1120, and invoking data stored in the memory 1120, The phone's various functions and processing data, so that the overall monitoring of the phone. Optionally, the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1180.
手机还包括给各个部件供电的电源1190(比如电池),优选的,电源可以通过电源管理系统与处理器1180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset also includes a power source 1190 (such as a battery) that powers the various components. Preferably, the power source can be logically coupled to the processor 1180 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
在本申请实施例中,该终端所包括的处理器1180还具有以下功能:In the embodiment of the present application, the processor 1180 included in the terminal further has the following functions:
向服务器发送下载请求消息,该下载请求消息为该终端请求下载应用的请求消息,该下载请求消息包含该终端的设备信息,该应用在该服务器中的完整安装包存储有至少两个安装包,该至少两个安装包适配于至少两种不同配置的终端;Sending a download request message to the server, where the download request message is a request message for downloading an application, the download request message includes device information of the terminal, and the application has at least two installation packages stored in the complete installation package of the server. The at least two installation packages are adapted to terminals of at least two different configurations;
获取该应用的目标安装包,该目标安装包为该服务器根据该设备信息为该终端确定的与该终端的配置相匹配的安装包,该目标安装包为该至少两个安装包中的一个。Obtaining a target installation package of the application, where the target installation package is an installation package determined by the server according to the device information to match the configuration of the terminal, and the target installation package is one of the at least two installation packages.
一种可能的实现方式中,该处理器1180还用于:In a possible implementation manner, the processor 1180 is further configured to:
接收该服务器发送的下载响应消息,该下载响应消息包含该应用的目标安装包的下载地址;Receiving a download response message sent by the server, where the download response message includes a download address of the target installation package of the application;
该处理器1180具体用于:The processor 1180 is specifically configured to:
根据该下载响应信息中包含的该应用的目标安装包的下载地址从该服务器下载该应用的目标安装包。The target installation package of the application is downloaded from the server according to the download address of the target installation package of the application included in the download response information.
另一种可能的实现方式中,该应用的目标安装包包括该应用的主安装包和该应用的至少一个资源包,该主安装包包含该应用的通用文件,该应用的至少一个资源包包含该服务器根据该设备信息为该终端匹配的该应用的资源文件。In another possible implementation manner, the target installation package of the application includes a main installation package of the application and at least one resource package of the application, the main installation package includes a general file of the application, and at least one resource package of the application includes The server is a resource file of the application matched by the terminal according to the device information.
另一种可能的实现方式中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件;该至少一个资源包包括布局资源包、语言资源包和图片资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,该第一等级分辨率大于第二等级分辨率,该第二等级分辨率大于第三等级分辨率。In another possible implementation manner, the universal file of the application includes a general configuration file of the application and a universal resource file of the application; the at least one resource package includes a layout resource package, a language resource package, and a picture resource package, and the layout resource The package includes a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource package and a second level resolution. The rate picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
另一种可能的实现方式中,该设备信息包括该终端的配置信息,且该终端的配置信息与该服务器预置的默认配置信息一致,该应用的目标安装包包括该应用的默认安装包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件。In another possible implementation manner, the device information includes configuration information of the terminal, and the configuration information of the terminal is consistent with the default configuration information preset by the server, where the target installation package of the application includes a default installation package of the application, The default installation package contains the application's generic file and the application's resource file that matches the preset's default configuration information.
另一种可能的实现方式中,该设备信息包括该终端的配置信息;该终端的配置信息与该预置的配置信息不完全相同,其中,当该终端的配置信息与该预置的配置信息完全不同时,该预置的配置信息中的至少一种资源配置包含至少三种参数类型;该应用的目标安装包包括该应用的默认安装包和该应用的至少一个资源包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该应用的至少一个资源包包含与差异配置信息匹配的该应用的资源文件,该差异配置信息为该配置信息中与该预置的默认配置信息不相同的部分配置信息。In another possible implementation manner, the device information includes configuration information of the terminal; the configuration information of the terminal is not completely the same as the preset configuration information, where the configuration information of the terminal and the preset configuration information When completely different, at least one resource configuration in the preset configuration information includes at least three parameter types; the target installation package of the application includes a default installation package of the application and at least one resource package of the application, the default installation package a resource file containing the application and a resource file of the application matching the preset default configuration information, where the at least one resource package of the application includes a resource file of the application that matches the difference configuration information, and the difference configuration information is the configuration Part of the configuration information in the message that is different from the default configuration information of the preset.
另一种可能的实现方式中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件;该至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文 资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,第二等级分辨率大于第三等级分辨率。In another possible implementation, the universal file of the application includes a general configuration file of the application and a universal resource file of the application; the at least one resource package includes at least one of a layout resource package, a language resource package, and a picture resource package. The resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource. The packet, the second level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
另一种可能的实现方式中,该处理器1180还用于:In another possible implementation manner, the processor 1180 is further configured to:
按照预设的解压规则将该应用的目标安装包解压至目标安装目录;Decompress the target installation package of the application to the target installation directory according to the preset decompression rules;
运行该应用。Run the app.
另一种可能的实现方式中,该处理器1180还用于:In another possible implementation manner, the processor 1180 is further configured to:
验证该应用的目标安装包是否具备该服务器的数据签名;Verify that the target installation package for the application has the data signature for the server;
确定该应用的目标安装包合法。Make sure the target installation package for the app is legal.
另一种可能的实现方式中,该应用包括快应用。In another possible implementation, the application includes a fast application.
本申请实施例中,图20所示的手机的示意图中处理器1180还可以用于实现以下内容:In the embodiment of the present application, the processor 1180 in the schematic diagram of the mobile phone shown in FIG. 20 can also be used to implement the following content:
向服务器发送第一下载请求消息,该第一下载请求消息为该终端请求下载应用的请求消息,该应用为在该服务器中存储有至少两个安装包的应用,该至少两个安装包适配于至少两种不同配置的终端;Sending a first download request message to the server, where the first download request message is a request message for downloading an application, where the application is an application that stores at least two installation packages in the server, and the at least two installation packages are adapted. Terminals in at least two different configurations;
获取该应用的默认安装包,该默认安装包包含该应用的通用文件和与该服务器中预置的配置信息匹配的该应用的资源文件。Obtain the default installation package for the application, which contains the application's generic file and the application's resource file that matches the configuration information preset in the server.
一种可能的实现方式中,该处理器1180还用于:In a possible implementation manner, the processor 1180 is further configured to:
接收该服务器发送的第一下载响应消息,该第一下载响应消息包含该应用的默认安装包的下载地址;Receiving a first download response message sent by the server, where the first download response message includes a download address of a default installation package of the application;
该处理器1180具体用于:The processor 1180 is specifically configured to:
根据该第一下载响应消息中包含的该默认安装包的下载地址从该服务器下载该应用的默认安装包。The default installation package of the application is downloaded from the server according to the download address of the default installation package included in the first download response message.
另一种可能的实现方式中,该处理器1180还用于:In another possible implementation manner, the processor 1180 is further configured to:
按照预设的解压规则将该应用的默认安装包解压至目标安装目录;Extract the default installation package of the application to the target installation directory according to the preset decompression rules;
判断该默认安装包的文件与该终端的配置信息是否匹配;Determining whether the file of the default installation package matches the configuration information of the terminal;
运行该应用。Run the app.
另一种可能的实现方式中,该处理器1180还用于:In another possible implementation manner, the processor 1180 is further configured to:
验证该应用的默认安装包是否具备该服务器的数据签名;Verify that the application's default installation package has the data signature for the server;
确定该应用的默认安装包合法。Make sure the app's default installation package is legal.
另一种可能的实现方式中,该处理器1180还用于:In another possible implementation manner, the processor 1180 is further configured to:
向该服务器发送第二下载请求消息,该第二下载请求消息包含该终端的配置信息;Sending a second download request message to the server, where the second download request message includes configuration information of the terminal;
获取该应用的至少一个资源包,该至少一个资源包包含该服务器根据差异配置信息为该终端匹配的资源文件,该差异配置信息为该终端的配置信息与该预置的配置信息不相同的部分配置信息。Acquiring at least one resource package of the application, where the at least one resource package includes a resource file that is matched by the server according to the difference configuration information, where the difference configuration information is that the configuration information of the terminal is different from the preset configuration information. Configuration information.
另一种可能的实现方式中,该处理器1180还用于:In another possible implementation manner, the processor 1180 is further configured to:
接收该服务器发送的第二下载响应消息,该第二下载响应消息包含该应用的至少一个资源包的下载地址;Receiving a second download response message sent by the server, where the second download response message includes a download address of the at least one resource package of the application;
该处理器1180具体用于:The processor 1180 is specifically configured to:
根据该第二下载响应消息中包含的该至少一个资源包的下载地址从该服务器下载所述应用的至少一个资源包。And downloading, by the server, at least one resource package of the application according to the download address of the at least one resource package included in the second download response message.
另一种可能的实现方式中,该处理器1180还用于:In another possible implementation manner, the processor 1180 is further configured to:
根据该预设的解压规则将该应用的至少一个资源包解压至目标安装目录;Decompressing at least one resource package of the application to the target installation directory according to the preset decompression rule;
运行所述应用。Run the application.
另一种可能的实现方式中,该处理器1180还用于:In another possible implementation manner, the processor 1180 is further configured to:
验证该至少一个资源包是否具备该服务器的数据签名;Verifying that the at least one resource bundle has the data signature of the server;
确定该至少一个资源包合法。Determine that the at least one resource package is legal.
另一种可能的实现方式中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件。In another possible implementation, the universal file of the application includes a general configuration file of the application and a universal resource file of the application.
另一种可能的实现方式中,该至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,所述图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于所述第二等级分辨率,第二等级分辨率大于第三等级分辨率。In another possible implementation manner, the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package. The language resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes a first level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package. The first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
另一种可能的实现方式中,该应用包括快应用。In another possible implementation, the application includes a fast application.
本申请还提供一种服务器2100,请参阅图21,本申请实施例中服务器一个实施例包括:The present application further provides a server 2100. Referring to FIG. 21, an embodiment of the server in the embodiment of the present application includes:
处理器2101、存储器2102、输入输出设备2103以及总线2104;a processor 2101, a memory 2102, an input and output device 2103, and a bus 2104;
处理器2101、存储器2102、输入输出设备2103分别与总线2104相连,该存储器中存储有计算机指令;The processor 2101, the memory 2102, and the input/output device 2103 are respectively connected to the bus 2104, where the computer instruction is stored in the memory;
该输入输出设备2103用于接收终端发送的下载请求消息,该下载请求消息为该终端请求下载应用的请求消息,该下载请求消息包含该终端的设备信息,该应用在所述服务器中的完整安装包中存储有至少两个安装包,该至少两个安装包适配于至少两种不同配置的终端;The input and output device 2103 is configured to receive a download request message sent by the terminal, where the download request message is a request message for the terminal to download an application, where the download request message includes device information of the terminal, and the application is completely installed in the server. At least two installation packages are stored in the package, and the at least two installation packages are adapted to at least two terminals of different configurations;
该处理器2101用于根据该终端的设备信息为该终端确定与该终端的配置相匹配该应用的目标安装包,该目标安装包为该至少两个安装包中的一个;The processor 2101 is configured to determine, according to device information of the terminal, a target installation package of the application that matches the configuration of the terminal, where the target installation package is one of the at least two installation packages;
该输入输出设备2103用于向该终端发送该应用的目标安装包。The input and output device 2103 is configured to send a target installation package of the application to the terminal.
一种可能的实现方式中,该输入输出设备2103还用于:In a possible implementation manner, the input/output device 2103 is further configured to:
向该终端发送下载响应消息,该下载响应消息包含该应用的目标安装包的下载地址,该下载响应消息用于该终端从该服务器中下载该应用的目标安装包;Sending a download response message to the terminal, where the download response message includes a download address of the target installation package of the application, and the download response message is used by the terminal to download the target installation package of the application from the server;
该输入输出设备具体用于:The input and output device is specifically used to:
根据该目标安装包的下载地址向该终端发送该应用的目标安装包。The target installation package of the application is sent to the terminal according to the download address of the target installation package.
另一种可能的实现方式中,该应用的目标安装包包括该应用的主安装包和该应用的至少一个资源包,该主安装包包含该应用的通用文件,该应用的至少一个资源包包含该服务器根据该设备信息为该终端匹配的该应用的资源文件。In another possible implementation manner, the target installation package of the application includes a main installation package of the application and at least one resource package of the application, the main installation package includes a general file of the application, and at least one resource package of the application includes The server is a resource file of the application matched by the terminal according to the device information.
另一种可能的实现方式中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件;该至少一个资源包包括布局资源包、语言资源包和图片资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包 或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,该第一等级分辨率大于第二等级分辨率,该第二等级分辨率大于第三等级分辨率。In another possible implementation manner, the universal file of the application includes a general configuration file of the application and a universal resource file of the application; the at least one resource package includes a layout resource package, a language resource package, and a picture resource package, and the layout resource The package includes a vertical screen layout resource package or a horizontal screen layout resource package, and the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource package and a second level resolution. The rate picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
另一种可能的实现方式中,该终端的设备信息包括该终端的配置信息;该处理器2101具体用于:In another possible implementation, the device information of the terminal includes configuration information of the terminal; the processor 2101 is specifically configured to:
确定该配置信息与该服务器中预置的默认配置信息一致;Determining that the configuration information is consistent with the default configuration information preset in the server;
为该终端确定与该终端的配置相匹配该应用的默认安装包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件。Determining, for the terminal, a default installation package for the application that matches the configuration of the terminal, the default installation package containing a generic file for the application and a resource file for the application that matches the preset default configuration information.
另一种可能的实现方式中,该设备信息包括该终端的配置信息;该终端的配置信息与该服务器中预置的配置信息不完全相同,其中,当该终端的配置信息与该预置的配置信息完全不相同时,该预置的配置信息中的至少一种资源配置包含至少三种参数类型;该处理器2101具体用于:In another possible implementation manner, the device information includes configuration information of the terminal; the configuration information of the terminal is not completely the same as the configuration information preset in the server, where the configuration information of the terminal and the preset information are When the configuration information is completely different, at least one resource configuration in the preset configuration information includes at least three parameter types; the processor 2101 is specifically configured to:
确定该配置信息与预置的默认配置信息不一致;Determining that the configuration information is inconsistent with the preset default configuration information;
为该终端确定与该终端的配置相匹配该应用的默认安装包和该应用的至少一个资源包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该应用的至少一个资源包包含与差异配置信息匹配的该应用的资源文件,该差异配置信息为该配置信息中与该预置的默认配置信息不相同的部分配置信息。Determining, for the terminal, a default installation package of the application and at least one resource package of the application, the default installation package including a common file of the application and the application matching the default configuration information of the preset And a resource file, where the at least one resource package of the application includes a resource file of the application that matches the difference configuration information, where the difference configuration information is part of the configuration information that is different from the preset default configuration information.
另一种可能的实现方式中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件,该至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,第二等级分辨率大于第三等级分辨率。In another possible implementation manner, the universal file of the application includes a general configuration file of the application and a universal resource file of the application, and the at least one resource package includes at least one of a layout resource package, a language resource package, and a picture resource package. The resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the image resource package includes a first level resolution image resource. The packet, the second level resolution picture resource package or the third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
另一种可能的实现方式中,该输入输出设备2103还用于:In another possible implementation, the input/output device 2103 is further configured to:
接收应用开发设备发送的该应用的完整安装包,该完整安装包包括该至少两个安装包中适配于该至少两种不同配置的终端的文件,该完整安装包为所述应用开发设备根据预设的文件放置规则生成的该应用的安装包;Receiving a complete installation package of the application sent by the application development device, where the complete installation package includes files of the at least two installation packages that are adapted to the at least two different configurations, the complete installation package is The installation package of the application generated by the preset file placement rule;
该处理器2101还用于:The processor 2101 is further configured to:
根据预设的拆包规则将该完整安装包拆分为多个子包;Split the complete installation package into multiple sub-packages according to the preset unpacking rules;
将该多个子包在该服务器上进行注册,以使得该多个子包与该应用关联。The plurality of sub-packets are registered on the server such that the plurality of sub-packets are associated with the application.
另一种可能的实现方式中,该处理器2101具体用于:In another possible implementation manner, the processor 2101 is specifically configured to:
根据资源配置规则将该完整安装包拆分为该应用的主安装包和该应用的至少两个资源包,该主安装包包含该应用的通用文件,该至少两个资源包包含该应用所述完整安装包中除该通用文件以外的其他资源文件。Splitting the complete installation package into the application's main installation package and at least two resource packages of the application according to the resource configuration rule, the main installation package includes a general file of the application, and the at least two resource packages include the application A resource file other than the generic file in the full installation package.
另一种可能的实现方式中,该处理器2101具体用于:In another possible implementation manner, the processor 2101 is specifically configured to:
根据预设的默认配置规则以及预设的资源配置规则将该完整安装包拆分为该应用的默认安装包和该应用的至少一个资源包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该至少一个资源包包含该应用的其他资源文件, 该应用的其他资源文件为该完整安装包中除该与预置的默认信息匹配的该应用的资源文件和该通用文件以外的资源文件。Splitting the complete installation package into the default installation package of the application and at least one resource package of the application according to a preset default configuration rule and a preset resource configuration rule, the default installation package includes a common file of the application and The resource file of the application matched by the preset default configuration information, the at least one resource package includes other resource files of the application, and the other resource files of the application are the ones of the complete installation package that match the preset default information. The resource file of the application and the resource file other than the common file.
另一种可能的实现方式中,该处理器2101还用于:In another possible implementation manner, the processor 2101 is further configured to:
对该多个子包标记数据签名。Sign the data for the plurality of sub-packets.
另一种可能的实现方式中,该处理器2101还用于:In another possible implementation manner, the processor 2101 is further configured to:
验证该完整安装包的数据签名与预置的账号配置签名是否匹配;Verify that the data signature of the complete installation package matches the preset account configuration signature;
触发该服务器根据预设的拆包父子将该完整安装包拆分为多个子包。Trigger the server to split the complete installation package into multiple sub-packages according to the preset unpacking parent.
本申请实施例中,图21所示的服务器的处理器2101还可以用于实现以下内容:In the embodiment of the present application, the processor 2101 of the server shown in FIG. 21 can also be used to implement the following content:
接收终端发送的第一下载请求消息,该第一下载请求消息为该终端请求下载应用的请求消息,该应用为在该服务器中存储有至少两个安装包的应用,该至少两个安装包适配于至少两种不同配置的终端;And receiving, by the terminal, a first download request message, where the first download request message is a request message for downloading an application by the terminal, where the application is an application that stores at least two installation packages in the server, where the at least two installation packages are suitable Equipped with terminals in at least two different configurations;
向该终端发送该应用的默认安装包,该默认安装包包含该应用的通用文件和与该服务器中预置的配置信息匹配的该应用的资源文件。A default installation package for the application is sent to the terminal, the default installation package containing a common file of the application and a resource file of the application matching the configuration information preset in the server.
一种可能的实现方式中,该处理器2101还用于:In a possible implementation manner, the processor 2101 is further configured to:
向该终端发送第一下载响应消息,该第一下载响应消息包含该应用的默认安装包的下载地址;Sending a first download response message to the terminal, where the first download response message includes a download address of a default installation package of the application;
该处理器2101具体用于:The processor 2101 is specifically configured to:
根据该第一下载响应消息中包含的该默认安装包的下载地址向该终端发送该应用的默认安装包。And sending a default installation package of the application to the terminal according to the download address of the default installation package included in the first download response message.
另一种可能的实现方式中,该处理器2101还用于:In another possible implementation manner, the processor 2101 is further configured to:
接收该终端的第二下载请求消息,该第二下载请求消息包含该终端的配置信息;Receiving a second download request message of the terminal, where the second download request message includes configuration information of the terminal;
根据该终端的配置信息为该终端确定与该终端的配置相匹配的该应用的至少一个资源包,该至少一个资源包包含与差异配置信息相匹配的该应用的资源文件,该差异配置信息为该终端的配置信息与该预置的配置信息中不相同的部分配置信息;Determining, according to the configuration information of the terminal, the at least one resource package of the application that matches the configuration of the terminal, where the at least one resource package includes a resource file of the application that matches the difference configuration information, where the difference configuration information is The configuration information of the terminal is different from the preset configuration information in the preset configuration information;
向该终端发送该至少一个资源包。Sending the at least one resource bundle to the terminal.
另一种可能的实现方式中,该处理器2101还用于:In another possible implementation manner, the processor 2101 is further configured to:
向该终端发送第二下载响应消息,该第二下载响应消息包含该应用的至少一个资源包的下载地址;Sending, to the terminal, a second download response message, where the second download response message includes a download address of the at least one resource package of the application;
该处理器2101具体用于:The processor 2101 is specifically configured to:
根据该第二下载响应消息中包含的该至少一个资源包的下载地址向该终端发送该至少一个资源包。And sending the at least one resource package to the terminal according to the download address of the at least one resource package included in the second download response message.
另一种可能的实现方式中,该应用的通用文件包括该应用的通用配置文件和该应用的通用资源文件;In another possible implementation manner, the universal file of the application includes a general configuration file of the application and a universal resource file of the application;
另一种可能的实现方式中,该至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,该布局资源包包括竖屏布局资源包或横屏布局资源包,该语言资源包包括中文资源包、英文资源包或其他语言资源包,该图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于所述第二等级分辨率,第二等级分辨率大于所述第三等级分辨率。In another possible implementation manner, the at least one resource package includes at least one resource package of a layout resource package, a language resource package, and a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package. The language resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes a first level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package. The first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution.
另一种可能的实现方式中,该处理器2101还用于:In another possible implementation manner, the processor 2101 is further configured to:
接收该应用开发设备发送的该应用的完整安装包,该完整安装包包括该至少两个安装包中适配于该至少两种不同配置的终端的文件,该完整安装包为该应用开发设备根据预设的文件放置规则生成的该应用的安装包;Receiving a complete installation package of the application sent by the application development device, where the complete installation package includes files of the at least two installation packages that are adapted to the at least two different configurations, the complete installation package is The installation package of the application generated by the preset file placement rule;
根据预设的拆包规则将该完整安装包拆分为多个子包;Split the complete installation package into multiple sub-packages according to the preset unpacking rules;
将该多个子包在该服务器上进行注册,以使得该多个子包与该应用关联。The plurality of sub-packets are registered on the server such that the plurality of sub-packets are associated with the application.
另一种可能的实现方式中,该处理器2101具体用于:In another possible implementation manner, the processor 2101 is specifically configured to:
根据预设的默认配置规则以及预设的资源配置规则将该完整安装包拆分为该应用的默认安装包和该应用的至少一个资源包,该默认安装包包含该应用的通用文件以及与该预置的默认配置信息匹配的该应用的资源文件,该至少一个资源包包含该应用的其他资源文件,该应用的其他资源文件为该完整安装包中除该与该预置的默认配置信息匹配的该应用的资源文件和该通用文件以外的资源文件。Splitting the complete installation package into the default installation package of the application and at least one resource package of the application according to a preset default configuration rule and a preset resource configuration rule, the default installation package includes a common file of the application and The preset default configuration information matches the resource file of the application, and the at least one resource package includes other resource files of the application, and the other resource files of the application are in the complete installation package, except the default configuration information corresponding to the preset. The resource file for the application and the resource file other than the common file.
另一种可能的实现方式中,该应用包括快应用。In another possible implementation, the application includes a fast application.
本申请还提供一种应用开发设备2200,请参阅图22,本申请实施例中服务器一个实施例包括:The application further provides an application development device 2200. Referring to FIG. 22, an embodiment of the server in the embodiment of the present application includes:
处理器2201、存储器2202、输入输出设备2203以及总线2204;a processor 2201, a memory 2202, an input and output device 2203, and a bus 2204;
处理器2201、存储器2202、输入输出设备2203分别与总线2204相连,该存储器中存储有计算机指令;The processor 2201, the memory 2202, and the input/output device 2203 are respectively connected to the bus 2204, where the computer instruction is stored in the memory;
该处理器2201用于生成应用的完整安装包,该应用的完整安装包包含至少两个安装包,该至少两个安装包适配于至少两种配置的终端;The processor 2201 is configured to generate a complete installation package of the application, where the complete installation package of the application includes at least two installation packages, and the at least two installation packages are adapted to the terminals of the at least two configurations;
该输入输出设备2203用于向服务器发送该完整安装包。The input and output device 2203 is configured to send the complete installation package to the server.
一种可能的实现方式中,该处理器2201具体用于:In a possible implementation manner, the processor 2201 is specifically configured to:
根据预设的文件放置规则将该应用的文件进行放置,得到该应用的完整安装包。The application's file is placed according to a preset file placement rule to obtain a complete installation package of the application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在另一种可能的设计中,当该终端、服务器或者应用开发设备为终端内的芯片时,芯片包括:处理单元和通信单元,所述处理单元例如可以是处理器,所述通信单元例如可以是输入/输出接口、管脚或电路等。该处理单元可执行存储单元存储的计算机执行指令,以使该终端内的芯片执行上述第一方面、第二方面、第三方面、第四方面或者第五方面任意一项的数据处理方法。可选地,所述存储单元为所述芯片内的存储单元,如寄存器、缓存等,所述存储单元还可以是所述终端内的位于所述芯片外部的存储单元,如只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)等。In another possible design, when the terminal, the server or the application development device is a chip in the terminal, the chip comprises: a processing unit and a communication unit, and the processing unit may be, for example, a processor, for example, the communication unit may It is an input/output interface, a pin or a circuit. The processing unit may execute a computer-executed instruction stored by the storage unit to cause the chip in the terminal to execute the data processing method of any of the first aspect, the second aspect, the third aspect, the fourth aspect, or the fifth aspect. Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc., and the storage unit may also be a storage unit located outside the chip in the terminal, such as a read-only memory (read) -only memory, ROM) or other types of static storage devices, random access memory (RAM), etc. that can store static information and instructions.
其中,上述任一处提到的处理器,可以是一个通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制上述第一方面、第二方面、第三方面、第四方面或者第五方面的数据处理方法的程序执行的集成电路。The processor mentioned in any of the above may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more for controlling the above. The program-implemented integrated circuit of the data processing method of the first aspect, the second aspect, the third aspect, the fourth aspect or the fifth aspect.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be stored by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。The above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions of the embodiments do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (55)

  1. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, the method comprising:
    终端向服务器发送下载请求消息,所述下载请求消息为所述终端请求下载应用的请求消息,所述下载请求消息包含所述终端的设备信息,所述应用在所述服务器中的完整安装包存储有至少两个安装包,所述至少两个安装包适配于至少两种不同配置的终端;The terminal sends a download request message to the server, where the download request message is a request message for the terminal to download an application, where the download request message includes device information of the terminal, and the application is stored in a complete installation package in the server. There are at least two installation packages, the at least two installation packages being adapted to terminals of at least two different configurations;
    所述终端获取所述应用的目标安装包,所述目标安装包为所述服务器根据所述设备信息为所述终端确定的与所述终端的配置相匹配的安装包,所述目标安装包为所述至少两个安装包中的一个。Obtaining, by the terminal, a target installation package of the application, where the target installation package is an installation package that is determined by the server according to the device information to match the configuration of the terminal, where the target installation package is One of the at least two installation packages.
  2. 根据权利要求1所述的方法,其特征在于,所述终端向服务器发送下载请求消息之后,所述终端获取所述应用的目标安装包之前,所述方法还包括:The method according to claim 1, wherein the method further comprises: after the terminal sends the download request message to the server, and the terminal acquires the target installation package of the application, the method further includes:
    所述终端接收所述服务器发送的下载响应消息,所述下载响应消息包含所述应用的目标安装包的下载地址;Receiving, by the terminal, a download response message sent by the server, where the download response message includes a download address of a target installation package of the application;
    对应地,所述终端获取所述应用的目标安装包包括:Correspondingly, the acquiring, by the terminal, the target installation package of the application includes:
    所述终端根据所述下载响应信息中包含的所述应用的目标安装包的下载地址从所述服务器下载所述应用的目标安装包。The terminal downloads the target installation package of the application from the server according to the download address of the target installation package of the application included in the download response information.
  3. 根据权利要求1或2所述的方法,其特征在于,所述应用的目标安装包包括所述应用的主安装包和所述应用的至少一个资源包,所述主安装包包含所述应用的通用文件,所述应用的至少一个资源包包含所述服务器根据所述设备信息为所述终端匹配的所述应用的资源文件。The method according to claim 1 or 2, wherein the target installation package of the application comprises a main installation package of the application and at least one resource package of the application, the main installation package comprising the application A general file, where at least one resource package of the application includes a resource file of the application that the server matches for the terminal according to the device information.
  4. 根据权利要求3所述的方法,其特征在于,所述应用的通用文件包括所述应用的通用配置文件和所述应用的通用资源文件;所述至少一个资源包包括布局资源包、语言资源包和图片资源包,所述布局资源包包括竖屏布局资源包或横屏布局资源包,所述语言资源包包括中文资源包、英文资源包或其他语言资源包,所述图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,所述第二等级分辨率大于第三等级分辨率。The method according to claim 3, wherein the universal file of the application comprises a general configuration file of the application and a universal resource file of the application; the at least one resource package comprises a layout resource package, a language resource package And a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes the first a level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution .
  5. 根据权利要求1或2所述的方法,其特征在于,所述设备信息包括所述终端的配置信息,且所述终端的配置信息与所述服务器预置的默认配置信息一致,所述应用的目标安装包包括所述应用的默认安装包,所述默认安装包包含所述应用的通用文件以及与所述预置的默认配置信息匹配的所述应用的资源文件。The method according to claim 1 or 2, wherein the device information includes configuration information of the terminal, and configuration information of the terminal is consistent with default configuration information preset by the server, where the application is The target installation package includes a default installation package of the application, the default installation package containing a common file of the application and a resource file of the application matching the preset default configuration information.
  6. 根据权利要求1或2所述的方法,其特征在于,所述设备信息包括所述终端的配置信息;所述终端的配置信息与所述预置的配置信息不完全相同,其中,当所述终端的配置信息与所述预置的配置信息完全不同时,所述预置的配置信息中的至少一种资源配置包含至少三种参数类型;所述应用的目标安装包包括所述应用的默认安装包和所述应用的至少一个资源包,所述默认安装包包含所述应用的通用文件以及与所述预置的默认配置信息匹配的所述应用的资源文件,所述应用的至少一个资源包包含与差异配置信息匹配的所述应用的资源文件,所述差异配置信息为所述配置信息中与所述预置的默认配置信息不相同的部分配置信息。The method according to claim 1 or 2, wherein the device information includes configuration information of the terminal; the configuration information of the terminal is not completely the same as the preset configuration information, wherein, when When the configuration information of the terminal is completely different from the preset configuration information, at least one resource configuration in the preset configuration information includes at least three parameter types; and the target installation package of the application includes a default of the application. Installing at least one resource package of the package and the application, the default installation package including a general file of the application and a resource file of the application matching the preset default configuration information, at least one resource of the application The packet includes a resource file of the application that matches the difference configuration information, and the difference configuration information is partial configuration information in the configuration information that is different from the preset default configuration information.
  7. 根据权利要求5或6所述的方法,其特征在于,所述应用的通用文件包括所述应用的通用配置文件和所述应用的通用资源文件;所述至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,所述布局资源包包括竖屏布局资源包或横屏布局资源包,所述语言资源包包括中文资源包、英文资源包或其他语言资源包,所述图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,所述第二等级分辨率大于第三等级分辨率。The method according to claim 5 or 6, wherein the universal file of the application comprises a general configuration file of the application and a universal resource file of the application; the at least one resource package comprises a layout resource package, a language At least one resource package in the resource package and the picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package, or other language resource package. The picture resource package includes a first level resolution picture resource package, a second level resolution picture resource package, or a third level resolution picture resource package, where the first level resolution is greater than the second level resolution, and the second level The resolution is greater than the third level resolution.
  8. 根据权利要求1至7中的任一项所述的方法,其特征在于,所述终端获取所述应用的目标安装包之后,所述方法还包括:The method according to any one of claims 1 to 7, wherein after the terminal acquires the target installation package of the application, the method further includes:
    所述终端按照预设的解压规则将所述应用的目标安装包解压至目标安装目录;Decapsulating the target installation package of the application to a target installation directory according to a preset decompression rule;
    所述终端运行所述应用。The terminal runs the application.
  9. 根据权利要求8所述的方法,其特征在于,所述终端获取所述应用的目标安装包之后,所述终端按照预设的解压规则将所述应用的目标安装包解压至目标安装目录之前,所述方法还包括:The method according to claim 8, wherein after the terminal acquires the target installation package of the application, the terminal decompresses the target installation package of the application to the target installation directory according to a preset decompression rule. The method further includes:
    所述终端验证所述应用的目标安装包是否具备所述服务器的数据签名;Determining, by the terminal, whether the target installation package of the application has a data signature of the server;
    若是,则所述终端确定所述应用的目标安装包合法。If yes, the terminal determines that the target installation package of the application is legal.
  10. 根据权利要求1至9中的任一项所述的方法,其特征在于,所述应用包括快应用。The method of any of claims 1 to 9, wherein the application comprises a fast application.
  11. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, the method comprising:
    服务器接收终端发送的下载请求消息,所述下载请求消息为所述终端请求下载应用的请求消息,所述下载请求消息包含所述终端的设备信息,所述应用在所述服务器中的完整安装包中存储有至少两个安装包,所述至少两个安装包适配于至少两种不同配置的终端;The server receives a download request message sent by the terminal, where the download request message is a request message for the terminal to download an application, where the download request message includes device information of the terminal, and the complete installation package of the application in the server Storing at least two installation packages, the at least two installation packages being adapted to at least two differently configured terminals;
    所述服务器根据所述终端的设备信息为所述终端确定与所述终端的配置相匹配所述应用的目标安装包,所述目标安装包为所述至少两个安装包中的一个;Determining, by the server, the target installation package of the application that matches the configuration of the terminal according to the device information of the terminal, where the target installation package is one of the at least two installation packages;
    所述服务器向所述终端发送所述应用的目标安装包。The server sends a target installation package of the application to the terminal.
  12. 根据权利要求11所述的方法,其特征在于,所述服务器根据所述终端的设备信息为所述终端确定的与所述终端的配置相匹配所述应用的目标安装包之后,所述服务器向所述终端发送所述应用的目标安装包之前,所述方法还包括:The method according to claim 11, wherein after the server determines, according to the device information of the terminal, the target installation package of the application that is determined by the terminal to match the configuration of the terminal, the server Before the terminal sends the target installation package of the application, the method further includes:
    所述服务器向所述终端发送下载响应消息,所述下载响应消息包含所述应用的目标安装包的下载地址,所述下载响应消息用于所述终端从所述服务器中下载所述应用的目标安装包;Sending, by the server, a download response message to the terminal, where the download response message includes a download address of a target installation package of the application, and the download response message is used by the terminal to download a target of the application from the server Installation package;
    所述服务器向所述终端发送所述应用的目标安装包包括:Sending, by the server, the target installation package of the application to the terminal includes:
    所述服务器根据所述目标安装包的下载地址向所述终端发送所述应用的目标安装包。The server sends the target installation package of the application to the terminal according to the download address of the target installation package.
  13. 根据权利要求11或12所述的方法,其特征在于,所述应用的目标安装包包括所述应用的主安装包和所述应用的至少一个资源包,所述主安装包包含所述应用的通用文件,所述应用的至少一个资源包包含所述服务器根据所述设备信息为所述终端匹配的所述应用的资源文件。The method according to claim 11 or 12, wherein the target installation package of the application comprises a main installation package of the application and at least one resource package of the application, the main installation package comprising the application A general file, where at least one resource package of the application includes a resource file of the application that the server matches for the terminal according to the device information.
  14. 根据权利要求13所述的方法,其特征在于,所述应用的通用文件包括所述应用的通用配置文件和所述应用的通用资源文件;所述至少一个资源包包括布局资源包、语言资源包和图片资源包,所述布局资源包包括竖屏布局资源包或横屏布局资源包,所述语言资 源包包括中文资源包、英文资源包或其他语言资源包,所述图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,所述第二等级分辨率大于第三等级分辨率。The method according to claim 13, wherein the general file of the application comprises a general configuration file of the application and a universal resource file of the application; the at least one resource package comprises a layout resource package, a language resource package And a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes the first a level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution .
  15. 根据权利要求11或12所述的方法,其特征在于,所述设备信息包括所述终端的配置信息;所述服务器根据所述终端的设备信息为所述终端确定与所述终端的配置相匹配所述应用的目标安装包包括:The method according to claim 11 or 12, wherein the device information comprises configuration information of the terminal; the server determines, according to the device information of the terminal, that the terminal matches the configuration of the terminal. The target installation package of the application includes:
    所述服务器确定所述配置信息与所述服务器中预置的默认配置信息一致;The server determines that the configuration information is consistent with default configuration information preset in the server;
    所述服务器为所述终端确定与所述终端的配置相匹配所述应用的默认安装包,所述默认安装包包含所述应用的通用文件以及与所述预置的默认配置信息匹配的所述应用的资源文件。Determining, by the server, a default installation package of the application that matches a configuration of the terminal, the default installation package including a general file of the application and the matching with the preset default configuration information The resource file of the application.
  16. 根据权利要求11或12所述的方法,其特征在于,所述设备信息包括所述终端的配置信息;所述终端的配置信息与所述服务器中预置的配置信息不完全相同,其中,当所述终端的配置信息与所述预置的配置信息完全不相同时,所述预置的配置信息中的至少一种资源配置包含至少三种参数类型;所述服务器根据所述终端的设备信息为所述终端确定与所述终端的配置相匹配所述应用的目标安装包包括:The method according to claim 11 or 12, wherein the device information comprises configuration information of the terminal; the configuration information of the terminal is not exactly the same as the configuration information preset in the server, wherein When the configuration information of the terminal is completely different from the preset configuration information, at least one resource configuration in the preset configuration information includes at least three parameter types; and the server is configured according to the device information of the terminal. Determining, for the terminal, that the target installation package of the application matches the configuration of the terminal includes:
    所述服务器确定所述配置信息与预置的默认配置信息不一致;The server determines that the configuration information is inconsistent with preset default configuration information;
    所述服务器为所述终端确定与所述终端的配置相匹配所述应用的默认安装包和所述应用的至少一个资源包,所述默认安装包包含所述应用的通用文件以及与所述预置的默认配置信息匹配的所述应用的资源文件,所述应用的至少一个资源包包含与差异配置信息匹配的所述应用的资源文件,所述差异配置信息为所述配置信息中与所述预置的默认配置信息不相同的部分配置信息。Determining, by the server, a default installation package of the application and at least one resource package of the application, where the configuration of the terminal matches, and the default installation package includes a general file of the application and The resource file of the application matched by the default configuration information, where the at least one resource package of the application includes a resource file of the application that matches the difference configuration information, where the difference configuration information is in the configuration information The preset configuration information of the preset is not the same as the partial configuration information.
  17. 根据权利要求15或16所述的方法,其特征在于,所述应用的通用文件包括所述应用的通用配置文件和所述应用的通用资源文件,所述至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,所述布局资源包包括竖屏布局资源包或横屏布局资源包,所述语言资源包包括中文资源包、英文资源包或其他语言资源包,所述图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,所述第二等级分辨率大于第三等级分辨率。The method according to claim 15 or 16, wherein the general file of the application comprises a general configuration file of the application and a universal resource file of the application, the at least one resource package comprises a layout resource package, a language At least one resource package in the resource package and the picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package, or other language resource package. The picture resource package includes a first level resolution picture resource package, a second level resolution picture resource package, or a third level resolution picture resource package, where the first level resolution is greater than the second level resolution, and the second level The resolution is greater than the third level resolution.
  18. 根据权利要求11至17中任一项所述的方法,其特征在于,所述服务器根据所述终端的设备信息为所述终端确定的与所述终端的配置相匹配所述应用的目标安装包之前,所述方法还包括:The method according to any one of claims 11 to 17, wherein the server matches the configuration of the terminal with the device installation information of the terminal according to the device information of the terminal. Previously, the method further includes:
    所述服务器接收应用开发设备发送的所述应用的完整安装包,所述完整安装包包括所述至少两个安装包中适配于所述至少两种不同配置的终端的文件,所述完整安装包为所述应用开发设备根据预设的文件放置规则生成的所述应用的安装包;Receiving, by the server, a complete installation package of the application sent by the application development device, where the complete installation package includes files of the at least two installation packages that are adapted to the at least two different configurations, the complete installation The package is an installation package of the application generated by the application development device according to a preset file placement rule;
    所述服务器根据预设的拆包规则将所述完整安装包拆分为多个子包;The server splits the complete installation package into multiple sub-packages according to a preset unpacking rule;
    所述服务器将所述多个子包在所述服务器上进行注册,以使得所述多个子包与所述应用关联。The server registers the plurality of sub-packets on the server such that the plurality of sub-packets are associated with the application.
  19. 根据权利要求18所述的方法,其特征在于,所述服务器根据预设的拆包规则将所 述完整安装包拆分为多个子包包括:The method according to claim 18, wherein the server splits the complete installation package into a plurality of sub-packages according to a preset unpacking rule, including:
    所述服务器根据资源配置规则将所述完整安装包拆分为所述应用的主安装包和所述应用的至少两个资源包,所述主安装包包含所述应用的通用文件,所述至少两个资源包包含所述应用所述完整安装包中除所述通用文件以外的其他资源文件。The server splits the complete installation package into at least two resource packages of the application and at least two resource packages of the application according to a resource configuration rule, where the main installation package includes a general file of the application, where the at least Two resource packages contain resource files other than the generic files in the complete installation package of the application.
  20. 根据权利要求18所述的方法,其特征在于,所述服务器根据预设的拆包规则将所述完整安装包拆分为多个子包包括:The method according to claim 18, wherein the server splits the complete installation package into a plurality of sub-packages according to a preset unpacking rule, including:
    所述服务器根据预设的默认配置规则以及预设的资源配置规则将所述完整安装包拆分为所述应用的默认安装包和所述应用的至少一个资源包,所述默认安装包包含所述应用的通用文件以及与所述预置的默认配置信息匹配的所述应用的资源文件,所述至少一个资源包包含所述应用的其他资源文件,所述应用的其他资源文件为所述完整安装包中除所述与预置的默认配置信息匹配的所述应用的资源文件和所述通用文件以外的资源文件。The server splits the complete installation package into a default installation package of the application and at least one resource package of the application according to a preset default configuration rule and a preset resource configuration rule, where the default installation package includes a general file of the application and a resource file of the application that matches the preset default configuration information, the at least one resource package includes other resource files of the application, and other resource files of the application are the complete A resource file of the application and a resource file other than the common file in addition to the preset default configuration information.
  21. 根据权利要求18至20中的任一项所述的方法,其特征在于,所述服务器根据预设的拆包规则将所述完整安装包拆分为多个子包之后,所述服务器将所述多个子包进行注册,以使得所述多个子包与所述应用关联之前,所述方法还包括:The method according to any one of claims 18 to 20, wherein after the server splits the complete installation package into a plurality of sub-packets according to a preset unpacking rule, the server will Before the plurality of sub-packets are registered to associate the plurality of sub-packets with the application, the method further includes:
    所述服务器对所述多个子包标记数据签名。The server signs the plurality of sub-packet tag data.
  22. 根据权利要求18至20中的任一项所述的方法,其特征在于,所述服务器获取所述应用的完整安装包之后,所述服务器按照预设拆包规则将所述完整安装包拆分为多个子包之前,所述方法还包括:The method according to any one of claims 18 to 20, wherein after the server acquires the complete installation package of the application, the server splits the complete installation package according to a preset unpacking rule. Before being a plurality of sub-packages, the method further includes:
    所述服务器验证所述完整安装包的数据签名与预置的账号配置签名是否匹配;The server verifies whether the data signature of the complete installation package matches a preset account configuration signature;
    若是,则触发所述服务器根据预设的拆包规则将所述完整安装包拆分为所述多个子包。If yes, the server is triggered to split the complete installation package into the plurality of sub-packets according to a preset unpacking rule.
  23. 根据权利要求11至22中的任一项所述的方法,其特征在于,所述应用包括快应用。A method according to any one of claims 11 to 22, wherein the application comprises a fast application.
  24. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, the method comprising:
    应用开发设备生成应用的完整安装包,所述应用的完整安装包包含至少两个安装包,所述至少两个安装包适配于至少两种配置的终端;The application development device generates a complete installation package of the application, the complete installation package of the application includes at least two installation packages, and the at least two installation packages are adapted to the terminals of the at least two configurations;
    所述应用开发设备向服务器发送所述完整安装包。The application development device sends the complete installation package to a server.
  25. 根据权利要求24所述的方法,其特征在于,所述应用开发设备生成应用的完整安装包包括:The method according to claim 24, wherein the complete installation package of the application development device generating application comprises:
    所述应用开发设备根据预设的文件放置规则将所述应用的文件进行放置,得到所述应用的完整安装包。The application development device places the file of the application according to a preset file placement rule to obtain a complete installation package of the application.
  26. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    发送单元,用于向服务器发送下载请求消息,所述下载请求消息为所述终端请求下载应用的请求消息,所述下载请求消息包含所述终端的设备信息,所述应用在所述服务器中的完整安装包存储有至少两个安装包,所述至少两个安装包适配于至少两种不同配置的终端;a sending unit, configured to send a download request message to the server, where the download request message is a request message for downloading an application by the terminal, where the download request message includes device information of the terminal, where the application is in the server The complete installation package stores at least two installation packages, and the at least two installation packages are adapted to at least two terminals of different configurations;
    获取单元,用于获取所述应用的目标安装包,所述目标安装包为所述服务器根据所述设备信息为所述终端确定的与所述终端的配置相匹配的安装包,所述目标安装包为所述至少两个安装包中的一个。An acquiring unit, configured to acquire a target installation package of the application, where the target installation package is an installation package that is determined by the server according to the device information to match the configuration of the terminal, and the target installation The package is one of the at least two installation packages.
  27. 根据权利要求26所述的终端,其特征在于,所述终端还包括:The terminal according to claim 26, wherein the terminal further comprises:
    接收单元,用于接收所述服务器发送的下载响应消息,所述下载响应消息包含所述应用的目标安装包的下载地址;a receiving unit, configured to receive a download response message sent by the server, where the download response message includes a download address of a target installation package of the application;
    对应地,所述获取单元具体用于:Correspondingly, the obtaining unit is specifically configured to:
    根据所述下载响应信息中包含的所述应用的目标安装包的下载地址从所述服务器下载所述应用的目标安装包。Downloading the target installation package of the application from the server according to the download address of the target installation package of the application included in the download response information.
  28. 根据权利要求26或27所述的终端,其特征在于,所述应用的目标安装包包括所述应用的主安装包和所述应用的至少一个资源包,所述主安装包包含所述应用的通用文件,所述应用的至少一个资源包包含所述服务器根据所述设备信息为所述终端匹配的所述应用的资源文件。The terminal according to claim 26 or 27, wherein the target installation package of the application comprises a main installation package of the application and at least one resource package of the application, the main installation package containing the application A general file, where at least one resource package of the application includes a resource file of the application that the server matches for the terminal according to the device information.
  29. 根据权利要求28所述的终端,其特征在于,所述应用的通用文件包括所述应用的通用配置文件和所述应用的通用资源文件;所述至少一个资源包包括布局资源包、语言资源包和图片资源包,所述布局资源包包括竖屏布局资源包或横屏布局资源包,所述语言资源包包括中文资源包、英文资源包或其他语言资源包,所述图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,所述第二等级分辨率大于第三等级分辨率。The terminal according to claim 28, wherein the universal file of the application comprises a general configuration file of the application and a universal resource file of the application; the at least one resource package comprises a layout resource package, a language resource package And a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes the first a level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution .
  30. 根据权利要求26或27所述的终端,其特征在于,所述设备信息包括所述终端的配置信息,且所述终端的配置信息与所述服务器预置的默认配置信息一致,所述应用的目标安装包包括所述应用的默认安装包,所述默认安装包包含所述应用的通用文件以及与所述预置的默认配置信息匹配的所述应用的资源文件。The terminal according to claim 26 or 27, wherein the device information includes configuration information of the terminal, and configuration information of the terminal is consistent with default configuration information preset by the server, where the application is The target installation package includes a default installation package of the application, the default installation package containing a common file of the application and a resource file of the application matching the preset default configuration information.
  31. 根据权利要求26或27所述的终端,其特征在于,所述设备信息包括所述终端的配置信息;所述终端的配置信息与所述预置的配置信息不完全相同,其中,当所述终端的配置信息与所述预置的配置信息完全不同时,所述预置的配置信息中的至少一种资源配置包含至少三种参数类型;所述应用的目标安装包包括所述应用的默认安装包和所述应用的至少一个资源包,所述默认安装包包含所述应用的通用文件以及与所述预置的默认配置信息匹配的所述应用的资源文件,所述应用的至少一个资源包包含与差异配置信息匹配的所述应用的资源文件,所述差异配置信息为所述配置信息中与所述预置的默认配置信息不相同的部分配置信息。The terminal according to claim 26 or 27, wherein the device information includes configuration information of the terminal; the configuration information of the terminal is not completely the same as the preset configuration information, where When the configuration information of the terminal is completely different from the preset configuration information, at least one resource configuration in the preset configuration information includes at least three parameter types; and the target installation package of the application includes a default of the application. Installing at least one resource package of the package and the application, the default installation package including a general file of the application and a resource file of the application matching the preset default configuration information, at least one resource of the application The packet includes a resource file of the application that matches the difference configuration information, and the difference configuration information is partial configuration information in the configuration information that is different from the preset default configuration information.
  32. 根据权利要求30或31所述的终端,其特征在于,所述应用的通用文件包括所述应用的通用配置文件和所述应用的通用资源文件;所述至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,所述布局资源包包括竖屏布局资源包或横屏布局资源包,所述语言资源包包括中文资源包、英文资源包或其他语言资源包,所述图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,所述第二等级分辨率大于第三等级分辨率。The terminal according to claim 30 or 31, wherein the universal file of the application comprises a general configuration file of the application and a universal resource file of the application; the at least one resource package comprises a layout resource package, a language At least one resource package in the resource package and the picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package, or other language resource package. The picture resource package includes a first level resolution picture resource package, a second level resolution picture resource package, or a third level resolution picture resource package, where the first level resolution is greater than the second level resolution, and the second level The resolution is greater than the third level resolution.
  33. 根据权利要求26至32中的任一项所述的终端,其特征在于,所述终端还包括:The terminal according to any one of claims 26 to 32, wherein the terminal further comprises:
    解压单元,用于按照预设的解压规则将所述应用的目标安装包解压至目标安装目录;The decompression unit is configured to decompress the target installation package of the application to the target installation directory according to a preset decompression rule;
    运行单元,用于运行所述应用。A running unit for running the application.
  34. 根据权利要求33所述的终端,其特征在于,所述终端还包括:The terminal according to claim 33, wherein the terminal further comprises:
    验证单元,用于验证所述应用的目标安装包是否具备所述服务器的数据签名;a verification unit, configured to verify whether the target installation package of the application has a data signature of the server;
    确定单元,用于确定所述应用的目标安装包合法。A determining unit is configured to determine a target installation package of the application.
  35. 根据权利要求26至34中的任一项所述的终端,其特征在于,所述应用包括快应用。The terminal according to any one of claims 26 to 34, wherein the application comprises a fast application.
  36. 一种服务器,其特征在于,所述服务器包括:A server, wherein the server comprises:
    第一接收单元,用于接收终端发送的下载请求消息,所述下载请求消息为所述终端请求下载应用的请求消息,所述下载请求消息包含所述终端的设备信息,所述应用在所述服务器中的完整安装包中存储有至少两个安装包,所述至少两个安装包适配于至少两种不同配置的终端;a first receiving unit, configured to receive a download request message sent by the terminal, where the download request message is a request message for downloading an application by the terminal, where the download request message includes device information of the terminal, and the application is in the At least two installation packages are stored in the complete installation package in the server, and the at least two installation packages are adapted to the terminal of at least two different configurations;
    确定单元,用于根据所述终端的设备信息为所述终端确定与所述终端的配置相匹配所述应用的目标安装包,所述目标安装包为所述至少两个安装包中的一个;a determining unit, configured to determine, according to the device information of the terminal, a target installation package of the application that matches the configuration of the terminal, where the target installation package is one of the at least two installation packages;
    第一发送单元,用于向所述终端发送所述应用的目标安装包。a first sending unit, configured to send a target installation package of the application to the terminal.
  37. 根据权利要求36所述的服务器,其特征在于,所述服务器还包括:The server according to claim 36, wherein the server further comprises:
    第二发送单元,用于向所述终端发送下载响应消息,所述下载响应消息包含所述应用的目标安装包的下载地址,所述下载响应消息用于所述终端从所述服务器中下载所述应用的目标安装包;a second sending unit, configured to send a download response message to the terminal, where the download response message includes a download address of a target installation package of the application, where the download response message is used by the terminal to download the server from the server The target installation package of the application;
    所述第一发送单元具体用于:The first sending unit is specifically configured to:
    根据所述目标安装包的下载地址向所述终端发送所述应用的目标安装包。Sending a target installation package of the application to the terminal according to the download address of the target installation package.
  38. 根据权利要求36或37所述的服务器,其特征在于,所述应用的目标安装包包括所述应用的主安装包和所述应用的至少一个资源包,所述主安装包包含所述应用的通用文件,所述应用的至少一个资源包包含所述服务器根据所述设备信息为所述终端匹配的所述应用的资源文件。The server according to claim 36 or 37, wherein the target installation package of the application comprises a main installation package of the application and at least one resource package of the application, the main installation package containing the application A general file, where at least one resource package of the application includes a resource file of the application that the server matches for the terminal according to the device information.
  39. 根据权利要求38所述的服务器,其特征在于,所述应用的通用文件包括所述应用的通用配置文件和所述应用的通用资源文件;所述至少一个资源包包括布局资源包、语言资源包和图片资源包,所述布局资源包包括竖屏布局资源包或横屏布局资源包,所述语言资源包包括中文资源包、英文资源包或其他语言资源包,所述图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,所述第二等级分辨率大于第三等级分辨率。The server according to claim 38, wherein the general file of the application comprises a general configuration file of the application and a universal resource file of the application; the at least one resource package comprises a layout resource package, a language resource package And a picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package or other language resource package, and the picture resource package includes the first a level resolution picture resource package, a second level resolution picture resource package or a third level resolution picture resource package, the first level resolution is greater than the second level resolution, and the second level resolution is greater than the third level resolution .
  40. 根据权利要求36或37所述的服务器,其特征在于,所述终端的设备信息包括所述终端的配置信息;所述确定单元具体用于:The server according to claim 36 or 37, wherein the device information of the terminal includes configuration information of the terminal; the determining unit is specifically configured to:
    确定所述配置信息与所述服务器中预置的默认配置信息一致;Determining that the configuration information is consistent with default configuration information preset in the server;
    为所述终端确定与所述终端的配置相匹配所述应用的默认安装包,所述默认安装包包含所述应用的通用文件以及与所述预置的默认配置信息匹配的所述应用的资源文件。Determining, for the terminal, a default installation package of the application that matches the configuration of the terminal, the default installation package including a common file of the application and resources of the application that match the preset default configuration information file.
  41. 根据权利要求36或37所述的服务器,其特征在于,所述设备信息包括所述终端的配置信息;所述终端的配置信息与所述服务器中预置的配置信息不完全相同,其中,当所述终端的配置信息与所述预置的配置信息完全不相同时,所述预置的配置信息中的至少一种资源配置包含至少三种参数类型;所述确定单元具体用于:The server according to claim 36 or 37, wherein the device information includes configuration information of the terminal; the configuration information of the terminal is not exactly the same as the configuration information preset in the server, wherein When the configuration information of the terminal is completely different from the preset configuration information, the at least one resource configuration of the preset configuration information includes at least three parameter types; the determining unit is specifically configured to:
    确定所述配置信息与预置的默认配置信息不一致;Determining that the configuration information is inconsistent with the preset default configuration information;
    为所述终端确定与所述终端的配置相匹配所述应用的默认安装包和所述应用的至少一个资源包,所述默认安装包包含所述应用的通用文件以及与所述预置的默认配置信息匹配的所述应用的资源文件,所述应用的至少一个资源包包含与差异配置信息匹配的所述应用的资源文件,所述差异配置信息为所述配置信息中与所述预置的默认配置信息不相同的部分配置信息。Determining, for the terminal, a default installation package of the application and at least one resource package of the application, the default installation package including a common file of the application and a default with the preset a resource file of the application whose configuration information is matched, where at least one resource package of the application includes a resource file of the application that matches the difference configuration information, where the difference configuration information is in the configuration information and the preset The default configuration information is not the same as the partial configuration information.
  42. 根据权利要求40或41所述的服务器,其特征在于,所述应用的通用文件包括所述应用的通用配置文件和所述应用的通用资源文件,所述至少一个资源包包括布局资源包、语言资源包和图片资源包中的至少一个资源包,所述布局资源包包括竖屏布局资源包或横屏布局资源包,所述语言资源包包括中文资源包、英文资源包或其他语言资源包,所述图片资源包包括第一等级分辨率图片资源包、第二等级分辨率图片资源包或第三等级分辨率图片资源包,第一等级分辨率大于第二等级分辨率,所述第二等级分辨率大于第三等级分辨率。The server according to claim 40 or 41, wherein the general file of the application comprises a general configuration file of the application and a universal resource file of the application, the at least one resource package comprises a layout resource package, a language At least one resource package in the resource package and the picture resource package, where the layout resource package includes a vertical screen layout resource package or a horizontal screen layout resource package, where the language resource package includes a Chinese resource package, an English resource package, or other language resource package. The picture resource package includes a first level resolution picture resource package, a second level resolution picture resource package, or a third level resolution picture resource package, where the first level resolution is greater than the second level resolution, and the second level The resolution is greater than the third level resolution.
  43. 根据权利要求36至42中任一项所述的服务器,其特征在于,所述服务器还包括:The server according to any one of claims 36 to 42, wherein the server further comprises:
    第二接收单元,用于接收应用开发设备发送的所述应用的完整安装包,所述完整安装包包括所述至少两个安装包中适配于所述至少两种不同配置的终端的文件,所述完整安装包为所述应用开发设备根据预设的文件放置规则生成的所述应用的安装包;a second receiving unit, configured to receive a complete installation package of the application sent by the application development device, where the complete installation package includes files of the at least two installation packages that are adapted to the at least two different configured terminals, The complete installation package is an installation package of the application generated by the application development device according to a preset file placement rule;
    拆分单元,用于根据预设的拆包规则将所述完整安装包拆分为多个子包;a splitting unit, configured to split the complete installation package into multiple sub-packets according to a preset unpacking rule;
    注册单元,用于将所述多个子包在所述服务器上进行注册,以使得所述多个子包与所述应用关联。a registration unit, configured to register the plurality of sub-packets on the server, so that the plurality of sub-packets are associated with the application.
  44. 根据权利要求43所述的服务器,其特征在于,所述拆分单元具体用于:The server according to claim 43, wherein the splitting unit is specifically configured to:
    根据资源配置规则将所述完整安装包拆分为所述应用的主安装包和所述应用的至少两个资源包,所述主安装包包含所述应用的通用文件,所述至少两个资源包包含所述应用所述完整安装包中除所述通用文件以外的其他资源文件。Disassembling the complete installation package into a primary installation package of the application and at least two resource packages of the application according to a resource configuration rule, where the primary installation package includes a general file of the application, and the at least two resources The package contains resource files other than the generic file in the complete installation package of the application.
  45. 根据权利要求43所述的服务器,其特征在于,所述拆分单元具体用于:The server according to claim 43, wherein the splitting unit is specifically configured to:
    根据预设的默认配置规则以及预设的资源配置规则将所述完整安装包拆分为所述应用的默认安装包和所述应用的至少一个资源包,所述默认安装包包含所述应用的通用文件以及与所述预置的默认配置信息匹配的所述应用的资源文件,所述至少一个资源包包含所述应用的其他资源文件,所述应用的其他资源文件为所述完整安装包中除所述与预置的默认信息匹配的所述应用的资源文件和所述通用文件以外的资源文件。Splitting the complete installation package into a default installation package of the application and at least one resource package of the application according to a preset default configuration rule and a preset resource configuration rule, where the default installation package includes the application a general file and a resource file of the application that matches the preset default configuration information, the at least one resource package includes other resource files of the application, and other resource files of the application are in the complete installation package In addition to the resource file of the application and the resource file other than the common file that match the preset default information.
  46. 根据权利要求43至45中任一项所述的服务器,其特征在于,所述服务器还包括:The server according to any one of claims 43 to 45, wherein the server further comprises:
    标记单元,用于对所述多个子包标记数据签名。a marking unit, configured to sign the plurality of sub-packet tag data.
  47. 根据权利要求43至45中任一项所述的服务器,其特征在于,所述服务器还包括:The server according to any one of claims 43 to 45, wherein the server further comprises:
    验证单元,用于验证所述完整安装包的数据签名与预置的账号配置签名是否匹配;a verification unit, configured to verify whether the data signature of the complete installation package matches a preset account configuration signature;
    触发单元,用于触发所述服务器根据预设的拆包规则将所述完整安装包拆分为所述多个子包。The triggering unit is configured to trigger the server to split the complete installation package into the plurality of sub-packets according to a preset unpacking rule.
  48. 根据权利要求36至47中任一项所述的服务器,其特征在于,所述应用包括快应用。A server according to any one of claims 36 to 47, wherein the application comprises a fast application.
  49. 一种应用开发设备,其特征在于,所述应用开发设备包括:An application development device, characterized in that the application development device comprises:
    生成单元,用于生成应用的完整安装包,所述应用的完整安装包包含至少两个安装包,所述至少两个安装包适配于至少两种配置的终端;a generating unit, configured to generate a complete installation package of the application, the complete installation package of the application includes at least two installation packages, and the at least two installation packages are adapted to the terminal of the at least two configurations;
    发送单元,用于向服务器发送所述完整安装包。a sending unit, configured to send the complete installation package to a server.
  50. 根据权利要求49所述的应用开发设备,其特征在于,所述生成单元具体用于:The application development device according to claim 49, wherein the generating unit is specifically configured to:
    根据预设的文件放置规则将所述应用的文件进行放置,得到所述应用的完整安装包。The application file is placed according to a preset file placement rule to obtain a complete installation package of the application.
  51. 一种终端,其特征在于,所述终端包括:处理器、存储器、收发器,所述处理器、存储器以及收发器通过总线连接,所述存储器存储有计算机指令,所述处理器通过执行所述计算机指令用于实现如权1至权10任意一项所述的数据处理方法。A terminal, comprising: a processor, a memory, a transceiver, the processor, the memory, and the transceiver are connected by a bus, wherein the memory stores computer instructions, and the processor performs the The computer instructions are used to implement the data processing method of any one of claims 1 to 10.
  52. 一种服务器,其特征在于,所述服务器包括:处理器、存储器、收发器,所述处理器、存储器以及收发器通过总线连接,所述存储器存储有计算机指令,所述处理器通过执行所述计算机指令用于实现如权11至权23任意一项所述的数据处理方法。A server, comprising: a processor, a memory, a transceiver, the processor, the memory, and the transceiver are connected by a bus, the memory storing computer instructions, the processor performing the The computer instructions are used to implement the data processing method according to any one of claims 11 to 23.
  53. 一种应用开发设备,其特征在于,所述应用开发设备包括:处理器、存储器、收发器,所述处理器、存储器以及收发器通过总线连接,所述存储器存储有计算机指令,所述处理器通过执行所述计算机指令用于实现如权24至权25任意一项所述的数据处理方法。An application development device, characterized in that the application development device comprises: a processor, a memory, a transceiver, the processor, the memory and the transceiver are connected by a bus, the memory storing computer instructions, the processor The data processing method according to any one of claims 24 to 25 is implemented by executing the computer instructions.
  54. 一种包含指令的计算机程序产品,其特征在于,当其在计算机上运行时,使得所述计算机执行如权利要求1至25中任一项所述的方法。A computer program product comprising instructions, characterized in that, when run on a computer, the computer is caused to perform the method of any one of claims 1 to 25.
  55. 一种计算机可读存储介质,其特征在于,包括指令,当所述指令在计算机上运行时,使得计算机执行如权利要求1至25中任一项所述的方法。A computer readable storage medium, comprising instructions for causing a computer to perform the method of any one of claims 1 to 25 when the instructions are run on a computer.
PCT/CN2019/086534 2018-05-16 2019-05-13 Data processing method, terminal, server, and application development device WO2019218952A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810469718.3A CN110502245A (en) 2018-05-16 2018-05-16 Data processing method, terminal, server and application and development equipment
CN201810469718.3 2018-05-16

Publications (1)

Publication Number Publication Date
WO2019218952A1 true WO2019218952A1 (en) 2019-11-21

Family

ID=68539509

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/086534 WO2019218952A1 (en) 2018-05-16 2019-05-13 Data processing method, terminal, server, and application development device

Country Status (2)

Country Link
CN (1) CN110502245A (en)
WO (1) WO2019218952A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157365A (en) * 2021-03-29 2021-07-23 北京城市网邻信息技术有限公司 Program running method and device, electronic equipment and computer readable medium
CN114339286A (en) * 2021-12-29 2022-04-12 杭州米络星科技(集团)有限公司 Multi-language display system and method for broadcast message

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190630B (en) * 2020-01-02 2023-06-16 竞技世界(北京)网络技术有限公司 Updating method of terminal application and server
CN111338653B (en) * 2020-02-21 2023-05-23 苏宁云计算有限公司 Data processing method, device, computer equipment and storage medium
CN112035128A (en) * 2020-07-15 2020-12-04 上海趣蕴网络科技有限公司 Method and system for reducing APK (android Package) package and method for installing application client
CN112114919B (en) * 2020-09-11 2021-09-24 珠海格力电器股份有限公司 Screen rotation display optimization method and device
CN112445498B (en) * 2020-11-27 2024-03-05 杭州海康威视数字技术股份有限公司 Program installation method and device, electronic equipment and storage medium
CN112748926A (en) * 2020-12-30 2021-05-04 上海微盟企业发展有限公司 Applet publishing method, device, equipment and computer readable storage medium
CN113535226B (en) * 2021-07-27 2024-04-12 抖音视界有限公司 Application downloading method, terminal, server, computer device and storage medium
CN116737123A (en) * 2022-03-01 2023-09-12 华为技术有限公司 Application development system, method and equipment
CN117425877A (en) * 2022-05-18 2024-01-19 北京小米移动软件有限公司 Access method and device for web application program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129380A (en) * 2011-03-10 2011-07-20 宇龙计算机通信科技(深圳)有限公司 Server and method and mobile terminal for providing software
CN103294487A (en) * 2012-02-22 2013-09-11 腾讯科技(深圳)有限公司 Method, device and system for installing software
CN103347258A (en) * 2013-06-07 2013-10-09 北京车音网科技有限公司 Downloading method, system and server of application program and terminal equipment
US20150193216A1 (en) * 2012-07-19 2015-07-09 Tencent Technology (Shenzhen) Company Limited Method and system for installing application

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063299A (en) * 2010-12-21 2011-05-18 东莞宇龙通信科技有限公司 Method and device for assessing application running condition of mobile terminal, mobile terminal
CN104809011B (en) * 2015-04-13 2018-04-27 中国科学院声学研究所 A kind of management method of application program
US10289397B2 (en) * 2016-03-29 2019-05-14 Airwatch Llc Silent installation of software with dependencies
CN106598672A (en) * 2016-12-16 2017-04-26 广东美晨通讯有限公司 Application configuration method and apparatus
CN106598678A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Method and device for supplying application installation packages to terminal equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129380A (en) * 2011-03-10 2011-07-20 宇龙计算机通信科技(深圳)有限公司 Server and method and mobile terminal for providing software
CN103294487A (en) * 2012-02-22 2013-09-11 腾讯科技(深圳)有限公司 Method, device and system for installing software
US20150193216A1 (en) * 2012-07-19 2015-07-09 Tencent Technology (Shenzhen) Company Limited Method and system for installing application
CN103347258A (en) * 2013-06-07 2013-10-09 北京车音网科技有限公司 Downloading method, system and server of application program and terminal equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157365A (en) * 2021-03-29 2021-07-23 北京城市网邻信息技术有限公司 Program running method and device, electronic equipment and computer readable medium
CN113157365B (en) * 2021-03-29 2024-04-16 北京城市网邻信息技术有限公司 Program running method, program running device, electronic equipment and computer readable medium
CN114339286A (en) * 2021-12-29 2022-04-12 杭州米络星科技(集团)有限公司 Multi-language display system and method for broadcast message

Also Published As

Publication number Publication date
CN110502245A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
WO2019218952A1 (en) Data processing method, terminal, server, and application development device
US9800609B2 (en) Method, device and system for detecting malware in a mobile terminal
CN108200273B (en) Desktop icon display method, terminal and computer readable storage medium
CN107040609B (en) Network request processing method and device
WO2018219076A1 (en) Processing method for preventing webpage hijacking, client, and server
WO2019228059A1 (en) Data processing method, multi-cloud management system and related device
WO2019178869A1 (en) Method for opening esim card account, and terminal
TW201833757A (en) Printing processing method, device, printing end, logistics platform, and server
CN106874037B (en) Application program installation method and device and mobile terminal
CN109040182B (en) Service access method and device, electronic equipment and storage medium
CN110020293B (en) Multimedia data display method, device and storage medium
US9131013B2 (en) Tailoring content to be delivered to mobile device based upon features of mobile device
WO2015035947A1 (en) Method for realizing cellphone without card, cellphone and server
CN108124016B (en) Method and device for sending POST (POST on POST) request
WO2021098360A1 (en) Application control method, electronic device, and server
CN111240768A (en) Configuration parameter configuration method and device and computer storage medium
WO2017161994A1 (en) Method and device for displaying page, and computer storage medium
WO2018049885A1 (en) Data migration method and device
US20180262522A1 (en) Malicious url detection method and apparatus, terminal, and computer storage medium
CN106168901A (en) Application program font customizing method and control method and related device
JP5997848B2 (en) Mobile terminal resource processing method, apparatus, client-side computer, server, mobile terminal, program, and recording medium
WO2018137528A1 (en) Method and device for accessing resource
CN108182090B (en) Flash plug-in loading method and device based on blink kernel
CN106095423B (en) Method, terminal and server for providing browsing service
WO2017005080A1 (en) Webpage display method, terminal device and storage medium

Legal Events

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

Ref document number: 19803317

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19803317

Country of ref document: EP

Kind code of ref document: A1