CN110502251A - Using installation method and device - Google Patents

Using installation method and device Download PDF

Info

Publication number
CN110502251A
CN110502251A CN201910758844.5A CN201910758844A CN110502251A CN 110502251 A CN110502251 A CN 110502251A CN 201910758844 A CN201910758844 A CN 201910758844A CN 110502251 A CN110502251 A CN 110502251A
Authority
CN
China
Prior art keywords
installation
target application
application
file
format
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.)
Granted
Application number
CN201910758844.5A
Other languages
Chinese (zh)
Other versions
CN110502251B (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
Zhuhai Tianyan 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 Zhuhai Tianyan Technology Co Ltd filed Critical Zhuhai Tianyan 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

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

This specification one or more embodiment discloses a kind of application installation method and device, to solve the problems, such as that certain applications market can not be compatible with the application of special format in the prior art, cause application that can not install.Method comprises determining that the target application of the first specified format to be installed;First specified format is the format do not supported by the first application market;Judge whether target application has system permission;According to judging result, the mounting means installed to the installation file of the second specified format of target application is determined;It is installed according to installation file of the identified mounting means to target application, so that the target application of the first specified format is mounted to terminal device.The technical solution can simplify the installation process of the target application of the first specified format by above-mentioned mounting means, so that the target application for installing the first specified format on the terminal device for user provides convenience, and simplify the development process of application.

Description

Using installation method and device
Technical field
This specification is related to using mounting technique field more particularly to a kind of application installation method and device.
Background technique
Mobile phone development is getting faster at present, and application is also increasing, and many enterprises are devoted to reduce the body of user installation Product, not only improves user experience in this way, but also reduces the probability of downloading application failure, no matter for user or application and development Quotient is highly advantageous.Based on this, Google has gone out a kind of format --- and App Bundle format, this format can will answer With being decomposed into many modules, when user installation, the module of user's needs need to be only installed.
No matter aforesaid way is all very helpful for user or enterprise, but seldom enterprise uses this side at present Formula.Reason is: on the one hand, only google play uses this format (* .apks) using store, if application supports this Kind format, then can not just be uploaded in other application shops;On the other hand, the dependence mode of the application of this format and at present The packing manner of most of applications is completely opposite.Enterprise is caused to be difficult to be compatible with above-mentioned packing format (* .apks).
Summary of the invention
The purpose of this specification one or more embodiment is to provide a kind of application installation method and device, existing to solve There is the problem of part application market can not be compatible with the application of special format, cause application that can not install in technology.
In order to solve the above technical problems, this specification one or more embodiment is achieved in that
On the one hand, this specification one or more embodiment provides a kind of using installation method, is applied to terminal device, packet It includes:
Determine the target application of the first specified format to be installed;First specified format is not by the first application market The format supported;Wherein, the corresponding installation file of the target application includes the installation file of the second specified format;
Judge whether the target application has system permission;
According to judging result, the installation installed to the installation file of the second specified format of the target application is determined Mode;The mounting means include: using the service service encapsulated in advance in the installation file to the installation file into Row installation;Or, being carried out using the configuration file configured in advance for each application module of the target application to the installation file Installation;
According to the determining mounting means, the installation file of the target application is installed, so that described first The target application of specified format is mounted to the terminal device.
In one embodiment, described according to judging result, determine the peace to the second specified format of the target application The mounting means that dress file is installed, comprising:
If the target application has the system permission, it is determined that the mounting means are as follows: utilize the installation file The service service inside encapsulated in advance installs the installation file;
Wherein, the service service has the function of at least one of following:
The installation file is downloaded to designated mounting catalogue;
Silence installs the installation file;
Silence updates the installation file.
In one embodiment, described according to the determining mounting means, to the installation file of the target application into Row installation, comprising:
The installation file is downloaded from network side;
The service service in the installation file is called, and will be described in downloading using the service service Installation file stores installation directory corresponding to the target application;
When receiving the request of the starting to the target application, the installation text stored under the installation directory is loaded Part.
In one embodiment, described according to judging result, determine the peace to the second specified format of the target application The mounting means that dress file is installed, comprising:
If the target application does not have the system permission, it is determined that the mounting means are as follows: it is described for utilizing in advance The configuration file of each application module configuration of target application installs the installation file.
In one embodiment, the target application includes being disassembled obtained multiple application modules in advance;The installation It include main application installation package and the corresponding installation kit of each application module in file;
It is described that the installation file of the target application is installed according to the determining mounting means, so that described The target application of first specified format is mounted to the terminal device, comprising:
The main application installation package of the target application is obtained from network side;Wherein, the main application installation package includes described Configuration file;The configuration file is used to indicate the downloading opportunity of the installation kit of each application module;
According to the downloading opportunity that the configuration file indicates, the first installation kit that need to currently download is determined, and from institute It states network side and downloads first installation kit;
When receiving the request of the starting to the target application, download in the installation kit of each application module except described The second installation kit except first installation kit is set so that all installation kits of each application module are downloaded to the terminal It is standby;
Second installation kit and first installation kit are integrated, so that all installation kits of the target application It is loaded on the terminal device.
In one embodiment, described when receiving the request of the starting to the target application, download each application The second installation kit in the sub- installation kit of module in addition to first installation kit, comprising:
The quickly starting icon of the target application is created in the designated position of the terminal device;
When receiving the clicking operation to the quickly starting icon, second installation kit is downloaded.
In one embodiment, first specified format is Bundle format;Second specified format is apks lattice Formula.
On the other hand, this specification one or more embodiment provides a kind of using mounting device, is applied to terminal device, Include:
First determining module, for determining the target application of the first specified format to be installed;First specified format For the format that do not supported by the first application market;Wherein, the corresponding installation file of the target application includes the second specified lattice The installation file of formula;
Judgment module, for judging whether the target application has system permission;
Second determining module, for determining the installation to the second specified format of the target application according to judging result The mounting means that file is installed;The mounting means includes: to utilize the service encapsulated in advance in the installation file Service installs the installation file;Or, utilizing the configuration configured in advance for each application module of the target application File installs the installation file;
Module is installed, for being installed to the installation file of the target application according to the determining mounting means, So that the target application of first specified format is mounted to the terminal device.
In one embodiment, second determining module includes:
First determination unit, if there is the system permission for the target application, it is determined that the mounting means are as follows: The installation file is installed using the service service encapsulated in advance in the installation file;
Wherein, the service service has the function of at least one of following:
The installation file is downloaded to designated mounting catalogue;
Silence installs the installation file;
Silence updates the installation file.
In one embodiment, the installation module includes:
First download unit, for downloading the installation file from network side;
Calling and storage unit for calling the service service in the installation file, and utilize the service The installation file of downloading is stored installation directory corresponding to the target application by service;
Loading unit, for loading and being deposited under the installation directory when receiving the request of the starting to the target application The installation file of storage.
In one embodiment, second determining module includes:
Second determination unit, if not having the system permission for the target application, it is determined that the mounting means Are as follows: the installation file is installed using the configuration file configured in advance for each application module of the target application.
In one embodiment, the target application includes being disassembled obtained multiple application modules in advance;The installation It include main application installation package and the corresponding installation kit of each application module in file;
The installation module includes:
Acquiring unit, for obtaining the main application installation package of the target application from network side;Wherein, the main application peace Dress packet includes the configuration file;The configuration file is used to indicate the downloading opportunity of the installation kit of each application module;
Third determination unit, the downloading opportunity for being indicated according to the configuration file, what determination need to currently download First installation kit, and first installation kit is downloaded from the network side;
Second download unit, it is described each using mould for downloading when receiving the request of the starting to the target application The second installation kit in the installation kit of block in addition to first installation kit, so that all installation kit quilts of each application module It is downloaded to the terminal device;
Integral unit, for being integrated to second installation kit and first installation kit, so that the target is answered All installation kits are loaded on the terminal device.
In one embodiment, second download unit is also used to:
The quickly starting icon of the target application is created in the designated position of the terminal device;
When receiving the clicking operation to the quickly starting icon, second installation kit is downloaded.
In one embodiment, first specified format is Bundle format;Second specified format is apks lattice Formula.
In another aspect, this specification one or more embodiment provides a kind of terminal device, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
Determine the target application of the first specified format to be installed;First specified format is not by the first application market The format supported;Wherein, the corresponding installation file of the target application includes the installation file of the second specified format;
Judge whether the target application has system permission;
According to judging result, the installation installed to the installation file of the second specified format of the target application is determined Mode;The mounting means include: using the service service encapsulated in advance in the installation file to the installation file into Row installation;Or, being carried out using the configuration file configured in advance for each application module of the target application to the installation file Installation;
According to the determining mounting means, the installation file of the target application is installed, so that described first The target application of specified format is mounted to the terminal device.
In another aspect, the embodiment of the present application provides a kind of storage medium, for storing computer executable instructions, it is described can It executes instruction and realizes following below scheme when executed:
Determine the target application of the first specified format to be installed;First specified format is not by the first application market The format supported;Wherein, the corresponding installation file of the target application includes the installation file of the second specified format;
Judge whether the target application has system permission;
According to judging result, the installation installed to the installation file of the second specified format of the target application is determined Mode;The mounting means include: using the service service encapsulated in advance in the installation file to the installation file into Row installation;Or, being carried out using the configuration file configured in advance for each application module of the target application to the installation file Installation;
According to the determining mounting means, the installation file of the target application is installed, so that described first The target application of specified format is mounted to the terminal device.
Using the technical solution of this specification one or more embodiment, whether there can be system power according to target application Limit, determines that the mounting means of the target application of the first specified format (utilizes service pairs of the service encapsulated in advance in installation file Installation file is installed;Or, using in advance for target application each application module configure configuration file to installation file into Row installation), which is not supported by the first application market, so according to target application Corresponding mounting means installs the peace of the second specified format (such as apks format) included by the target application of the first specified format File is filled, the target application of the first specified format is made to be mounted to terminal device.As it can be seen that the technical solution can pass through above-mentioned peace Dress mode simplifies the installation process of the target application of the first specified format, so that it is specified to install first on the terminal device for user The target application of format provides convenience, and without developing multiple format for same application, therefore simplifies the exploitation of application Journey.
Detailed description of the invention
In order to illustrate more clearly of this specification one or more embodiment or technical solution in the prior art, below will A brief introduction will be made to the drawings that need to be used in the embodiment or the description of the prior art, it should be apparent that, it is described below Attached drawing is only some embodiments recorded in this specification one or more embodiment, and those of ordinary skill in the art are come It says, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of schematic flow chart using installation method according to one embodiment of this specification;
Fig. 2 is a kind of schematic flow chart using installation method according to another embodiment of this specification;
Fig. 3 is a kind of schematic flow chart using installation method according to this specification another embodiment;
Fig. 4 is a kind of installation file content schematic diagram using in installation method according to one embodiment of this specification;
Fig. 5 is the resource signal after a kind of document analysis using in installation method according to one embodiment of this specification Figure;
Fig. 6 is a kind of schematic block diagram using mounting device according to one embodiment of this specification;
Fig. 7 is the schematic diagram according to a kind of terminal device of one embodiment of this specification.
Specific embodiment
This specification one or more embodiment provides a kind of application installation method and device, to solve in the prior art The problem of certain applications market can not be compatible with the application of special format, cause application that can not install.
In order to make those skilled in the art more fully understand the technical solution in this specification one or more embodiment, Below in conjunction with the attached drawing in this specification one or more embodiment, to the technology in this specification one or more embodiment Scheme is clearly and completely described, it is clear that and described embodiment is only this specification a part of the embodiment, rather than Whole embodiments.Based on this specification one or more embodiment, those of ordinary skill in the art are not making creativeness The model of this specification one or more embodiment protection all should belong in every other embodiment obtained under the premise of labour It encloses.
Fig. 1 is a kind of schematic flow chart using installation method according to one embodiment of this specification, as shown in Figure 1, This method is applied to terminal device, comprising:
S102 determines the target application of the first specified format to be installed;First specified format is not apply city by first The format that place is supported;Wherein, the corresponding installation file of target application includes the installation file of the second specified format.
Wherein, the first application market can be one or more application market, including user usually downloads application installation package Application market.First specified format can be Bundle format, and the target application of Bundle format is corresponding with apks format Installation file, therefore, the second specified format can be apks format.
S104, judges whether target application has system permission.
Pre-installed applications when such as terminal device factory of the application with system permission, the application without system permission is as used The third-party application that family is downloaded from application market.
S106 determines the peace installed to the installation file of the second specified format of target application according to judging result Dress mode;Mounting means includes: to be installed using the service service encapsulated in advance in installation file to installation file;Or, Installation file is installed using the configuration file configured in advance for each application module of target application.
S108 installs the installation file of target application according to determining mounting means, so that the first specified format Target application be mounted to terminal device.
Using the technical solution of this specification one or more embodiment, whether there can be system power according to target application Limit, determines that the mounting means of the target application of the first specified format (utilizes service pairs of the service encapsulated in advance in installation file Installation file is installed;Or, using in advance for target application each application module configure configuration file to installation file into Row installation), which is not supported by the first application market, so according to target application Corresponding mounting means installs the peace of the second specified format (such as apks format) included by the target application of the first specified format File is filled, the target application of the first specified format is made to be mounted to terminal device.As it can be seen that the technical solution can pass through above-mentioned peace Dress mode simplifies the installation process of the target application of the first specified format, so that it is specified to install first on the terminal device for user The target application of format provides convenience, and without developing multiple format for same application, therefore simplifies the exploitation of application Journey.
Below by taking the first specified format is Bundle format, the second specified format is apks format as an example, illustrate above-mentioned reality It applies provided by example using installation method.
In one embodiment, if the target application of Bundle format has system permission, it is determined that target application Mounting means are as follows: installation file is installed using the service service encapsulated in advance in installation file.
In the present embodiment, back-office support terminal device uploads the target application of Bundle format.It can be in advance in Bundle lattice Target application enclosed inside one service, the service of formula have the function of at least one of following: installation file is downloaded To designated mounting catalogue, silent installation installation file, silent update installation file.
Fig. 2 is the schematic flow chart provided in this embodiment installed using service to installation file.This implementation In example, the target application of Bundle format has system permission.As shown in Figure 2, comprising the following steps:
S201, from the installation file of the target application of network side downloading Bundle format.
Wherein, the format of installation file is apks format.
S202 calls the service encapsulated in advance in installation file, and utilizes the service by the installation file of downloading Store installation directory corresponding to target application.
It, can since service has the function that installation file is downloaded to designated mounting catalogue when executing the step The installation file of target application is stored into installation directory corresponding to target application by this function of service.
S203 is stored under the corresponding installation directory of load target application when receiving the starting request to target application Installation file.
When executing the step, since service has the function of silent installation installation file, service can be passed through This function, the installation file stored under the corresponding installation directory of load target application.
It, can be directly in target application since the target application of Bundle format has system permission in the present embodiment Terminal device can be realized to the target application of Bundle format using the function of the service in one service of enclosed inside Installation, so that the target application for installing the first specified format on the terminal device for user provides convenience.
In one embodiment, if the target application of Bundle format does not have system permission, it is determined that target application Mounting means are as follows: using in advance for target application each application module configure configuration file installation file is installed.
In the present embodiment, back-office support terminal device uploads the target application of Bundle format.Target application includes pre- The multiple application modules first disassembled;It include that main application installation package and each application module are distinguished in the installation file of target application Corresponding installation kit.
Fig. 3 installs installation file for the configuration file provided in this embodiment using each application module schematic Flow chart.In the present embodiment, the target application of Bundle format does not have system permission.As shown in Figure 3, comprising the following steps:
S301, network side disassembles the application of Bundle format for multiple application modules, and configures matching for each application module Set file.
Wherein, configuration file is used to indicate the downloading opportunity of the installation kit of each application module.For example, configuration file instruction is answered It is to download immediately with the downloading opportunity of the installation kit of modules A;Or, when the downloading of the installation kit of configuration file instruction application module B Machine is to postpone downloading;Etc..The configuration file of each application module is stored in main application installation package.
In the present embodiment, Bundle format is apks format using corresponding installation file, wherein apks format can also Referred to as aab format is the set of multiple apk formatted files.Aab format is compression packet form, and application module is contained in the inside Real installation kit, detailed file internals are as follows:
Wherein, base.apk is main application installation package, i.e. the module that must rely on of user.FeatureX.apk (X=1, It 2 ...) is configurable module, i.e., the downloading opportunity of the configurable corresponding installation kit of featureX.apk.
For example, the configuration file of some application module is as follows:
Wherein, package is the packet name of current application module, is the unique identification of application module.OnDemand is for referring to Show whether the corresponding installation kit of current application module enables on-demand downloading.The value of onDemand can be false or true, if The value of onDemand is false, illustrates that the corresponding installation kit of current application module is the first installation kit that need to be downloaded in the first batch;If The value of onDemand is true, then illustrates that the corresponding installation kit of current application module without downloading immediately, (can be opened such as when needed When moving-target is applied) it is downloaded again.After being parsed to main application installation package, it can be obtained in specific file as shown in Figure 4 Hold.
In the application and development stage of Bundle format, by parsing the AndroidManifest text under above-mentioned aab file The value of package field and onDemand required for us can be obtained in part, to decide whether to issue immediately pair according to the value The application module installation kit answered.
The installation file of the application of Bundle format is stored in network side by S302, which includes main application peace Dress packet and the corresponding installation kit of each application module.
S303 obtains target application from network side when installing the target application of Bundle format on the terminal device Main application installation package.
Wherein, main application installation package includes the configuration file of each application module of target application.
S304, the downloading opportunity of terminal device each application module according to indicated by configuration file, determination currently need to download The first installation kit, and from network side download the first installation kit.
S305 downloads each application module from network side when terminal device receives the request of the starting to target application The second installation kit in installation kit in addition to the first installation kit, so that all installation kits of each application module are downloaded to terminal Equipment.
It, i.e., can be in designated position (such as table of terminal device after network side the first installation kit of downloading after executing S304 Face) the quickly starting icon of target application is created, and then receiving the clicking operation to the quickly starting icon of target application When, it is believed that it has received user and the starting of target application is requested, download the second installation kit at this time.
S306, terminal device integrate the second installation kit and the first installation kit, so that all installations of target application Bao Jun is loaded on terminal device.
In the present embodiment, for each installation kit (including the second installation kit and first installation kit) of downloading, terminal device The corresponding apk file of each installation kit can be parsed, obtains dex, so and resource file after parsing, as shown in figure 5, these files are equal It is saved under the corresponding installation directory of target application.
The meaning of items relevant information shown in Fig. 5 is as follows:
Assets.pb:assets resource product verifies file
Resources.pb res resource product verifies file
Native.pb c/c++ code product verifies file
Mainfest/AndroidManifest configuration file
Dex/java code product catalog
Res Resource TOC
Assets assets file directory
Lib c/c++ product catalog
The corresponding installation directory of target application can refer to but be not limited to following catalogue :/data/data/package/ files/demo/.Wherein, Package is locally applied packet name, and demo is the packet name of target application to be installed, demo mesh There are dex, so, the resource file etc. of the application under record.
When needing to start target application, dex resource can be loaded by ClassLoader, principle is as follows:
ClassLoader classLoader=new DexClassLoader (dexpath, optimizeDirect, libPath,parent);
Wherein, the path of dexPath:dex;
OptimizeDirect: product catalog is generated;
The path of libPath:so file;
Parent: the classLoader that terminal device is held, generally system ClassLoader;
After obtaining classLoader, classLoader.loadClass (" class name ") can be passed through;It is loaded into needs Generic operation.
So resource file can be loaded by AssertManager, principle is as follows:
AssetManager am=new AssetManager ();
am.addAssetPath(path);
Wherein, path: the apk file of each application module of generation
By above method, i.e., dex code, so code and resource file in executable apk file, thus by entire The file of Bundle format executes.
It, can not be in target application since the target application of Bundle format does not have system permission in the present embodiment Enclosed inside service.By disassembling target application for multiple application modules, and it is corresponding from multiple application modules Selection needs the installation kit downloaded to be integrated, installed in installation kit, and terminal device is simply and quickly installed The target application of Bundle format, without making application developer develop multiple format for same application, to simplify The installation process and development process of the target application of Bundle format.
To sum up, the specific embodiment of this theme is described.Other embodiments are in the appended claims In range.In some cases, the movement recorded in detail in the claims can execute and still in a different order Desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or continuous suitable Sequence, to realize desired result.In some embodiments, multitasking and parallel processing can be advantageous.
The above are what this specification one or more embodiment provided to apply installation method, is based on same thinking, this theory Bright book one or more embodiment also provides a kind of using mounting device.
Fig. 6 is a kind of schematic block diagram using mounting device according to one embodiment of this specification, as shown in fig. 6, answering It is applied to terminal device with mounting device 600, comprising:
First determining module 610, for determining the target application of the first specified format to be installed;First specified format is The format that do not supported by the first application market;Wherein, the corresponding installation file of target application includes the peace of the second specified format Fill file;
Judgment module 620, for judging whether target application has system permission;
Second determining module 630, for determining the text of the installation to the second specified format of target application according to judging result The mounting means that part is installed;Mounting means includes: using the service service encapsulated in advance in installation file to installation text Part is installed;Or, being installed using the configuration file configured in advance for each application module of target application to installation file;
Module 640 is installed, for being installed to the installation file of target application according to determining mounting means, so that The target application of first specified format is mounted to terminal device.
In one embodiment, the second determining module 630 includes:
First determination unit, if there is system permission for target application, it is determined that mounting means are as follows: utilize installation file The service service inside encapsulated in advance installs installation file;
Wherein, service service has the function of at least one of following:
Installation file is downloaded to designated mounting catalogue;
Silence installation installation file;
Silence updates installation file.
In one embodiment, installation module 640 includes:
First download unit, for downloading installation file from network side;
Call and storage unit, for calling the service service in installation file, and using service service will under The installation file of load stores installation directory corresponding to target application;
Loading unit, for loading the installation stored under installation directory when receiving the starting request to target application File.
In one embodiment, the second determining module 630 includes:
Second determination unit, if not having system permission for target application, it is determined that mounting means are as follows: using being in advance The configuration file of each application module configuration of target application installs installation file.
In one embodiment, target application includes being disassembled obtained multiple application modules in advance;Packet in installation file Include main application installation package and the corresponding installation kit of each application module;
Installing module 640 includes:
Acquiring unit, for obtaining the main application installation package of target application from network side;Wherein, main application installation package includes Configuration file;Configuration file is used to indicate the downloading opportunity of the installation kit of each application module;
Third determination unit, the downloading opportunity for being indicated according to configuration file determine the first installation that need to currently download Packet, and the first installation kit is downloaded from network side;
Second download unit, for downloading the installation of each application module when receiving the starting request to target application The second installation kit in packet in addition to the first installation kit, so that all installation kits of each application module are downloaded to terminal device;
Integral unit, for being integrated to the second installation kit and the first installation kit, so that all installations of target application Bao Jun is loaded on terminal device.
In one embodiment, the second download unit is also used to:
In the quickly starting icon of the designated position of terminal device creation target application;
When receiving the clicking operation to quickly starting icon, the second installation kit is downloaded.
In one embodiment, the first specified format is Bundle format;Second specified format is apks format.
Using the device of this specification one or more embodiment, whether there can be system permission according to target application, Determine the mounting means of the target application of the first specified format (using the service service encapsulated in advance in installation file to peace Dress file is installed;Or, being carried out using the configuration file configured in advance for each application module of target application to installation file Installation), which is not supported by the first application market, and then according to target application pair The mounting means answered installs the installation of the second specified format (such as apks format) included by the target application of the first specified format File makes the target application of the first specified format be mounted to terminal device.As it can be seen that the device can pass through above-mentioned mounting means Simplify the installation process of the target application of the first specified format, to install the first specified format on the terminal device for user Target application provides convenience, and without developing multiple format for same application, therefore simplifies the development process of application.
It should be understood that above-mentioned application mounting device can be used to realize previously described application peace Dress method, datail description therein should be described with method part above it is similar, it is cumbersome to avoid, do not repeat separately herein.
Based on same thinking, this specification one or more embodiment also provides a kind of terminal device, as shown in Figure 7. Terminal device can generate bigger difference because configuration or performance are different, may include one or more processor 701 and memory 702, it can store one or more storage application programs or data in memory 702.Wherein, it deposits Reservoir 702 can be of short duration storage or persistent storage.Be stored in memory 702 application program may include one or one with Upper module (diagram is not shown), each module may include to the series of computation machine executable instruction in terminal device.More into One step, processor 701 can be set to communicate with memory 702, execute on the terminal device a series of in memory 702 Computer executable instructions.Terminal device can also include one or more power supplys 703, one or more it is wired or Radio network interface 704, one or more input/output interfaces 705, one or more keyboards 706.
Specifically in the present embodiment, terminal device includes memory and one or more program, wherein one A perhaps more than one program is stored in memory and one or more than one program may include one or more Module, and each module may include and being configured to by one to the series of computation machine executable instruction in terminal device It includes for carrying out following computer executable instructions that either more than one processor, which executes this or more than one program:
Determine the target application of the first specified format to be installed;First specified format is not by the first application market The format supported;Wherein, the corresponding installation file of the target application includes the installation file of the second specified format;
Judge whether the target application has system permission;
According to judging result, the installation installed to the installation file of the second specified format of the target application is determined Mode;The mounting means include: using the service service encapsulated in advance in the installation file to the installation file into Row installation;Or, being carried out using the configuration file configured in advance for each application module of the target application to the installation file Installation;
According to the determining mounting means, the installation file of the target application is installed, so that described first The target application of specified format is mounted to the terminal device.
Optionally, computer executable instructions when executed, can also make the processor:
If the target application has the system permission, it is determined that the mounting means are as follows: utilize the installation file The service service inside encapsulated in advance installs the installation file;
Wherein, the service service has the function of at least one of following:
The installation file is downloaded to designated mounting catalogue;
Silence installs the installation file;
Silence updates the installation file.
Optionally, computer executable instructions when executed, can also make the processor:
The installation file is downloaded from network side;
The service service in the installation file is called, and will be described in downloading using the service service Installation file stores installation directory corresponding to the target application;
When receiving the request of the starting to the target application, the installation text stored under the installation directory is loaded Part.
Optionally, computer executable instructions when executed, can also make the processor:
If the target application does not have the system permission, it is determined that the mounting means are as follows: it is described for utilizing in advance The configuration file of each application module configuration of target application installs the installation file.
Optionally, the target application includes being disassembled obtained multiple application modules in advance;Packet in the installation file Include main application installation package and the corresponding installation kit of each application module;
Computer executable instructions when executed, can also make the processor:
The main application installation package of the target application is obtained from network side;Wherein, the main application installation package includes described Configuration file;The configuration file is used to indicate the downloading opportunity of the installation kit of each application module;
According to the downloading opportunity that the configuration file indicates, the first installation kit that need to currently download is determined, and from institute It states network side and downloads first installation kit;
When receiving the request of the starting to the target application, download in the installation kit of each application module except described The second installation kit except first installation kit is set so that all installation kits of each application module are downloaded to the terminal It is standby;
Second installation kit and first installation kit are integrated, so that all installation kits of the target application It is loaded on the terminal device.
Optionally, computer executable instructions when executed, can also make the processor:
The quickly starting icon of the target application is created in the designated position of the terminal device;
When receiving the clicking operation to the quickly starting icon, second installation kit is downloaded.
Optionally, first specified format is Bundle format;Second specified format is apks format.
This specification one or more embodiment also proposed a kind of computer readable storage medium, this is computer-readable to deposit Storage media stores one or more programs, which includes instruction, and it is included multiple application programs which, which works as, Electronic equipment when executing, the electronic equipment can be made to execute above-mentioned using installation method, and be specifically used for executing:
Determine the target application of the first specified format to be installed;First specified format is not by the first application market The format supported;Wherein, the corresponding installation file of the target application includes the installation file of the second specified format;
Judge whether the target application has system permission;
According to judging result, the installation installed to the installation file of the second specified format of the target application is determined Mode;The mounting means include: using the service service encapsulated in advance in the installation file to the installation file into Row installation;Or, being carried out using the configuration file configured in advance for each application module of the target application to the installation file Installation;
According to the determining mounting means, the installation file of the target application is installed, so that described first The target application of specified format is mounted to the terminal device.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when specification one or more embodiment.
It should be understood by those skilled in the art that, this specification one or more embodiment can provide for method, system or Computer program product.Therefore, complete hardware embodiment can be used in this specification one or more embodiment, complete software is implemented The form of example or embodiment combining software and hardware aspects.Moreover, this specification one or more embodiment can be used one It is a or it is multiple wherein include computer usable program code computer-usable storage medium (including but not limited to disk storage Device, CD-ROM, optical memory etc.) on the form of computer program product implemented.
This specification one or more embodiment is referring to according to the method for the embodiment of the present application, equipment (system) and meter The flowchart and/or the block diagram of calculation machine program product describes.It should be understood that can be realized by computer program instructions flow chart and/ Or the combination of the process and/or box in each flow and/or block and flowchart and/or the block diagram in block diagram.It can These computer program instructions are provided at general purpose computer, special purpose computer, Embedded Processor or other programmable datas The processor of equipment is managed to generate a machine, so that holding by the processor of computer or other programmable data processing devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (trans itory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
This specification one or more embodiment can computer executable instructions it is general on It hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data type Routine, programs, objects, component, data structure etc..The application can also be practiced in a distributed computing environment, at these In distributed computing environment, by executing task by the connected remote processing devices of communication network.In distributed computing In environment, program module can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely this specification one or more embodiments, are not limited to this specification.For this For the technical staff of field, this specification one or more embodiment can have various modifications and variations.It is all in this specification one Any modification, equivalent replacement, improvement and so within the spirit and principle of a or multiple embodiments, should be included in this explanation Within the scope of the claims of book one or more embodiment.

Claims (14)

1. a kind of apply installation method, which is characterized in that be applied to terminal device, comprising:
Determine the target application of the first specified format to be installed;First specified format is is not propped up by the first application market The format held;Wherein, the corresponding installation file of the target application includes the installation file of the second specified format;
Judge whether the target application has system permission;
According to judging result, the installation side installed to the installation file of the second specified format of the target application is determined Formula;The mounting means includes: to be carried out using the service service encapsulated in advance in the installation file to the installation file Installation;Or, being pacified using the configuration file configured in advance for each application module of the target application to the installation file Dress;
According to the determining mounting means, the installation file of the target application is installed, so that described first is specified The target application of format is mounted to the terminal device.
2. determination is to the target application the method according to claim 1, wherein described according to judging result The second specified format the mounting means installed of installation file, comprising:
If the target application has the system permission, it is determined that the mounting means are as follows: utilize pre- in the installation file The service service first encapsulated installs the installation file;
Wherein, the service service has the function of at least one of following:
The installation file is downloaded to designated mounting catalogue;
Silence installs the installation file;
Silence updates the installation file.
3. according to the method described in claim 2, it is characterized in that, described according to the determining mounting means, to the mesh The installation file of mark application is installed, comprising:
The installation file is downloaded from network side;
The service service in the installation file is called, and utilizes the service service by the installation of downloading File stores installation directory corresponding to the target application;
When receiving the request of the starting to the target application, the installation file stored under the installation directory is loaded.
4. determination is to the target application the method according to claim 1, wherein described according to judging result The second specified format the mounting means installed of installation file, comprising:
If the target application does not have the system permission, it is determined that the mounting means are as follows: utilize is the target in advance The configuration file of each application module configuration of application installs the installation file.
5. according to the method described in claim 4, it is characterized in that, the target application include obtained by preparatory dismantling it is multiple Application module;It include main application installation package and the corresponding installation kit of each application module in the installation file;
It is described that the installation file of the target application is installed according to the determining mounting means, so that described first The target application of specified format is mounted to the terminal device, comprising:
The main application installation package of the target application is obtained from network side;Wherein, the main application installation package includes the configuration File;The configuration file is used to indicate the downloading opportunity of the installation kit of each application module;
According to the downloading opportunity that the configuration file indicates, the first installation kit that need to currently download is determined, and from the net Download first installation kit in network side;
When receiving the request of the starting to the target application, downloads and remove described first in the installation kit of each application module The second installation kit except installation kit, so that all installation kits of each application module are downloaded to the terminal device;
Second installation kit and first installation kit are integrated, so that all installation kits quilt of the target application It is loaded onto the terminal device.
6. according to the method described in claim 5, it is characterized in that, described ought receive the request of the starting to the target application When, download the second installation kit in the sub- installation kit of each application module in addition to first installation kit, comprising:
The quickly starting icon of the target application is created in the designated position of the terminal device;
When receiving the clicking operation to the quickly starting icon, second installation kit is downloaded.
7. method according to claim 1 to 6, which is characterized in that first specified format is Bundle lattice Formula;Second specified format is apks format.
8. a kind of apply mounting device, which is characterized in that be applied to terminal device, comprising:
First determining module, for determining the target application of the first specified format to be installed;First specified format is not The format supported by the first application market;Wherein, the corresponding installation file of the target application includes the second specified format Installation file;
Judgment module, for judging whether the target application has system permission;
Second determining module, for determining the installation file to the second specified format of the target application according to judging result The mounting means installed;The mounting means includes: to utilize service pairs of the service encapsulated in advance in the installation file The installation file is installed;Or, using the configuration file configured in advance for each application module of the target application to institute Installation file is stated to be installed;
Module is installed, for being installed to the installation file of the target application according to the determining mounting means, so that The target application of first specified format is mounted to the terminal device.
9. device according to claim 8, which is characterized in that second determining module includes:
First determination unit, if there is the system permission for the target application, it is determined that the mounting means are as follows: utilize The service service encapsulated in advance in the installation file installs the installation file;
Wherein, the service service has the function of at least one of following:
The installation file is downloaded to designated mounting catalogue;
Silence installs the installation file;
Silence updates the installation file.
10. device according to claim 9, which is characterized in that the installation module includes:
First download unit, for downloading the installation file from network side;
Calling and storage unit for calling the service service in the installation file, and utilize the service The installation file of downloading is stored installation directory corresponding to the target application by service;
Loading unit, for loading and storing under the installation directory when receiving the request of the starting to the target application The installation file.
11. device according to claim 8, which is characterized in that second determining module includes:
Second determination unit, if not having the system permission for the target application, it is determined that the mounting means are as follows: benefit The installation file is installed with the configuration file configured in advance for each application module of the target application.
12. device according to claim 11, which is characterized in that the target application include obtained by preparatory dismantling it is more A application module;It include main application installation package and the corresponding installation kit of each application module in the installation file;
The installation module includes:
Acquiring unit, for obtaining the main application installation package of the target application from network side;Wherein, the main application installation package Including the configuration file;The configuration file is used to indicate the downloading opportunity of the installation kit of each application module;
Third determination unit, the downloading opportunity for being indicated according to the configuration file determine need to currently download first Installation kit, and first installation kit is downloaded from the network side;
Second download unit, for downloading each application module when receiving the request of the starting to the target application The second installation kit in installation kit in addition to first installation kit, so that all installation kits of each application module are downloaded To the terminal device;
Integral unit, for being integrated to second installation kit and first installation kit, so that the target application All installation kits are loaded on the terminal device.
13. device according to claim 12, which is characterized in that second download unit is also used to:
The quickly starting icon of the target application is created in the designated position of the terminal device;
When receiving the clicking operation to the quickly starting icon, second installation kit is downloaded.
14. the device according to any one of claim 8-13, which is characterized in that first specified format is Bundle Format;Second specified format is 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 true CN110502251A (en) 2019-11-26
CN110502251B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010187A (en) * 2021-02-07 2021-06-22 上海硬通网络科技有限公司 Application installation method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130204974A1 (en) * 2006-05-24 2013-08-08 Robert O. Keith, Jr. Applications and services as a bundle
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130204974A1 (en) * 2006-05-24 2013-08-08 Robert O. Keith, Jr. Applications and services as a bundle
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010187A (en) * 2021-02-07 2021-06-22 上海硬通网络科技有限公司 Application installation method and device and electronic equipment
CN113010187B (en) * 2021-02-07 2024-04-05 上海硬通网络科技有限公司 Application installation method and device and electronic equipment

Also Published As

Publication number Publication date
CN110502251B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN109547570B (en) Service registration method, device, registration center management equipment and storage medium
CN103530156B (en) Dynamic load and the method and device of caller
KR102003850B1 (en) Method for providing application and terminal thereof
US11169792B2 (en) Method and apparatus for generating patch
CN106610839B (en) Method for issuing upgrade package, lightweight upgrade method, device and system
CN107506221A (en) Application program updating method, apparatus and equipment
CN103034546B (en) The method and device of inter-application communication in iOS system
CN108647032B (en) Application loading method and device, computer device and computer readable storage medium
CN111399840B (en) Module development method and device
CN111897623B (en) Cluster management method, device, equipment and storage medium
CN109344619A (en) The hot restorative procedure and device of application program
CN112965761B (en) Data processing method, system, electronic equipment and storage medium
CN110968331A (en) Method and device for running application program
CN111651219A (en) Method and equipment for managing multi-module project configuration file
CN109857432A (en) A kind of hot update method and device of game application
CN104731622A (en) Application program loading method and device and mobile terminal
CN110851204A (en) Application starting method and device and application packaging method and device
CN110716786B (en) Page display method, system and storage medium
CN110113391B (en) Client online method and device and client operation method and device
CN110502251A (en) Using installation method and device
CN109032696A (en) A kind of page tune method, terminal and computer storage medium
CN105373384B (en) A kind of software development methodology and device
CN111338655A (en) Installation package distribution method and system
CN106778270B (en) Malicious application detection method and system
CN108959553A (en) A kind of URL update method, device and electronic equipment

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