[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110502251B - Application installation method and device - Google Patents

Application installation method and device Download PDF

Info

Publication number
CN110502251B
CN110502251B CN201910758844.5A CN201910758844A CN110502251B CN 110502251 B CN110502251 B CN 110502251B CN 201910758844 A CN201910758844 A CN 201910758844A CN 110502251 B CN110502251 B CN 110502251B
Authority
CN
China
Prior art keywords
installation
application
target application
file
installing
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
CN201910758844.5A
Other languages
Chinese (zh)
Other versions
CN110502251A (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.)
Zhengzhou Apas Technology Co ltd
Original Assignee
Zhengzhou Apas Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Apas Technology Co ltd filed Critical Zhengzhou Apas Technology Co ltd
Priority to CN201910758844.5A priority Critical patent/CN110502251B/en
Publication of CN110502251A publication Critical patent/CN110502251A/en
Application granted granted Critical
Publication of CN110502251B publication Critical patent/CN110502251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

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

Abstract

One or more embodiments of the present specification disclose an application installation method and apparatus, so as to solve the problem that, in the prior art, part of application markets cannot be compatible with applications in a special format, and thus applications cannot be installed. The method comprises the following steps: determining a target application of a first specified format to be installed; the first specified format is a format that is not supported by the first application marketplace; judging whether the target application has system authority or not; determining an installation mode for installing the installation file of the second specified format of the target application according to the judgment result; and installing the installation file of the target application according to the determined installation mode so that the target application in the first specified format is installed to the terminal equipment. According to the technical scheme, the installation process of the target application in the first specified format can be simplified through the installation mode, so that convenience is provided for a user to install the target application in the first specified format on the terminal equipment, and the development process of the application is simplified.

Description

Application installation method and device
Technical Field
The present disclosure relates to the field of application installation technologies, and in particular, to an application installation method and apparatus.
Background
At present, mobile phones are developed more and more quickly, and applications are also larger and more, and many enterprises are dedicated to reducing the installation volume of users, so that the user experience is improved, the probability of application downloading failure is reduced, and the mobile phone is very beneficial to users and application developers. Based on this, google provides a format, namely an App Bundle format, which can decompose an application into a plurality of modules, and when a user installs the application, only the modules required by the user need to be installed.
The above approach is very beneficial to both the user and the enterprise, but few enterprises currently employ it. The reason is that: on the one hand, only the google play application mall uses the format (. Apks), and if the application supports the format, the application store cannot upload the application store; on the other hand, the application of this format depends on the way that is totally opposite to the packing way of most applications at present. Making it difficult for enterprises to be compatible with the above packaging formats (. Apks).
Disclosure of Invention
One or more embodiments of the present disclosure provide an application installation method and apparatus, so as to solve a problem that, in the prior art, part of an application market cannot be compatible with an application in a special format, so that the application cannot be installed.
To solve the above technical problem, one or more embodiments of the present specification are implemented as follows:
in one aspect, one or more embodiments of the present specification provide an application installation method, which is applied to a terminal device, and includes:
determining a target application of a first specified format to be installed; the first specified format is a format that is not supported by a first application marketplace; the installation files corresponding to the target application comprise installation files in a second specified format;
judging whether the target application has system authority or not;
determining an installation mode for installing the installation file of the second specified format of the target application according to the judgment result; the installation mode includes: installing the installation file by using the service packaged in the installation file in advance; or, installing the installation file by using a configuration file configured for each application module of the target application in advance;
and installing the installation file of the target application according to the determined installation mode so that the target application in the first specified format is installed to the terminal equipment.
In an embodiment, the determining, according to the determination result, an installation manner for installing the installation file of the second specified format of the target application includes:
if the target application has the system authority, determining that the installation mode is as follows: installing the installation file by using the service packaged in the installation file in advance;
wherein the service has at least one of the following functions:
downloading the installation file to a specified installation directory;
installing the installation files in a silent mode;
and updating the installation file in a silent mode.
In an embodiment, the installing the installation file of the target application according to the determined installation manner includes:
downloading the installation file from a network side;
calling the service in the installation file, and storing the downloaded installation file to an installation directory corresponding to the target application by using the service;
and when a starting request for the target application is received, loading the installation file stored under the installation directory.
In an embodiment, the determining, according to the determination result, an installation manner for installing the installation file of the second specified format of the target application includes:
if the target application does not have the system authority, determining that the installation mode is as follows: and installing the installation file by utilizing the configuration file configured for each application module of the target application in advance.
In one embodiment, the target application comprises a plurality of application modules which are disassembled in advance; the installation file comprises a main application installation package and installation packages corresponding to the application modules respectively;
the installing the installation file of the target application according to the determined installation mode so that the target application in the first specified format is installed to the terminal device includes:
acquiring a main application installation package of the target application from a network side; wherein the primary application installation package comprises the configuration file; the configuration file is used for indicating the downloading time of the installation package of each application module;
determining a first installation package needing to be downloaded currently according to the downloading opportunity indicated by the configuration file, and downloading the first installation package from the network side;
when a starting request for the target application is received, downloading a second installation package except the first installation package in the installation packages of the application modules so as to download all the installation packages of the application modules to the terminal equipment;
and integrating the second installation package and the first installation package so as to load all installation packages of the target application to the terminal equipment.
In one embodiment, the downloading, when a start request for the target application is received, a second installation package, other than the first installation package, in the sub-installation packages of the application modules includes:
creating a shortcut starting icon of the target application at a designated position of the terminal equipment;
and when the clicking operation of the shortcut starting icon is received, downloading the second installation package.
In one embodiment, the first specified format is a Bundle format; the second specified format is an apks format.
In another aspect, one or more embodiments of the present specification provide an application installation apparatus, applied to a terminal device, including:
the first determining module is used for determining a target application in a first specified format to be installed; the first specified format is a format that is not supported by a first application marketplace; the installation files corresponding to the target application comprise installation files in a second specified format;
the judging module is used for judging whether the target application has system authority or not;
the second determining module is used for determining an installation mode for installing the installation file of the second specified format of the target application according to the judgment result; the installation mode includes: installing the installation file by using the service packaged in the installation file in advance; or, installing the installation file by using a configuration file configured for each application module of the target application in advance;
and the installation module is used for installing the installation file of the target application according to the determined installation mode so as to enable the target application in the first specified format to be installed to the terminal equipment.
In one embodiment, the second determining module comprises:
a first determining unit, configured to determine, if the target application has the system permission, that the installation manner is: installing the installation file by using the service packaged in the installation file in advance;
wherein the service has at least one of the following functions:
downloading the installation file to a specified installation directory;
installing the installation files in a silent mode;
and updating the installation file in a silent mode.
In one embodiment, the installation module comprises:
the first downloading unit is used for downloading the installation file from a network side;
the calling and storing unit is used for calling the service in the installation file and storing the downloaded installation file to an installation directory corresponding to the target application by using the service;
and the loading unit is used for loading the installation file stored under the installation directory when a starting request for the target application is received.
In one embodiment, the second determining module comprises:
a second determining unit, configured to determine, if the target application does not have the system permission, that the installation manner is: and installing the installation file by utilizing the configuration file configured for each application module of the target application in advance.
In one embodiment, the target application comprises a plurality of application modules which are disassembled in advance; the installation file comprises a main application installation package and installation packages corresponding to the application modules respectively;
the installation module includes:
the acquisition unit is used for acquiring the main application installation package of the target application from a network side; wherein the primary application installation package comprises the configuration file; the configuration file is used for indicating the downloading time of the installation package of each application module;
a third determining unit, configured to determine, according to the downloading opportunity indicated by the configuration file, a first installation package that needs to be downloaded currently, and download the first installation package from the network side;
a second downloading unit, configured to, when receiving a start request for the target application, download a second installation package, except the first installation package, of the installation packages of the application modules, so that all installation packages of the application modules are downloaded to the terminal device;
and the integration unit is used for integrating the second installation package and the first installation package so as to load all installation packages of the target application to the terminal equipment.
In one embodiment, the second downloading unit is further configured to:
creating a shortcut starting icon of the target application at a designated position of the terminal equipment;
and downloading the second installation package when the click operation of the shortcut starting icon is received.
In one embodiment, the first specified format is a Bundle format; the second specified format is an apks format.
In another aspect, one or more embodiments of the present specification provide a terminal device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
determining a target application in a first specified format to be installed; the first specified format is a format that is not supported by a first application marketplace; the installation files corresponding to the target application comprise installation files in a second specified format;
judging whether the target application has system authority or not;
determining an installation mode for installing the installation file of the second specified format of the target application according to the judgment result; the installation mode includes: installing the installation file by using the service packaged in the installation file in advance; or, installing the installation file by using a configuration file configured for each application module of the target application in advance;
and installing the installation file of the target application according to the determined installation mode so that the target application in the first specified format is installed to the terminal equipment.
In another aspect, an embodiment of the present application provides a storage medium for storing computer-executable instructions, where the executable instructions, when executed, implement the following processes:
determining a target application in a first specified format to be installed; the first specified format is a format that is not supported by a first application marketplace; the installation files corresponding to the target application comprise installation files in a second specified format;
judging whether the target application has system authority or not;
determining an installation mode for installing the installation file of the second specified format of the target application according to the judgment result; the installation mode includes: installing the installation file by using the service packaged in the installation file in advance; or, installing the installation file by using a configuration file configured for each application module of the target application in advance;
and installing the installation file of the target application according to the determined installation mode so that the target application in the first specified format is installed to the terminal equipment.
By adopting the technical scheme of one or more embodiments of the present specification, it is possible to determine, according to whether a target application has a system right, an installation manner of the target application in a first specified format (an installation file is installed by using a service pre-packaged in the installation file, or the installation file is installed by using a configuration file configured for each application module of the target application in advance), where the first specified format (such as Bundle format) is not supported by a first application market, and then install, according to the installation manner corresponding to the target application, the installation file in a second specified format (such as apks format) included in the target application in the first specified format, so that the target application in the first specified format is installed to a terminal device. Therefore, the technical scheme can simplify the installation process of the target application in the first specified format through the installation mode, so that convenience is provided for a user to install the target application in the first specified format on the terminal equipment, and multiple formats do not need to be developed for the same application, so that the development process of the application is simplified.
Drawings
In order to more clearly illustrate one or more embodiments or technical solutions in the prior art in the present specification, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in one or more embodiments of the present specification, and other drawings can be obtained by those skilled in the art without inventive exercise.
FIG. 1 is a schematic flow chart diagram of a method of application installation in accordance with one embodiment of the present description;
FIG. 2 is a schematic flow chart diagram of a method of application installation in accordance with another embodiment of the present description;
FIG. 3 is a schematic flow chart diagram of a method of application installation in accordance with yet another embodiment of the present description;
FIG. 4 is a diagram illustrating installation file contents in an application installation method according to an embodiment of the present disclosure;
FIG. 5 is a resource diagram after file parsing in an application installation method according to an embodiment of the present disclosure;
FIG. 6 is a schematic block diagram of an application installation apparatus in accordance with one embodiment of the present description;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present specification.
Detailed Description
One or more embodiments of the present disclosure provide an application installation method and apparatus, so as to solve a problem that, in the prior art, part of an application market cannot be compatible with an application in a special format, so that the application cannot be installed.
In order to make those skilled in the art better understand the technical solutions in one or more embodiments of the present disclosure, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in one or more embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from one or more of the embodiments of the present disclosure without making any creative effort shall fall within the protection scope of one or more of the embodiments of the present disclosure.
Fig. 1 is a schematic flowchart of an application installation method according to an embodiment of the present specification, and as shown in fig. 1, the method is applied to a terminal device, and includes:
s102, determining a target application of a first specified format to be installed; the first specified format is a format that is not supported by the first application marketplace; and the installation file corresponding to the target application comprises an installation file in a second specified format.
Wherein the first application marketplace may be one or more application marketplaces, including application marketplaces where users typically download application installation packages. The first designated format may be a Bundle format, and the target application of the Bundle format corresponds to an installation file having an apks format, and thus, the second designated format may be an apks format.
And S104, judging whether the target application has system authority.
The application with the system authority is pre-installed application when the terminal device leaves a factory, and the application without the system authority is third-party application downloaded from an application market by a user.
S106, determining an installation mode for installing the installation file with the second specified format of the target application according to the judgment result; the mounting mode includes: installing the installation file by using the service packaged in the installation file in advance; or, the installation file is installed by using the configuration file configured for each application module of the target application in advance.
And S108, installing the installation file of the target application according to the determined installation mode so that the target application in the first specified format is installed to the terminal equipment.
By adopting the technical scheme of one or more embodiments of the present specification, it is possible to determine, according to whether a target application has a system right, an installation manner of the target application in a first specified format (an installation file is installed by using a service pre-packaged in the installation file, or the installation file is installed by using a configuration file configured for each application module of the target application in advance), where the first specified format (such as Bundle format) is not supported by a first application market, and then install, according to the installation manner corresponding to the target application, the installation file in a second specified format (such as apks format) included in the target application in the first specified format, so that the target application in the first specified format is installed to a terminal device. Therefore, the technical scheme can simplify the installation process of the target application in the first specified format through the installation mode, so that convenience is provided for a user to install the target application in the first specified format on the terminal equipment, and multiple formats do not need to be developed for the same application, so that the development process of the application is simplified.
The application installation method provided in the above embodiment is described below by taking the first designated format as Bundle format and the second designated format as apks format as an example.
In one embodiment, if the target application in the Bundle format has the system authority, determining that the installation mode of the target application is as follows: and installing the installation file by using the service packaged in the installation file in advance.
In this embodiment, the background supports the terminal device to upload the target application in the Bundle format. A service can be packaged in the target application in the Bundle format in advance, and the service has at least one of the following functions: and downloading the installation files to a specified installation directory, a silent installation file and a silent update installation file.
Fig. 2 is a schematic flowchart of installing an installation file by using a service according to this embodiment. In this embodiment, the Bundle format target application has a system right. As shown in fig. 2, the method comprises the following steps:
s201, downloading the installation file of the target application in the Bundle format from the network side.
The format of the installation file is apks format.
S202, calling a service packaged in advance in the installation file, and storing the downloaded installation file to an installation directory corresponding to the target application by using the service.
When the step is executed, because the service has the function of downloading the installation files to the specified installation directory, the installation files of the target application can be stored to the installation directory corresponding to the target application through the function of the service.
S203, when a starting request for the target application is received, the installation files stored in the installation catalog corresponding to the target application are loaded.
When the step is executed, because the service has the function of installing the installation files in a silent mode, the installation files stored in the installation directory corresponding to the target application can be loaded through the function of the service.
In this embodiment, because the Bundle-formatted target application has the system permission, a service can be directly packaged in the target application, and the function of the service can be used to implement the installation of the Bundle-formatted target application by the terminal device, thereby providing convenience for a user to install the first specified format target application on the terminal device.
In one embodiment, if the target application in the Bundle format does not have the system authority, determining that the installation mode of the target application is as follows: and installing the installation file by using the configuration file configured for each application module of the target application in advance.
In this embodiment, the background supports the terminal device to upload the target application in the Bundle format. The target application comprises a plurality of application modules which are disassembled in advance; the installation file of the target application comprises a main application installation package and installation packages corresponding to the application modules respectively.
Fig. 3 is a schematic flowchart of installing an installation file by using a configuration file of each application module according to this embodiment. In this embodiment, the Bundle format target application does not have system authority. As shown in fig. 3, the method comprises the following steps:
s301, the network side disassembles the application in the Bundle format into a plurality of application modules and configures configuration files of the application modules.
The configuration file is used for indicating the downloading time of the installation package of each application module. For example, the configuration file indicates that the download time of the installation package of the application module a is immediate download; or the configuration file indicates that the downloading time of the installation package of the application module B is the temporary downloading time; and so on. The configuration files of the application modules are stored in the main application installation package.
In this embodiment, the installation file corresponding to the Bundle-format application is in an apks format, where the apks format may also be referred to as an aab format and is a set of multiple apk-format files. The aab format is a compressed package format, a real installation package of the application module is contained in the compressed package format, and the detailed internal structure of the file is as follows:
Figure BDA0002169625470000091
apk is the main application installation package, i.e. the module that the user must rely on. Apk (X =1, 2 … …) is a configurable module, that is, the download timing of the installation package corresponding to the featurex.apk can be configured.
For example, the configuration file of a certain application module is as follows:
Figure BDA0002169625470000092
Figure BDA0002169625470000101
the package is a package name of the current application module and is a unique identifier of the application module. And the ondEMand is used for indicating whether the installation package corresponding to the current application module is downloaded on demand. If the value of the onDemand is false, the installation package corresponding to the current application module is a first installation package needing to be downloaded in the first batch; if the value of onDemand is true, it indicates that the installation package corresponding to the current application module does not need to be downloaded immediately, and the installation package can be downloaded when needed (for example, when the target application is started). After the main application installation package is analyzed, the specific file content shown in fig. 4 can be obtained.
In the application development stage of the Bundle format, values of a package field and an onDemand required by a user can be obtained by analyzing the android Manifest file under the aab file, and whether a corresponding application module installation package is immediately issued or not is determined according to the values.
S302, storing installation files of the applications in the Bundle format on a network side, wherein the installation files comprise a main application installation package and installation packages corresponding to all application modules respectively.
S303, when the target application in the Bundle format is installed on the terminal equipment, a main application installation package of the target application is obtained from the network side.
The main application installation package comprises configuration files of all application modules of the target application.
S304, the terminal equipment determines the first installation package needing to be downloaded currently according to the downloading time of each application module indicated by the configuration file, and downloads the first installation package from the network side.
S305, when the terminal device receives a starting request for the target application, downloading a second installation package except the first installation package from the installation packages of the application modules from the network side, so that all the installation packages of the application modules are downloaded to the terminal device.
After S304 is executed, that is, after the first installation package is downloaded from the network side, the shortcut start icon of the target application may be created at a designated location (for example, a desktop) of the terminal device, and when a click operation on the shortcut start icon of the target application is received, it is considered that a start request of the user for the target application is received, and at this time, the second installation package is downloaded.
And S306, the terminal equipment integrates the second installation package and the first installation package, so that all installation packages of the target application are loaded to the terminal equipment.
In this embodiment, for each downloaded installation package (including the second installation package and the first installation package), the terminal device may analyze the apk file corresponding to each installation package, and obtain dex, so, and a resource file after the analysis, as shown in fig. 5, where these files are all stored in the installation directory corresponding to the target application.
The meanings of the items of related information shown in fig. 5 are as follows:
ass. Pb: assets resource product check file
resources
native. Pb c/c + + code product check file
Mainfest/android Manifest configuration file
dex/java code product catalog
res resource directory
Assets File directory
lib c/c + + product catalog
The installation directory corresponding to the target application may refer to, but is not limited to, the following directories: data/data/package/files/demo/. The Package is the Package name of the local application, the demo is the Package name of the target application to be installed, and the dex, so, resource files and the like of the application are stored in the demo directory.
When the target application needs to be started, dex resources can be loaded through the ClassLoader, and the principle is as follows:
ClassLoader classLoader=new DexClassLoader(dexpath,optimizeDirect,libPath,parent);
wherein, dexPath: a path of dex;
optimizeDirect: generating a product catalog;
libPath: a path of the so file;
parent: the classLoader held by the terminal equipment is generally a system classLoader;
after obtaining the classLoader, the class name can pass through the classLoader. Load to required class operation.
So resource files can be loaded through the AssertManager, and the principle is as follows:
AssetManager am=new AssetManager();
am.addAssetPath(path);
path, wherein, the generated apk file of each application module
Through the method, the dex code, the so code and the resource file in the apk file can be executed, so that the file in the whole Bundle format is executed.
In this embodiment, since the target application in the Bundle format does not have the system permission, the service cannot be encapsulated inside the target application. The method has the advantages that the target application is disassembled into the application modules, and the installation packages required to be downloaded are selected from the installation packages corresponding to the application modules respectively for integration and installation, so that the terminal equipment can simply, conveniently and quickly install the target application in the Bundle format, an application developer does not need to develop multiple formats for the same application, and the installation process and the development process of the target application in the Bundle format are simplified.
In summary, particular embodiments of the present subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
Based on the same idea, the application installation method provided in one or more embodiments of the present specification further provides an application installation apparatus.
Fig. 6 is a schematic block diagram of an application installation apparatus according to an embodiment of the present specification, and as shown in fig. 6, an application installation apparatus 600 is applied to a terminal device, and includes:
a first determining module 610, configured to determine a target application in a first specified format to be installed; the first specified format is a format that is not supported by the first application marketplace; the installation files corresponding to the target application comprise installation files in a second specified format;
a judging module 620, configured to judge whether the target application has a system permission;
a second determining module 630, configured to determine, according to the determination result, an installation manner for installing the installation file in the second specified format of the target application; the mounting mode includes: installing the installation file by using the service packaged in the installation file in advance; or, installing the installation file by using a configuration file configured for each application module of the target application in advance;
and the installing module 640 is configured to install the installation file of the target application according to the determined installation manner, so that the target application in the first specified format is installed to the terminal device.
In one embodiment, the second determination module 630 includes:
a first determining unit, configured to determine, if the target application has a system permission, that the installation manner is: installing the installation file by using the service packaged in the installation file in advance;
wherein the service has at least one of the following functions:
downloading the installation file to a specified installation directory;
installing the installation file in a silent mode;
and updating the installation file in a silent mode.
In one embodiment, the installation module 640 includes:
the first downloading unit is used for downloading the installation file from the network side;
the calling and storing unit is used for calling the service in the installation file and storing the downloaded installation file to an installation directory corresponding to the target application by using the service;
and the loading unit is used for loading the installation files stored in the installation directory when a starting request of the target application is received.
In one embodiment, the second determination module 630 includes:
a second determining unit, configured to determine, if the target application does not have the system permission, that the installation manner is: and installing the installation file by using the configuration file configured for each application module of the target application in advance.
In one embodiment, the target application comprises a plurality of application modules which are disassembled in advance; the installation file comprises a main application installation package and installation packages corresponding to the application modules respectively;
the mounting module 640 includes:
the acquisition unit is used for acquiring a main application installation package of the target application from a network side; the main application installation package comprises a configuration file; the configuration file is used for indicating the downloading time of the installation package of each application module;
a third determining unit, configured to determine, according to the downloading opportunity indicated by the configuration file, a first installation package that needs to be downloaded currently, and download the first installation package from the network side;
the second downloading unit is used for downloading a second installation package except the first installation package in the installation packages of the application modules when a starting request of the target application is received, so that all the installation packages of the application modules are downloaded to the terminal equipment;
and the integration unit is used for integrating the second installation package and the first installation package so as to load all installation packages of the target application to the terminal equipment.
In one embodiment, the second downloading unit is further configured to:
creating a shortcut starting icon of a target application at a designated position of terminal equipment;
and downloading the second installation package when the click operation of the shortcut starting icon is received.
In one embodiment, the first specified format is a Bundle format; the second specified format is an apks format.
By adopting the device in one or more embodiments of the present specification, it is possible to determine, according to whether a target application has a system right, an installation manner of the target application in a first specified format (an installation file is installed by using a service pre-packaged in the installation file, or the installation file is installed by using a configuration file configured for each application module of the target application in advance), where the first specified format (such as Bundle format) is not supported by a first application market, and then install an installation file in a second specified format (such as apks format) included in the target application in the first specified format according to the installation manner corresponding to the target application, so that the target application in the first specified format is installed to a terminal device. Therefore, the device can simplify the installation process of the target application in the first specified format through the installation mode, so that convenience is provided for a user to install the target application in the first specified format on the terminal equipment, and multiple formats do not need to be developed for the same application, so that the development process of the application is simplified.
It should be understood by those skilled in the art that the application installation apparatus can be used to implement the application installation method described above, wherein the detailed description is similar to the above method, and is not repeated herein to avoid complexity.
Based on the same idea, one or more embodiments of the present specification further provide a terminal device, as shown in fig. 7. Terminal devices may vary greatly depending on configuration or performance, and may include one or more processors 701 and memory 702, where memory 702 may have one or more stored applications or data stored therein. Memory 702 may be, among other things, transient storage or persistent storage. The application program stored in memory 702 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for the terminal device. Still further, processor 701 may be configured to communicate with memory 702 to execute a series of computer-executable instructions in memory 702 on the terminal device. The terminal apparatus may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input-output interfaces 705, and one or more keyboards 706.
In particular, in this embodiment, the terminal device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the terminal device, and the one or more programs configured to be executed by the one or more processors include computer-executable instructions for:
determining a target application in a first specified format to be installed; the first specified format is a format that is not supported by a first application marketplace; the installation files corresponding to the target application comprise installation files in a second specified format;
judging whether the target application has system authority or not;
determining an installation mode for installing the installation file of the second specified format of the target application according to the judgment result; the installation mode includes: installing the installation file by using the service packaged in the installation file in advance; or, installing the installation file by using a configuration file configured for each application module of the target application in advance;
and installing the installation file of the target application according to the determined installation mode so that the target application in the first specified format is installed to the terminal equipment.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
if the target application has the system authority, determining that the installation mode is as follows: installing the installation file by using the service packaged in the installation file in advance;
wherein the service has at least one of the following functions:
downloading the installation file to a specified installation directory;
silent installation of the installation files;
and updating the installation file in a silent mode.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
downloading the installation file from a network side;
calling the service in the installation file, and storing the downloaded installation file to an installation directory corresponding to the target application by using the service;
and when a starting request for the target application is received, loading the installation file stored under the installation directory.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
if the target application does not have the system authority, determining that the installation mode is as follows: and installing the installation file by utilizing the configuration file configured for each application module of the target application in advance.
Optionally, the target application includes a plurality of application modules that are disassembled in advance; the installation file comprises a main application installation package and installation packages corresponding to the application modules respectively;
the computer executable instructions, when executed, may further cause the processor to:
acquiring a main application installation package of the target application from a network side; wherein the primary application installation package comprises the configuration file; the configuration file is used for indicating the downloading time of the installation package of each application module;
determining a first installation package needing to be downloaded currently according to the downloading opportunity indicated by the configuration file, and downloading the first installation package from the network side;
when a starting request for the target application is received, downloading a second installation package except the first installation package in the installation packages of the application modules so as to download all the installation packages of the application modules to the terminal equipment;
and integrating the second installation package and the first installation package so as to load all installation packages of the target application to the terminal equipment.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
creating a shortcut starting icon of the target application at a designated position of the terminal equipment;
and downloading the second installation package when the click operation of the shortcut starting icon is received.
Optionally, the first specified format is a Bundle format; the second specified format is an apks format.
One or more embodiments of the present specification also propose a computer-readable storage medium storing one or more programs, the one or more programs including instructions, which when executed by an electronic device including a plurality of application programs, enable the electronic device to perform the above-mentioned application installation method, and in particular to perform:
determining a target application in a first specified format to be installed; the first specified format is a format that is not supported by a first application marketplace; the installation files corresponding to the target application comprise installation files in a second specified format;
judging whether the target application has system authority or not;
determining an installation mode for installing the installation file of the second specified format of the target application according to the judgment result; the installation mode includes: installing the installation file by using the service packaged in the installation file in advance; or, installing the installation file by using a configuration file configured for each application module of the target application in advance;
and installing the installation file of the target application according to the determined installation mode so that the target application in the first specified format is installed to the terminal equipment.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
One skilled in the art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the present specification are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (trans-entity media) such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is intended to be illustrative of one or more embodiments of the present disclosure and is not intended to be limiting. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of one or more embodiments of the present disclosure should be included in the scope of claims of one or more embodiments of the present disclosure.

Claims (8)

1. An application installation method is applied to a terminal device, and comprises the following steps:
determining a target application of a first specified format to be installed; the first specified format is a format that is not supported by a first application marketplace; the installation files corresponding to the target application comprise installation files in a second specified format;
judging whether the target application has system authority or not;
determining an installation mode for installing the installation file of the second specified format of the target application according to the judgment result; the installation mode includes: installing the installation files by using service services packaged in advance in the installation files; or, installing the installation file by using a configuration file configured for each application module of the target application in advance;
according to the determined installation mode, installing an installation file of the target application so that the target application in the first specified format is installed to the terminal equipment;
the determining, according to the determination result, an installation manner for installing the installation file of the second specified format of the target application includes:
if the target application does not have the system authority, determining that the installation mode is as follows: installing the installation files by utilizing the configuration files configured for each application module of the target application in advance;
the target application comprises a plurality of application modules which are obtained by disassembling in advance; the installation file comprises a main application installation package and installation packages corresponding to the application modules respectively;
the installing the installation file of the target application according to the determined installation mode so that the target application in the first specified format is installed to the terminal device includes:
acquiring a main application installation package of the target application from a network side; wherein the primary application installation package comprises the configuration file; the configuration file is used for indicating the downloading time of the installation package of each application module;
determining a first installation package needing to be downloaded currently according to the downloading opportunity indicated by the configuration file, and downloading the first installation package from the network side;
when a starting request for the target application is received, downloading a second installation package except the first installation package in the installation packages of the application modules so as to download all the installation packages of the application modules to the terminal equipment;
integrating the second installation package and the first installation package so that all installation packages of the target application are loaded to the terminal equipment;
when receiving a starting request for the target application, downloading a second installation package except the first installation package in the installation packages of the application modules, including:
creating a shortcut starting icon of the target application at a designated position of the terminal equipment;
and downloading the second installation package when the click operation of the shortcut starting icon is received.
2. The method according to claim 1, wherein the determining, according to the determination result, an installation manner for installing the installation file of the second specified format of the target application comprises:
if the target application has the system authority, determining that the installation mode is as follows: installing the installation files by using service services packaged in advance in the installation files;
wherein the service has at least one of the following functions:
downloading the installation file to a specified installation directory;
installing the installation files in a silent mode;
and updating the installation file in a silent mode.
3. The method according to claim 2, wherein the installing the installation file of the target application according to the determined installation mode comprises:
downloading the installation file from a network side;
calling the service in the installation file, and storing the downloaded installation file to an installation directory corresponding to the target application by using the service;
and when a starting request for the target application is received, loading the installation file stored under the installation directory.
4. The method of any of claims 1-3, wherein the first specified format is a Bundle format; the second specified format is an apks format.
5. An application installation device, which is applied to a terminal device, includes:
the first determining module is used for determining a target application of a first specified format to be installed; the first specified format is a format that is not supported by a first application marketplace; the installation files corresponding to the target application comprise installation files in a second specified format;
the judging module is used for judging whether the target application has system authority or not;
the second determining module is used for determining an installation mode for installing the installation file of the second specified format of the target application according to the judgment result; the installation mode includes: installing the installation files by using service services packaged in advance in the installation files; or, installing the installation file by using a configuration file configured for each application module of the target application in advance;
the installation module is used for installing the installation file of the target application according to the determined installation mode so as to enable the target application in the first specified format to be installed to the terminal equipment;
the second determining module includes:
a second determining unit, configured to determine, if the target application does not have the system permission, that the installation manner is: installing the installation files by utilizing the configuration files configured for each application module of the target application in advance;
the target application comprises a plurality of application modules which are obtained by disassembling in advance; the installation file comprises a main application installation package and installation packages corresponding to the application modules respectively;
the installation module includes:
the acquisition unit is used for acquiring the main application installation package of the target application from a network side; wherein the primary application installation package comprises the configuration file; the configuration file is used for indicating the downloading time of the installation package of each application module;
a third determining unit, configured to determine, according to the downloading opportunity indicated by the configuration file, a first installation package that needs to be downloaded currently, and download the first installation package from the network side;
a second downloading unit, configured to, when receiving a start request for the target application, download a second installation package, except the first installation package, of the installation packages of the application modules, so that all installation packages of the application modules are downloaded to the terminal device;
the integration unit is used for integrating the second installation package and the first installation package so as to load all installation packages of the target application to the terminal equipment;
the second downloading unit is further configured to:
creating a shortcut starting icon of the target application at a designated position of the terminal equipment;
and downloading the second installation package when the click operation of the shortcut starting icon is received.
6. The apparatus of claim 5, wherein the second determining module comprises:
a first determining unit, configured to determine, if the target application has the system permission, that the installation manner is: installing the installation file by using the service packaged in the installation file in advance;
wherein the service has at least one of the following functions:
downloading the installation file to a specified installation directory;
installing the installation files in a silent mode;
and updating the installation file in a silent mode.
7. The apparatus of claim 6, wherein the mounting module comprises:
the first downloading unit is used for downloading the installation file from a network side;
the calling and storing unit is used for calling the service in the installation file and storing the downloaded installation file to an installation directory corresponding to the target application by using the service;
and the loading unit is used for loading the installation file stored under the installation directory when a starting request for the target application is received.
8. The apparatus of any of claims 5-7, wherein the first specified format is a Bundle format; the second specified format is an apks format.
CN201910758844.5A 2019-08-16 2019-08-16 Application installation method and device Active CN110502251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910758844.5A CN110502251B (en) 2019-08-16 2019-08-16 Application installation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910758844.5A CN110502251B (en) 2019-08-16 2019-08-16 Application installation method and device

Publications (2)

Publication Number Publication Date
CN110502251A CN110502251A (en) 2019-11-26
CN110502251B true CN110502251B (en) 2023-03-24

Family

ID=68587561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910758844.5A Active CN110502251B (en) 2019-08-16 2019-08-16 Application installation method and device

Country Status (1)

Country Link
CN (1) CN110502251B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114077437A (en) * 2020-08-20 2022-02-22 第四范式(北京)技术有限公司 Integrated management method, device and system for artificial intelligence application
CN113010187B (en) * 2021-02-07 2024-04-05 上海硬通网络科技有限公司 Application installation method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850779A (en) * 2015-06-04 2015-08-19 北京奇虎科技有限公司 Safe application program installing method and safe application program installing device
CN107168730A (en) * 2017-04-14 2017-09-15 北京五八信息技术有限公司 application program loading method, server and terminal
CN109298900A (en) * 2018-10-23 2019-02-01 中国农业银行股份有限公司 A kind of application fractionation and on-demand loading method, apparatus
CN109783744A (en) * 2018-12-05 2019-05-21 北京奇艺世纪科技有限公司 The page starts method, apparatus, terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8898319B2 (en) * 2006-05-24 2014-11-25 Maxsp Corporation Applications and services as a bundle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850779A (en) * 2015-06-04 2015-08-19 北京奇虎科技有限公司 Safe application program installing method and safe application program installing device
CN107168730A (en) * 2017-04-14 2017-09-15 北京五八信息技术有限公司 application program loading method, server and terminal
CN109298900A (en) * 2018-10-23 2019-02-01 中国农业银行股份有限公司 A kind of application fractionation and on-demand loading method, apparatus
CN109783744A (en) * 2018-12-05 2019-05-21 北京奇艺世纪科技有限公司 The page starts method, apparatus, terminal and computer readable storage medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN110554876B (en) Method and device for compiling android engineering
CN109062582B (en) Encryption method and device for application installation package
CN111897623B (en) Cluster management method, device, equipment and storage medium
CN102830959B (en) A kind of built-in browser interface dynamic expansion method and system
CN106294113B (en) creation method and device based on programmable test service
CN110308999B (en) Method for dynamically sharing dependency package between applications, storage medium and mobile terminal
CN108647032B (en) Application loading method and device, computer device and computer readable storage medium
CN110851204B (en) Application starting method and device and application packaging method and device
CN111930382B (en) Application page access method, device and equipment
CN110597564A (en) Installation package construction and service component loading method, device and terminal equipment
CN111475142A (en) Method, device and equipment for generating applet file package
CN111625260A (en) Method and system based on mixed mobile application program upgrading
CN110968331A (en) Method and device for running application program
CN110502251B (en) Application installation method and device
KR101117165B1 (en) Web platform unit for mobile terminal connectioned web-application program in heterogeneous operating system
CN109857374B (en) Development method and device of mobile application
CN114090070A (en) Application program installation package file processing method and electronic equipment
CN110941443B (en) Method and device for modifying file name in SDK (software development kit) and electronic equipment
CN109976728B (en) Method and device for generating native application program and mobile terminal
CN107402749B (en) Method and device for realizing picture loading library
CN111240738B (en) File processing method, device, equipment and medium
CN112148318B (en) Application package release method, application method, device, medium, server and equipment
CN114791884A (en) Test environment construction method and device, storage medium and electronic equipment
CN114201174A (en) Construction method and device of hybrid mobile application, electronic equipment and storage medium
CN114398073B (en) Application updating method and device based on RN

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
TA01 Transfer of patent application right

Effective date of registration: 20220808

Address after: No.16 and 17, unit 1, North District, Kailin center, No.51 Jinshui East Road, Zhengzhou area (Zhengdong), Henan pilot Free Trade Zone, Zhengzhou City, Henan Province, 450000

Applicant after: Zhengzhou Apas Technology Co.,Ltd.

Address before: E301-27, building 1, No.1, hagongda Road, Tangjiawan Town, Zhuhai City, Guangdong Province

Applicant before: ZHUHAI TIANYAN TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant