CN110851151B - Method, device, terminal, server and storage medium for pre-installing application - Google Patents

Method, device, terminal, server and storage medium for pre-installing application Download PDF

Info

Publication number
CN110851151B
CN110851151B CN201911122554.8A CN201911122554A CN110851151B CN 110851151 B CN110851151 B CN 110851151B CN 201911122554 A CN201911122554 A CN 201911122554A CN 110851151 B CN110851151 B CN 110851151B
Authority
CN
China
Prior art keywords
information
application
file
rom package
rom
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911122554.8A
Other languages
Chinese (zh)
Other versions
CN110851151A (en
Inventor
江峰
杨敏
李兆松
殷顺明
任青
邹广花
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911122554.8A priority Critical patent/CN110851151B/en
Publication of CN110851151A publication Critical patent/CN110851151A/en
Application granted granted Critical
Publication of CN110851151B publication Critical patent/CN110851151B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure relates to a method, a device, a terminal, a server and a storage medium for preassembling applications, and belongs to the technical field of terminals. The method comprises the following steps: transmitting a preassembly application data request carrying ROM package information; and receiving pre-installed application data corresponding to the ROM package information, wherein the pre-installed application data is used for pre-installing the application when the terminal is started to load the ROM package.

Description

Method, device, terminal, server and storage medium for pre-installing application
Technical Field
The disclosure relates to the technical field of terminals, and in particular relates to a method, a device, a terminal, a server and a storage medium for pre-installing an application.
Background
Pre-installed applications refer to pre-installed applications by a manufacturer into a mobile terminal before use by a user. Currently, each mobile terminal manufacturer realizes preloaded application by presetting a third party application program package in a Read Only Memory (ROM) package (hereinafter referred to as ROM package).
When the ROM package is compiled, the code of the ROM package carries the program code of the application to be installed, and the code of the ROM package is compiled to obtain the ROM package carrying the third party application program package. The ROM package, when loaded in the mobile terminal, performs installation of the third party application package.
When the mode faces the situation that the preassembled application needs to be frequently updated, the code needs to be manually modified, the work content is complicated, research and development resources are wasted, implementation efficiency is easy to be low, and the business development is hindered. Meanwhile, the preassembly application service has high accuracy requirement, and the mode of manually modifying the codes can have quality risks.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, a terminal, a server and a storage medium for preassembling an application, which can reduce research and development resources required by the preassembled application, improve the implementation efficiency and reduce the quality risk. The technical scheme is as follows:
according to an aspect of the disclosed embodiments, there is provided a method of pre-installing an application, the method comprising:
transmitting a preassembly application data request carrying ROM package information;
and receiving pre-installed application data corresponding to the ROM package information, wherein the pre-installed application data is used for pre-installing the application when the terminal is started to load the ROM package.
Optionally, the ROM package information includes version information, or the ROM package information includes version information, and at least one of:
customization information, model information, and test information.
Optionally, the sending a pre-installed application data request carrying ROM package information includes:
In the ROM package compiling process, sending the preassembly application data request to a server;
or, the sending the pre-installed application data request carrying ROM package information includes:
and when the terminal is started to load the ROM package, sending the pre-installed application data request to a server.
Optionally, the receiving pre-installed application data corresponding to the ROM package information includes:
receiving preassembly information returned by a server, an application file downloading address and a tracking file downloading address, wherein the preassembly information is used for indicating the preassembly of configuration parameters of the application;
sending a downloading request to equipment corresponding to the application file downloading address and the trace file downloading address;
receiving a returned application file and a trace file;
or, the receiving pre-installed application data corresponding to the ROM package information includes:
and receiving preassembly information, an application file and a tracking file returned by the server, wherein the preassembly information is used for indicating the preassembly of the configuration parameters of the application.
Optionally, the method further comprises:
MD5 of obtaining the application file and the trace file from the server;
comparing whether the MD5 of the downloaded application file is consistent with the MD5 of the acquired application file, and comparing whether the MD5 of the downloaded tracking file is consistent with the MD5 of the acquired tracking file;
If the MD5 of the downloaded application file is consistent with the MD5 of the obtained application file, storing the downloaded application file; and if the MD5 of the downloaded tracking file is consistent with the MD5 of the acquired tracking file, storing the downloaded tracking file.
Optionally, the method further comprises:
in the ROM package compiling process, packaging the preassembly information, the application files and the tracking files into the ROM package, so that the terminal installs the application files and the tracking files in the ROM package based on the preassembly information when the terminal starts up and loads the ROM package;
alternatively, the method further comprises:
and when the terminal is started and the ROM package is loaded, the received application file and tracking file are installed in the terminal based on the preassembly information.
Optionally, the type of the trace file is an application file or a text file.
According to an aspect of the disclosed embodiments, there is provided a method of pre-installing an application, the method comprising:
receiving a preassembly application data request carrying ROM package information;
and sending pre-installation application data corresponding to the ROM package information, wherein the pre-installation application data is used for pre-installation application when the terminal is started to load the ROM package.
Optionally, the ROM package information includes version information, or the ROM package information includes version information, and at least one of:
customization information, model information, and test information.
Optionally, the sending pre-installed application data corresponding to the ROM package information includes:
returning pre-loading information, an application file downloading address and a tracking file downloading address corresponding to the ROM package information to a terminal, wherein the pre-loading information is used for indicating pre-loading configuration parameters of the application;
or, the sending pre-installed application data corresponding to the ROM package information includes:
and returning preassembly information, an application file and a tracking file corresponding to the ROM package information to the terminal, wherein the preassembly information is used for indicating the preassembly of the configuration parameters of the application.
Optionally, the method further comprises:
acquiring input ROM package information and preassembled application data;
ROM package information and pre-installed application data are associated and stored.
Optionally, the stored ROM package information includes test ROM package information and formal ROM package information, where the test ROM package information and the formal ROM package information correspond to the same or different pre-installed application data.
According to an aspect of the disclosed embodiments, there is provided an apparatus for pre-installing an application, the apparatus including:
The sending module is configured to send a pre-installed application data request carrying ROM package information;
and the receiving module is configured to receive pre-installation application data corresponding to the ROM package information, wherein the pre-installation application data is used for pre-installation application when the terminal is started to load the ROM package.
Optionally, the ROM package information includes version information, or the ROM package information includes version information, and at least one of:
customization information, model information, and test information.
Optionally, the sending module is configured to send the pre-installed application data request to a server in a ROM package compiling process;
or the sending module is configured to send the pre-installed application data request to a server when the terminal is started to load the ROM package.
Optionally, the receiving module is configured to receive preassembly information, an application file download address and a trace file download address returned by the server, where the preassembly information is used to indicate a configuration parameter of preassembling the application;
the sending module is configured to send a downloading request to equipment corresponding to the application file downloading address and the trace file downloading address;
the receiving module is configured to receive the returned application file and the trace file;
Or the receiving module is configured to receive preassembly information, an application file and a tracking file returned by the server, wherein the preassembly information is used for indicating the preassembly of the configuration parameters of the application.
Optionally, the apparatus further comprises:
an acquisition module configured to acquire MD5 of the application file and trace file from the server;
a comparison module configured to compare whether the downloaded MD5 of the application file is consistent with the acquired MD5 of the application file, and whether the downloaded MD5 of the trace file is consistent with the acquired MD5 of the trace file;
a storage module configured to save the downloaded application file if MD5 of the downloaded application file is consistent with the acquired MD5 of the application file; and if the MD5 of the downloaded tracking file is consistent with the MD5 of the acquired tracking file, storing the downloaded tracking file.
Optionally, the apparatus further comprises:
the processing module is configured to package the preassembly information, the application file and the tracking file into the ROM package in the ROM package compiling process, so that the terminal installs the application file and the tracking file in the ROM package based on the preassembly information when the ROM package is loaded during startup;
Alternatively, the apparatus further comprises:
and the processing module is configured to install the received application file and tracking file into the terminal based on the preassembly information when the terminal is started and the ROM package is loaded.
Optionally, the type of the trace file is an application file or a text file.
According to an aspect of the disclosed embodiments, there is provided an apparatus for pre-installing an application, the apparatus including:
a receiving module configured to receive a pre-installed application data request carrying ROM package information;
and the sending module is configured to send pre-installation application data corresponding to the ROM package information, wherein the pre-installation application data is used for pre-installation application when the terminal is started to load the ROM package.
Optionally, the ROM package information includes version information, or the ROM package information includes version information, and at least one of:
customization information, model information, and test information.
Optionally, the sending module is configured to return pre-loading information, an application file downloading address and a trace file downloading address corresponding to the ROM package information to a terminal, where the pre-loading information is used to indicate the configuration parameters of pre-loading the application;
or the sending module is configured to return pre-loading information, an application file and a tracking file corresponding to the ROM package information to the terminal, wherein the pre-loading information is used for indicating the pre-loading of the configuration parameters of the application.
Optionally, the apparatus further comprises:
the acquisition module is configured to acquire the input ROM package information and preassembled application data;
and the storage module is configured to associate and store the ROM package information and the pre-installed application data.
Optionally, the stored ROM package information includes test ROM package information and formal ROM package information, where the test ROM package information and the formal ROM package information correspond to the same or different pre-installed application data.
According to another aspect of the embodiments of the present disclosure, there is provided a terminal including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to load and execute the executable instructions to implement the method of pre-installed applications described previously.
According to another aspect of the embodiments of the present disclosure, there is provided an access network device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to load and execute the executable instructions to implement the method of pre-installed applications described previously.
According to another aspect of the disclosed embodiments, a computer-readable storage medium is provided, which when executed by a processor is capable of performing the method of pre-loading an application as described above.
In the embodiment of the disclosure, the terminal receives pre-installation application data corresponding to the ROM package information from the server by sending the ROM package information to the server, wherein the pre-installation application data is used for pre-installation application when the terminal is started to load the ROM package. Therefore, in the compiling process of the ROM package, the pre-installed application is not required to be compiled into the ROM package in a code mode, research and development resources required by the pre-installed application can be reduced, the implementation efficiency is improved, and the quality risk is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 illustrates a block diagram of a system for pre-installed applications provided by an exemplary embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a method of pre-installing an application, according to an example embodiment;
FIG. 3 is a flowchart illustrating a method of pre-installing an application, according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating a method of pre-installing an application, according to an example embodiment;
FIG. 5 is a flowchart illustrating a method of pre-installing an application, according to an exemplary embodiment;
FIG. 6 is a flowchart illustrating a method of pre-installing an application, according to an example embodiment;
FIG. 7 is a schematic diagram illustrating an apparatus for pre-installation of an application, according to an example embodiment;
FIG. 8 is a schematic diagram illustrating an apparatus for pre-installation of an application, according to an example embodiment;
fig. 9 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
An exemplary embodiment of the present disclosure provides a system of pre-installed applications, which may include: server and terminal. The terminals include a first terminal for compiling the ROM package and a second terminal for running the ROM package and pre-loading the relevant applications.
Fig. 1 is a block diagram of a system for the preloaded application. Referring to fig. 1, the first terminal 11 and the second terminal 12 may each be connected to a server 13 through a network.
The first terminal 11 may include various computing devices or other processing devices, such as a desktop computer, a notebook computer, and the like, and the device referred to by the first terminal 11 may be a cloud device. The second terminal 12 may be a handheld device, an in-vehicle device, a wearable device, etc. having a wireless communication function, such as a mobile phone.
In the embodiment of the present disclosure, the first terminal 11 is responsible for compiling a ROM package, and the compiled ROM package is installed into the second terminal 12. The server 13 stores preloaded application data corresponding to various ROM packages.
The first terminal 11 may acquire pre-installed application data corresponding to the ROM package from the server 13 when compiling the ROM package, and then compile the pre-installed application data into the ROM package. Alternatively, the second terminal 12 may acquire pre-installed application data corresponding to the ROM package from the server 13 at the time of the ROM package installation, and then install it into the second terminal 12.
FIG. 2 is a flow chart illustrating a method of pre-installing an application according to an exemplary embodiment. Referring to fig. 2, the method includes the steps of:
in step 101, a pre-installed application data request carrying ROM package information is sent.
The method may be performed by the aforementioned first terminal or second terminal. For example, the first terminal may perform the method at the time of compiling the ROM package, thereby compiling the preloaded application into the ROM package. Alternatively, the second terminal may perform the method upon boot loading of the ROM package, thereby downloading the preloaded application to the local direct installation.
In an embodiment of the present disclosure, the ROM package information includes version information, or the ROM package information includes version information and at least one of: the customization information, model information and test information, namely ROM package information at least comprises version information, and other information is optional. The version information refers to a version identifier of the ROM package, and can indicate a version number of the ROM package, wherein the version number can be a test version number or a formal version number; the customized information can be operator customized information, and different operator customized information can correspond to different preassembly applications; the model information refers to the manufacturer and model of the terminal equipment to which the ROM package is applicable; the test information (e.g., test configuration identification) is typically carried only in the ROM package of the test version, although the test information may not be carried if the version information can specify the test version.
In the embodiment of the disclosure, the terminal may send a pre-installed application data request carrying ROM package information to the server, so as to obtain corresponding pre-installed application data.
In step 102, pre-application data corresponding to the ROM package information is received, the pre-application data being used for pre-application when the terminal is booted to load the ROM package.
In the present disclosure, the pre-installed application data may be pre-installed information of the pre-installed application, an application file download address, a trace file download address, etc., so that the terminal may download a file to the pre-installed application based thereon. Alternatively, the pre-installed application data may be pre-installed information, application files and trace files directly, and the subsequent terminal may directly compile or install the files.
In the embodiment of the present disclosure, the preassembly information is used to indicate configuration parameters of the preassembly application, and may include information of preassembly location, channel, region, etc. of the application file. The application file preassembly position is used for indicating a folder path when each preassembly application is installed on the terminal; the channel refers to a distribution channel of the ROM package, and the region refers to a region (such as a country) where the ROM package is distributed, and some configurations may be different when the pre-installed application is installed for different channels and regions, for example, the language selected may be different when installed for different regions. Therefore, the terminal needs to be installed based on the pre-installation information when installing the pre-installation application.
Optionally, the pre-installed application data may further include a pre-installed application list, so that the terminal can conveniently obtain all pre-installed application files. Here, the pre-installed application list may include one or more pre-installed applications, i.e., the number of pre-installed applications installed into the terminal may be one or more.
In this implementation, the application file refers to an installation package of the preloaded application, and the formats of the application files are different for different operating systems, for example, the application files corresponding to the android system are android application package (Android Application Package, APK) files. The trace file carries anti-coverage information of the application, namely manufacturer information of the application file, and the trace file and the application file are installed in the terminal together to ensure that the terminal performs operations such as payment on the running pre-installed application.
In the embodiment of the disclosure, the terminal receives pre-installation application data corresponding to the ROM package information from the server by sending the ROM package information to the server, wherein the pre-installation application data is used for pre-installation application when the terminal is started to load the ROM package. Therefore, in the compiling process of the ROM package, the pre-installed application is not required to be compiled into the ROM package in a code mode, research and development resources required by the pre-installed application can be reduced, the implementation efficiency is improved, and the quality risk is reduced.
Optionally, sending a pre-installed application data request carrying ROM package information includes:
in the ROM package compiling process, sending a preassembly application data request to a server;
or, sending a pre-installed application data request carrying ROM package information, including:
and when the terminal is started to load the ROM package, sending a preassembly application data request to the server.
In this implementation, the method may be performed by the aforementioned first terminal, and the first terminal may send, when performing ROM package compilation, a pre-installation application data request to the server, thereby obtaining the pre-installation application compilation into the ROM package. Alternatively, the method may be performed by the foregoing, and the second terminal may send a pre-installed application data request to the server when the ROM package is booted up, thereby obtaining a direct installation of the pre-installed application to the local.
Optionally, receiving pre-installed application data corresponding to the ROM package information includes:
receiving preassembly information returned by a server, an application file downloading address and a tracking file downloading address, wherein the preassembly information is used for indicating configuration parameters of preassembly application;
transmitting a downloading request to equipment corresponding to the application file downloading address and the trace file downloading address;
receiving a returned application file and a trace file;
Alternatively, receiving preloaded application data corresponding to ROM package information, including:
and receiving preassembly information, an application file and a tracking file returned by the server, wherein the preassembly information is used for indicating configuration parameters of the preassembly application.
In this implementation, the pre-installed application data may include, in addition to pre-installed information for determining parameters when the pre-installed application is installed, an address for downloading the pre-installed application file or directly include the pre-installed application, and both schemes may implement the acquisition of the pre-installed application. The manner in which the address of the preloaded application file is downloaded is generally included because the server for configuring the preloaded application to the terminal and the server for storing the preloaded application file are separately provided.
Optionally, the method further comprises:
message digest algorithm 5 (Message Digest Algorithm, MD 5) for retrieving the application file and the trace file from the server;
comparing whether the MD5 of the downloaded application file is consistent with the MD5 of the acquired application file, and comparing whether the MD5 of the downloaded tracking file is consistent with the MD5 of the acquired tracking file;
if the MD5 of the downloaded application file is consistent with the MD5 of the obtained application file, storing the downloaded application file; if the MD5 of the downloaded trace file is consistent with the MD5 of the acquired trace file, the downloaded trace file is saved.
In this implementation, when downloading an application file and tracking the file, the terminal may verify the validity and integrity of the downloaded file through MD 5.
Optionally, the method further comprises:
packaging the preassembly information, the application file and the tracking file into a ROM package in the ROM package compiling process, so that the terminal installs the application file and the tracking file in the ROM package based on the preassembly information when the terminal starts up and loads the ROM package;
alternatively, the method further comprises:
and when the terminal is started to load the ROM package, the received application file and the trace file are installed in the terminal based on the preassembly information.
In this implementation, the method may be performed by the aforementioned first terminal, which may perform the method at the time of compiling the ROM package, thereby compiling the preloaded application into the ROM package. The method may also be performed by the aforementioned second terminal, which may perform the method upon boot loading of the ROM package, thereby downloading the preloaded application to the local direct installation.
Optionally, the type of the trace file is an application file or a text file.
In this implementation, the trace file may include two formats, where the application file format may be different depending on the specific operating system, for example, the android system may be an APK format, which may be directly installed; the text file can be a TXT file, can be called by a preassembly application, and can realize the functions of the text file in both modes.
It should be noted that the foregoing steps 101-102 and the foregoing optional steps may be combined arbitrarily.
FIG. 3 is a flowchart illustrating a method of pre-installing an application, according to an example embodiment. Referring to fig. 3, the method includes the steps of:
in step 201, a pre-installed application data request carrying ROM package information is received.
The method may be performed by the aforementioned server, receiving ROM package information from the terminal.
Here, the received ROM package information may be from the first terminal or the second terminal. Details of the ROM package information can be found in the description of step 101.
In step 202, pre-installation application data corresponding to the ROM package information is transmitted, the pre-installation application data being used for pre-installation application when the terminal is started up to load the ROM package.
ROM package information and pre-installed application data are configured in the server, and different ROM package information is respectively corresponding to the pre-installed application data. The server can determine pre-installed application data corresponding to ROM package information sent by the terminal based on the corresponding relation, and send the pre-installed application data to the terminal.
In the embodiment of the disclosure, the terminal receives pre-installation application data corresponding to the ROM package information from the server by sending the ROM package information to the server, wherein the pre-installation application data is used for pre-installation application when the terminal is started to load the ROM package. Therefore, in the compiling process of the ROM package, the pre-installed application is not required to be compiled into the ROM package in a code mode, research and development resources required by the pre-installed application can be reduced, the implementation efficiency is improved, and the quality risk is reduced.
Optionally, sending pre-installed application data corresponding to the ROM package information includes:
returning pre-installation information, an application file downloading address and a tracking file downloading address corresponding to the ROM package information to the terminal, wherein the pre-installation information is used for indicating configuration parameters of the pre-installation application;
alternatively, the sending pre-installed application data corresponding to the ROM package information includes:
and returning pre-installation information, an application file and a tracking file corresponding to the ROM package information to the terminal, wherein the pre-installation information is used for indicating configuration parameters of the pre-installation application.
Optionally, the method further comprises:
acquiring input ROM package information and preassembled application data;
ROM package information and pre-installed application data are associated and stored.
In this implementation, the server may receive ROM package information configured by the staff and preloaded application data in advance and store them in association for later use.
In the previous embodiment, the pre-installed application data has two implementation manners, and both implementation manners can be realized.
For example, the ROM package information and the pre-installed application data can be stored in a database in a server in a correlated manner, so that subsequent query and acquisition are facilitated.
The database of the server provides a corresponding interface for the terminal, so that the terminal can send a pre-installed application data request carrying ROM package information to inquire and acquire pre-installed application data.
The server acquires and stores the ROM package information and the pre-installed application data in an associated mode, and repeatedly executes the ROM package information and the pre-installed application data, for example, the ROM package information and the pre-installed application data are configured before a new ROM package is released or tested, so that compiling of the ROM package or direct installation of the pre-installed application by the terminal is facilitated.
Optionally, the stored ROM package information includes test ROM package information and formal ROM package information, where the test ROM package information and the formal ROM package information correspond to the same or different pre-installed application data.
In this implementation, the ROM package in the server typically includes a test version and a formal version, i.e., the offsite formal version may use the solution to install the preloaded application, which the vendor may also use to install during the stage of developing the ROM package. In general, when a manufacturer releases a formal ROM package, a test board is developed, and therefore, the test board ROM package information and the formal ROM package information are stored in the server at the same time.
It should be noted that the foregoing steps 201-202 and the foregoing optional steps may be combined arbitrarily.
FIG. 4 is a flowchart illustrating a method of pre-installing an application, according to an example embodiment. Referring to fig. 4, the method includes the steps of:
In step 301, the first terminal sends a pre-installed application data request to the server during the ROM package compilation process. The server receives ROM package information sent by the first terminal.
Details of the ROM package information can be found in the description of step 101.
FIG. 5 is a flowchart illustrating a method of pre-installing an application, according to an example embodiment. Referring to fig. 5, when the compiling task is performed by the running (Lunch) compiling client, the first terminal obtains ROM package information of the ROM package, and performs step 301.
In step 302, the server returns, to the first terminal, pre-installation information corresponding to the ROM package information, an application file download address, and a trace file download address, where the pre-installation information is used to indicate configuration parameters of the pre-installation application. The first terminal receives preassembly information, an application file download address and a trace file download address.
The server is used for storing the ROM package information and the preassembly application data in an associated mode, so that after the server receives the ROM package information sent by the first terminal, the server can search the preassembly application data corresponding to the ROM package information according to version information, customization information, model information and test information in the ROM package information and then send the preassembly application data to the first terminal.
Taking table 1 as an example, based on version information, customization information, model information and test information, a corresponding pre-installed application can be determined, and the server sends the pre-installed application data corresponding to the determined pre-installed application to the first terminal. Here, the pre-installed applications corresponding to the ROM packages having different version information and other information may be different, and the pre-installed applications corresponding to the ROM packages having the same version information and other information may be different.
TABLE 1
Version information Custom information Model information Test information Preassembled applications
1.0 Customization of # 1 Model 1# Without any means for Application 1
2.0 Customization of # 1 Model 1# Without any means for Application 1, 2
2.0 Customization of # 2 Model 1# Without any means for Application 1, 3
In step 303, the first terminal sends a download request to a device corresponding to the application file download address and the trace file download address.
Here, the application file download address and the trace file download address are not typically on the aforementioned servers, but are servers separate from the aforementioned servers.
If the application file download address and the trace file download address are in the aforementioned server, the aforementioned server may directly send the application file and the trace file to the first terminal in step 302, and steps 303 and 304 do not need to be performed.
In step 304, the first terminal receives the returned application file and the trace file.
Optionally, the method further comprises:
MD5 for acquiring application files and tracking files from the server;
comparing whether the MD5 of the downloaded application file is consistent with the MD5 of the acquired application file, and comparing whether the MD5 of the downloaded tracking file is consistent with the MD5 of the acquired tracking file;
if the MD5 of the downloaded application file is consistent with the MD5 of the obtained application file, storing the downloaded application file; if the MD5 of the downloaded trace file is consistent with the MD5 of the acquired trace file, the downloaded trace file is saved.
Here, the application file and the trace file are downloaded to a preset path of the ROM package source code to facilitate the compilation of the subsequent ROM package.
If the MD5 of the downloaded application file is inconsistent with the MD5 of the obtained application file, the application file is downloaded again; if the MD5 of the downloaded trace file is consistent with the MD5 of the acquired trace file, the trace file is re-downloaded.
As shown in fig. 5, after the first terminal obtains the pre-installed application data, the first terminal obtains the application file and the trace file through the pre-installed application data.
In step 305, the first terminal packages the preloaded information, the application file, and the trace file into a ROM package during the ROM package compilation process.
Since it usually takes a long time to compile the ROM package, step 301 may be completed at the beginning of compiling or in the first half of compiling, when the first terminal receives the application file and the trace file, the compiling work is still performed, and the compiling script compiles the obtained pre-installed information, the application file and the trace file into the ROM package to complete the compiling work.
After the compiling work is completed, if the test version ROM package is adopted, the test can be carried out on the second terminal. In the case of a formal version of the ROM package, distribution may be through a channel so that the user's second terminal may be downloaded from various channels and then updated with the ROM package.
As shown in fig. 5, when the first terminal acquires the pre-installation information, the application file and the trace file, the compiling of the ROM package is continued, and at this time, the pre-installation information, the application file and the trace file are compiled into the ROM package, so as to finally generate the ROM package.
In step 306, the second terminal installs the received application file and trace file into the second terminal based on the preloaded information when the ROM package is booted up.
The second terminal may install the application file and the trace file in the ROM package based on the preloaded information.
Wherein, if the trace file is an application file, for example, an APK file, the application file installation is executed; if the trace file is a text file, it is copied to the installation folder of the application.
FIG. 6 is a flowchart illustrating a method of pre-installing an application, according to an example embodiment. Referring to fig. 6, the method includes the steps of:
in step 401, the second terminal sends a pre-installed application data request to the server when the ROM package is loaded at power-on. The server receives ROM package information sent by the second terminal.
In this implementation, the second terminal has downloaded from the channel to the ROM package of the formal version and started to update, or the second terminal has acquired the ROM package of the test version and started to update. Prior to step 401, the method may further comprise: the first terminal performs the compiling of the ROM package, and the compiling process does not involve the pre-installed application, which is not described here in detail.
Details of the ROM package information can be found in the description of step 101.
In step 402, the server returns, to the second terminal, pre-installation information corresponding to the ROM package information, an application file download address, and a trace file download address, where the pre-installation information is used to indicate configuration parameters of the pre-installation application. And the second terminal receives the preassembly information, the application file downloading address and the trace file downloading address.
In step 403, the second terminal sends a download request to the device corresponding to the application file download address and the trace file download address.
In step 404, the second terminal receives the returned application file and trace file.
The detailed process of steps 402-404 may be referred to herein as steps 302-304, except that the execution subject differs.
In step 405, the second terminal installs the received application file and trace file into the second terminal based on the preloaded information.
The detailed procedure of step 405 may be referred to herein as step 306.
Fig. 7 is a schematic structural diagram illustrating an apparatus for pre-installing an application according to an exemplary embodiment. The device has the function of realizing the terminal in the method embodiment, and the function can be realized by hardware or can be realized by executing corresponding software by hardware. As shown in fig. 7, the apparatus includes: a transmitting module 501 and a receiving module 502.
Wherein the sending module 501 is configured to send a pre-installed application data request carrying ROM package information; the receiving module 502 is configured to receive preloaded application data corresponding to the ROM package information, the preloaded application data being used for preloaded applications when the terminal is booted up to load the ROM package.
Optionally, the ROM package information includes version information, and at least one of:
Customization information, model information, and test information.
Optionally, the sending module 501 is configured to send, during the ROM package compiling process, a pre-installation application data request to the server;
alternatively, the sending module 501 is configured to send a pre-installation application data request to the server when the terminal is booted up to load the ROM package.
Optionally, the receiving module 502 is configured to receive pre-installation information returned by the server, an application file download address and a trace file download address, where the pre-installation information is used to indicate configuration parameters of the pre-installation application;
a sending module 501 configured to send a download request to a device corresponding to the application file download address and the trace file download address;
a receiving module 502 configured to receive the returned application file and the trace file;
or, the receiving module 502 is configured to receive pre-installation information, an application file and a tracking file returned by the server, where the pre-installation information is used to indicate configuration parameters of the pre-installation application.
Optionally, the apparatus further comprises:
an acquisition module 503 configured to acquire MD5 of the application file and the trace file from the server;
a comparison module 504 configured to compare whether MD5 of the downloaded application file is consistent with MD5 of the acquired application file and whether MD5 of the downloaded trace file is consistent with MD5 of the acquired trace file;
A storage module 505 configured to save the downloaded application file if MD5 of the downloaded application file is consistent with MD5 of the acquired application file; if the MD5 of the downloaded trace file is consistent with the MD5 of the acquired trace file, the downloaded trace file is saved.
Optionally, the apparatus further comprises:
the processing module 506 is configured to package the pre-installation information, the application file and the trace file into the ROM package in the ROM package compiling process, so that the terminal installs the application file and the trace file in the ROM package based on the pre-installation information when the ROM package is loaded during startup;
alternatively, the apparatus further comprises:
and a processing module 506 configured to install the received application file and trace file into the terminal based on the preloaded information when the terminal is booted up with the ROM package.
Optionally, the type of the trace file is an application file or a text file.
Fig. 8 is a schematic structural view of an apparatus for pre-installation application according to an exemplary embodiment. The device has the function of realizing the server in the method embodiment, and the function can be realized by hardware or can be realized by executing corresponding software by hardware. As shown in fig. 8, the apparatus includes: a receiving module 601 and a transmitting module 602.
Wherein the receiving module 601 is configured to receive a pre-installed application data request carrying ROM package information; the transmitting module 602 is configured to transmit preloaded application data corresponding to the ROM package information, the preloaded application data being used for preloaded applications when the terminal is booted up to load the ROM package.
Optionally, the ROM package information includes version information, and at least one of:
customization information, model information, and test information.
Optionally, the sending module 602 is configured to return, to the terminal, pre-installation information corresponding to the ROM package information, an application file download address, and a trace file download address, where the pre-installation information is used to indicate configuration parameters of the pre-installation application;
or, the sending module 602 is configured to return, to the terminal, pre-installation information, an application file and a tracking file corresponding to the ROM package information, where the pre-installation information is used to indicate configuration parameters of the pre-installation application.
Optionally, the apparatus further comprises:
an acquisition module 603 configured to acquire the input ROM package information and preloaded application data;
the storage module 604 is configured to associate and store the ROM package information with the pre-installed application data.
Optionally, the stored ROM package information includes test ROM package information and formal ROM package information, where the test ROM package information and the formal ROM package information correspond to the same or different pre-installed application data.
Fig. 9 is a block diagram of an electronic device 700, the electronic device 700 being a terminal or a server, according to an exemplary embodiment, the electronic device may include: a processor 701, a receiver 702, a transmitter 703, a memory 704 and a bus 705.
The processor 701 includes one or more processing cores, and the processor 701 executes various functional applications and information processing by running software programs and modules.
The receiver 702 and the transmitter 703 may be implemented as one communication component, which may be a communication chip.
The memory 704 is connected to the processor 701 through the bus 705.
The memory 704 may be used for storing at least one instruction, and the processor 701 is configured to execute the at least one instruction to implement the steps in the above-described method embodiments.
Further, memory 704 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, including but not limited to: magnetic or optical disks, electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), static Random Access Memory (SRAM), read-only memory (ROM), magnetic memory, flash memory, programmable read-only memory (PROM).
In an exemplary embodiment, there is also provided a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which are loaded and executed by the processor to implement the method of pre-installing an application provided by the above respective method embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (23)

1. A method of pre-installing an application, the method comprising:
transmitting a preassembled application data request carrying ROM package information of a read-only memory to a server at the beginning of ROM package compiling or in the first half period of compiling;
receiving pre-installed application data corresponding to the ROM package information, wherein the pre-installed application data is used for pre-installing an application when the terminal is started to load the ROM package, and the pre-installed application data comprises pre-installed information, an application file and a tracking file;
and packaging the preassembly information, the application file and the tracking file into the ROM package in the ROM package compiling process, so that the terminal installs the application file and the tracking file in the ROM package based on the preassembly information when acquiring the ROM package and updating the ROM package.
2. The method of claim 1, wherein the ROM package information includes version information or the ROM package information includes version information, and at least one of:
customization information, model information, and test information.
3. The method of claim 1, wherein said receiving pre-installed application data corresponding to said ROM package information comprises:
receiving preassembly information returned by a server, an application file downloading address and a tracking file downloading address, wherein the preassembly information is used for indicating the preassembly of configuration parameters of the application;
Sending a downloading request to equipment corresponding to the application file downloading address and the trace file downloading address;
receiving a returned application file and a trace file;
or, the receiving pre-installed application data corresponding to the ROM package information includes:
and receiving preassembly information, an application file and a tracking file returned by the server, wherein the preassembly information is used for indicating the preassembly of the configuration parameters of the application.
4. A method according to claim 3, characterized in that the method further comprises:
MD5 of obtaining the application file and the trace file from the server;
comparing whether the MD5 of the downloaded application file is consistent with the MD5 of the acquired application file, and comparing whether the MD5 of the downloaded tracking file is consistent with the MD5 of the acquired tracking file;
if the MD5 of the downloaded application file is consistent with the MD5 of the obtained application file, storing the downloaded application file; and if the MD5 of the downloaded tracking file is consistent with the MD5 of the acquired tracking file, storing the downloaded tracking file.
5. The method of claim 3 or 4, wherein the tracking file is of the type application file or text file.
6. A method of pre-installing an application, the method comprising:
receiving a pre-installed application data request carrying ROM package information, wherein the pre-installed application data request is sent at the beginning of compiling the ROM package or in the first half period of compiling;
and sending pre-installation application data corresponding to the ROM package information, wherein the pre-installation application data are used for pre-installing an application when the terminal starts up and loads the ROM package, and the pre-installation application data comprise pre-installation information, an application file and a tracking file, so that the pre-installation information, the application file and the tracking file are packaged into the ROM package in the ROM package compiling process, and the terminal installs the application file and the tracking file in the ROM package based on the pre-installation information when acquiring and updating the ROM package.
7. The method of claim 6, wherein the ROM package information includes version information or the ROM package information includes version information, and at least one of:
customization information, model information, and test information.
8. The method of claim 6, wherein the transmitting pre-installed application data corresponding to the ROM package information comprises:
Returning pre-loading information, an application file downloading address and a tracking file downloading address corresponding to the ROM package information to a terminal, wherein the pre-loading information is used for indicating pre-loading configuration parameters of the application;
or, the sending pre-installed application data corresponding to the ROM package information includes:
and returning preassembly information, an application file and a tracking file corresponding to the ROM package information to the terminal, wherein the preassembly information is used for indicating the preassembly of the configuration parameters of the application.
9. The method according to any one of claims 6 to 8, further comprising:
acquiring input ROM package information and preassembled application data;
and storing the ROM package information and the preloaded application data in an associated mode.
10. The method of claim 9, wherein the ROM package information stored includes test version ROM package information and formal version ROM package information.
11. An apparatus for preassembling applications, the apparatus comprising:
the sending module is configured to send a preassembly application data request carrying ROM package information to the server at the beginning of ROM package compiling or in the first half period of compiling;
the receiving module is configured to receive pre-installation application data corresponding to the ROM package information, wherein the pre-installation application data is used for pre-installation application when the terminal is started to load the ROM package, and the pre-installation application data comprises pre-installation information, an application file and a tracking file;
And the processing module is configured to package the pre-installation information, the application file and the tracking file into the ROM package in the ROM package compiling process, so that the terminal installs the application file and the tracking file in the ROM package based on the pre-installation information when acquiring and updating the ROM package.
12. The apparatus of claim 11, wherein the ROM package information comprises version information or the ROM package information comprises version information, and at least one of:
customization information, model information, and test information.
13. The apparatus of claim 11, wherein the receiving module is configured to receive pre-installation information returned by a server, an application file download address, and a trace file download address, the pre-installation information being used to indicate pre-installation of configuration parameters of the application;
the sending module is configured to send a downloading request to equipment corresponding to the application file downloading address and the trace file downloading address;
the receiving module is configured to receive the returned application file and the trace file;
or the receiving module is configured to receive preassembly information, an application file and a tracking file returned by the server, wherein the preassembly information is used for indicating the preassembly of the configuration parameters of the application.
14. The apparatus of claim 13, wherein the apparatus further comprises:
an acquisition module configured to acquire MD5 of the application file and trace file from the server;
a comparison module configured to compare whether the downloaded MD5 of the application file is consistent with the acquired MD5 of the application file, and whether the downloaded MD5 of the trace file is consistent with the acquired MD5 of the trace file;
a storage module configured to save the downloaded application file if MD5 of the downloaded application file is consistent with the acquired MD5 of the application file; and if the MD5 of the downloaded tracking file is consistent with the MD5 of the acquired tracking file, storing the downloaded tracking file.
15. The apparatus of claim 13 or 14, wherein the tracking file is of the type application file or text file.
16. An apparatus for preassembling applications, the apparatus comprising:
a receiving module configured to receive a pre-installed application data request carrying ROM package information, the pre-installed application data request being sent at the beginning of compiling the ROM package or within the first half of compiling;
The sending module is configured to send pre-installation application data corresponding to the ROM package information, wherein the pre-installation application data are used for pre-installation application when the ROM package is started up and loaded by the terminal, the pre-installation application data comprise pre-installation information, application files and tracking files, so that the pre-installation information, the application files and the tracking files are packaged into the ROM package in the ROM package compiling process, and the terminal installs the application files and the tracking files in the ROM package based on the pre-installation information when the ROM package is acquired and updated by the terminal.
17. The apparatus of claim 16, wherein the ROM package information comprises version information or the ROM package information comprises version information, and at least one of:
customization information, model information, and test information.
18. The apparatus of claim 16, wherein the sending module is configured to return, to a terminal, pre-installation information corresponding to the ROM package information, an application file download address, and a trace file download address, the pre-installation information being used to indicate a configuration parameter for pre-installing the application;
or the sending module is configured to return pre-loading information, an application file and a tracking file corresponding to the ROM package information to the terminal, wherein the pre-loading information is used for indicating the pre-loading of the configuration parameters of the application.
19. The apparatus according to any one of claims 16 to 18, further comprising:
the acquisition module is configured to acquire the input ROM package information and preassembled application data;
and the storage module is configured to associate and store the ROM package information and the pre-installed application data.
20. The apparatus of claim 19, wherein the ROM package information stored includes test version ROM package information and formal version ROM package information.
21. A terminal, the terminal comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to load and execute the executable instructions to implement the method of pre-installed application of any of claims 1 to 5.
22. A server, the server comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to load and execute the executable instructions to implement the method of pre-installed application of any of claims 6 to 10.
23. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor, are capable of performing the method of pre-installing an application according to any of claims 1 to 5 or of performing the method of pre-installing an application according to any of claims 6 to 10.
CN201911122554.8A 2019-11-15 2019-11-15 Method, device, terminal, server and storage medium for pre-installing application Active CN110851151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911122554.8A CN110851151B (en) 2019-11-15 2019-11-15 Method, device, terminal, server and storage medium for pre-installing application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911122554.8A CN110851151B (en) 2019-11-15 2019-11-15 Method, device, terminal, server and storage medium for pre-installing application

Publications (2)

Publication Number Publication Date
CN110851151A CN110851151A (en) 2020-02-28
CN110851151B true CN110851151B (en) 2023-07-18

Family

ID=69600608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911122554.8A Active CN110851151B (en) 2019-11-15 2019-11-15 Method, device, terminal, server and storage medium for pre-installing application

Country Status (1)

Country Link
CN (1) CN110851151B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651734B (en) * 2020-05-27 2022-03-22 支付宝(杭州)信息技术有限公司 Installation management method, device, equipment and system for applet
CN113204355A (en) * 2021-05-20 2021-08-03 山东英信计算机技术有限公司 Method, system, terminal and storage medium for pre-installing software of domestic system
CN113391825A (en) * 2021-07-01 2021-09-14 读书郎教育科技有限公司 Method and system for dynamically and automatically pre-installing application
WO2025002072A1 (en) * 2023-06-30 2025-01-02 华为技术有限公司 Method for restoring application program, and related apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731733A (en) * 2013-12-19 2014-04-16 乐视网信息技术(北京)股份有限公司 Version upgrading method and electronic device
JP2015106274A (en) * 2013-11-29 2015-06-08 ブラザー工業株式会社 Installation control program, recording medium, and installation control method
CN107798236A (en) * 2017-11-30 2018-03-13 广州优视网络科技有限公司 It is a kind of that the method and apparatus installed safely are realized to application program installation kit
CN108763243A (en) * 2018-03-27 2018-11-06 广东欧珀移动通信有限公司 Application program recommendation method and device, mobile terminal and server
CN109246454A (en) * 2018-09-03 2019-01-18 郑州云海信息技术有限公司 Set-top box management method, device, terminal and storage medium based on cloud platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015106274A (en) * 2013-11-29 2015-06-08 ブラザー工業株式会社 Installation control program, recording medium, and installation control method
CN103731733A (en) * 2013-12-19 2014-04-16 乐视网信息技术(北京)股份有限公司 Version upgrading method and electronic device
CN107798236A (en) * 2017-11-30 2018-03-13 广州优视网络科技有限公司 It is a kind of that the method and apparatus installed safely are realized to application program installation kit
CN108763243A (en) * 2018-03-27 2018-11-06 广东欧珀移动通信有限公司 Application program recommendation method and device, mobile terminal and server
CN109246454A (en) * 2018-09-03 2019-01-18 郑州云海信息技术有限公司 Set-top box management method, device, terminal and storage medium based on cloud platform

Also Published As

Publication number Publication date
CN110851151A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
CN110851151B (en) Method, device, terminal, server and storage medium for pre-installing application
KR102204115B1 (en) Patch upgrade-based file processing method and device, terminal, and storage medium
US10528742B2 (en) Method and apparatus for repairing kernel vulnerability
CN108847950B (en) Electronic device, cloud system software automatic deployment method and storage medium
US11550599B2 (en) Method and apparatus for running applet
US20090133014A1 (en) Methods, apparatuses and computer program product for automatic download of software dependencies on installation
CN106027644B (en) Service verification method and system
CN110750286B (en) Management method, device, system, equipment and medium for upgrading Mbn through OTA
CN106802814A (en) For the method and device of software release upgrade
US10078532B2 (en) Resource management method and device for terminal system among multiple operating systems
CN118170431B (en) Cross-operating system service migration method and device and electronic equipment
CN111949314A (en) Method, device, server and storage medium for generating application installation package
CN112769706B (en) Componentized routing method and system
CN110413292B (en) Light application installation method of application program, mobile terminal and storage medium
CN113420010A (en) Database management method and device, electronic equipment and storage medium
CN115237459A (en) Software development kit generation method, device, equipment, storage medium and product
CN112486509B (en) Jar package assembly hot deployment method and system
CN112882733B (en) Application updating method and device, electronic equipment and storage medium
CN108664259B (en) Method and terminal for installing application
CN113377400A (en) Software upgrading method and device, storage medium and electronic equipment
CN113867756A (en) Software upgrading method, terminal equipment and readable storage medium
CN112527336A (en) Operating system software installation method, device, equipment and storage medium
CN110247966B (en) Kernel creation method, smart television and computer-readable storage medium
CN113722538B (en) Interface dynamic rendering method and device
KR101437837B1 (en) Method and apparatus for downloading of content interlock between dynamic platform  in a mobile communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant