技术领域technical field
本发明涉及应用程序技术领域,特别是涉及一种安装应用程序的方法和一种安装应用程序的装置。The present invention relates to the technical field of application programs, in particular to a method for installing application programs and a device for installing application programs.
背景技术Background technique
随着互联网技术的不断发展,人们开发了各种功能丰富的应用程序,例如,即时通讯工具、音频播放器、视频播放器、日历工具等等,给人们的生活带来许多便利。With the continuous development of Internet technology, people have developed various application programs with rich functions, such as instant messaging tools, audio players, video players, calendar tools, etc., which bring many conveniences to people's lives.
要使用应用程序,安装是不可或缺的环节。当在系统中新增应用程序,或者,对应用程序进行版本更新时,需要花很长时间去安装应用程序。Installation is an integral part of using the application. When an application program is newly added in the system, or a version update is performed on the application program, it takes a long time to install the application program.
在传统的应用程序的新增方式中,需要将安装包整个下载到本地,每个安装包有其自己的安装部署方法,智能被动地安装或者部署。In the traditional method of adding new applications, the entire installation package needs to be downloaded locally, and each installation package has its own installation and deployment method, which can be intelligently and passively installed or deployed.
在传统的应用程序的更新方式中,大部分应用程序需要下载整个新的安装包覆盖安装原有文件,以达到覆盖更新的目的。In the traditional way of updating application programs, most of the application programs need to download a whole new installation package to overwrite and install the original files, so as to achieve the purpose of overwriting and updating.
对于新增应用程序,由于应用开发厂商的重点不在于下载应用程序安装包的速度而是注重应用本身,这就直接导致如果某应用程序体积很大(如某些专业的应用程序能达到10G),而下载量巨大,导致下载速度慢,可能需要花费数小时甚至数天时间下载,耗费了大量的时间与带宽资源。For new applications, since application developers focus not on the speed of downloading application installation packages but on the application itself, this directly leads to the fact that if an application is very large (for example, some professional applications can reach 10G) , and the download volume is huge, resulting in a slow download speed, which may take hours or even days to download, consuming a lot of time and bandwidth resources.
对于更新应用程序,很多应用程序更新都是用户手动下载整个安装包重新安装以达到获取最新版本的效果,如果安装包过大也会耗费了大量的时间与带宽资源,直接影响用户体验和新版应用程序的分发速度。For updating applications, many application updates require users to manually download the entire installation package and reinstall it to obtain the latest version. If the installation package is too large, it will consume a lot of time and bandwidth resources, which will directly affect the user experience and the new version of the application. The distribution speed of the program.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种应用程序的安装方法和相应的一种应用程序的安装装置。In view of the above problems, the present invention is proposed to provide an application program installation method and a corresponding application program installation device that overcome the above problems or at least partially solve the above problems.
依据本发明的一个方面,提供了一种安装应用程序的方法,包括:According to one aspect of the present invention, a method for installing an application program is provided, including:
应用程序部署引擎获取第一应用程序的文件部署描述信息;The application deployment engine obtains the file deployment description information of the first application;
解析所述文件部署描述信息,获得第一应用程序的辅助部署信息;Analyzing the deployment description information of the file to obtain auxiliary deployment information of the first application program;
依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件;Acquiring the application deployment file of the first application according to the parsed file deployment description information;
依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署。The first application is installed and deployed on the side of the application deployment engine according to the application deployment file and the auxiliary deployment information of the first application.
可选地,所述第一应用程序具有应用程序标识,所述应用程序部署引擎获取第一应用程序的文件部署描述信息的步骤包括:Optionally, the first application has an application identifier, and the step of obtaining the file deployment description information of the first application by the application deployment engine includes:
将第一应用程序的应用程序标识发送至服务器;sending the application identification of the first application to the server;
接收所述服务器返回的,所述应用程序标识对应的文件部署描述信息。Receive the file deployment description information corresponding to the application identifier returned by the server.
可选地,所述解析所述文件部署描述信息获取到第一应用程序的辅助部署信息的步骤包括:Optionally, the step of parsing the file deployment description information to obtain the auxiliary deployment information of the first application program includes:
获取第一应用程序的本地部署信息;Acquiring local deployment information of the first application program;
计算所述文件部署描述信息与所述本地部署信息之间差异,获得辅助部署信息。Calculate the difference between the file deployment description information and the local deployment information to obtain auxiliary deployment information.
可选地,所述本地部署信息包括以下至少一种:Optionally, the local deployment information includes at least one of the following:
本地文件列表及目录部署信息、本地卸载部署信息、本地快捷方式部署信息、本地注册表部署信息;Local file list and directory deployment information, local uninstallation deployment information, local shortcut deployment information, local registry deployment information;
所述文件部署描述信息包括以下至少一种:The file deployment description information includes at least one of the following:
特征文件列表及目录部署信息、特征卸载部署信息、特征快捷方式部署信息、特征注册表部署信息;Feature file list and directory deployment information, feature uninstallation deployment information, feature shortcut deployment information, feature registry deployment information;
所述辅助部署信息包括以下至少一种:The auxiliary deployment information includes at least one of the following:
文件列表及目录辅助部署信息、卸载辅助部署信息、快捷方式辅助部署信息、注册表辅助部署信息。File list and directory auxiliary deployment information, uninstall auxiliary deployment information, shortcut auxiliary deployment information, registry auxiliary deployment information.
可选地,所述依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件的步骤包括:Optionally, the step of obtaining the application deployment file of the first application according to the parsed file deployment description information includes:
从服务器中获取所述文件部署描述信息对应的应用程序部署文件。Obtain the application program deployment file corresponding to the file deployment description information from the server.
可选地,所述从服务器中获取所述文件部署描述信息对应的应用程序部署文件的步骤包括:Optionally, the step of obtaining the application deployment file corresponding to the file deployment description information from the server includes:
通过多线程从一个或多个服务器中所述文件部署描述信息对应的应用程序部署文件。The application program deployment file corresponding to the description information is deployed from one or more servers through multithreading.
可选地,所述依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件的步骤还包括:Optionally, the step of obtaining the application deployment file of the first application according to the parsed file deployment description information further includes:
对所述应用程序部署文件进行安全校验和完整性校验中的至少一种校验。At least one of security check and integrity check is performed on the application deployment file.
可选地,所述依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署的步骤包括:Optionally, the step of installing and deploying the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application includes:
按照所述文件列表及目录辅助部署信息获取第一应用程序在本地的指定目录;Acquiring the local specified directory of the first application program according to the file list and directory auxiliary deployment information;
将所述应用程序部署文件部署在指定目录中。Deploy the application deployment file in a specified directory.
可选地,所述依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署的步骤包括:Optionally, the step of installing and deploying the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application includes:
按照所述卸载辅助部署信息在本地部署第一应用程序的卸载工具。Deploy the uninstall tool of the first application program locally according to the uninstall auxiliary deployment information.
可选地,所述依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署的步骤包括:Optionally, the step of installing and deploying the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application includes:
按照所述快捷方式辅助部署信息在本地部署第一应用程序的快捷方式。The shortcut of the first application is deployed locally according to the shortcut auxiliary deployment information.
可选地,所述依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署的步骤包括:Optionally, the step of installing and deploying the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application includes:
按照所述注册表辅助部署信息在本地部署第一应用程序的注册表。The registry of the first application is deployed locally according to the registry auxiliary deployment information.
可选地,所述依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署的步骤还包括:Optionally, the step of installing and deploying the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application further includes:
按照所述辅助部署信息删除第一应用程序在本地的指定文件和/或配置信息。The local specified file and/or configuration information of the first application program is deleted according to the auxiliary deployment information.
可选地,还包括:Optionally, also include:
对本地的已安装的第二应用程序配置类别标识。The category identification is configured for the locally installed second application program.
可选地,还包括:Optionally, also include:
监测具有指定类别标识的第二应用程序的登录操作、I/O读写操作。Monitoring the login operation and I/O read and write operations of the second application program with the specified category identifier.
可选地,还包括:Optionally, also include:
在检测到第二应用程序的启动操作时,根据所述类别标识对第二应用程序所在的运行环境进行优化处理。When the start operation of the second application program is detected, the running environment where the second application program is located is optimized according to the category identification.
可选地,所述第一应用程序和所述第二应用程序为安装在移动设备中的应用程序。Optionally, the first application program and the second application program are application programs installed in a mobile device.
可选地,还包括:Optionally, also include:
使用同一登录信息在所述第一应用程序和所述第二应用程序进行登录操作。The same login information is used to perform login operations on the first application program and the second application program.
可选地,还包括:Optionally, also include:
当检测到关联的第一应用程序和第二应用程序启动时,建立所述第一应用程序与所述第二应用程序之间的进程间通信。When it is detected that the associated first application program and the second application program are launched, an inter-process communication between the first application program and the second application program is established.
根据本发明的另一方面,提供了一种安装应用程序的装置,包括:According to another aspect of the present invention, a device for installing application programs is provided, including:
第一获取模块,适于应用程序部署引擎获取第一应用程序的文件部署描述信息;The first acquisition module is adapted for the application deployment engine to obtain the file deployment description information of the first application;
获得模块,适于解析所述文件部署描述信息,获得第一应用程序的辅助部署信息;An obtaining module, adapted to parse the deployment description information of the file, and obtain auxiliary deployment information of the first application program;
第二获取模块,适于依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件;The second obtaining module is adapted to obtain the application deployment file of the first application according to the parsed file deployment description information;
部署模块,适于依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署。The deployment module is adapted to install and deploy the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application.
可选地,所述第一应用程序具有应用程序标识,所述第一获取模块还适于:Optionally, the first application has an application identifier, and the first obtaining module is further adapted to:
将第一应用程序的应用程序标识发送至服务器;sending the application identification of the first application to the server;
接收所述服务器返回的,所述应用程序标识对应的文件部署描述信息。Receive the file deployment description information corresponding to the application identifier returned by the server.
可选地,所述获得模块还适于:Optionally, the obtaining module is also suitable for:
获取第一应用程序的本地部署信息;Acquiring local deployment information of the first application program;
计算所述文件部署描述信息与所述本地部署信息之间差异,获得辅助部署信息。Calculate the difference between the file deployment description information and the local deployment information to obtain auxiliary deployment information.
可选地,所述本地部署信息包括以下至少一种:Optionally, the local deployment information includes at least one of the following:
本地文件列表及目录部署信息、本地卸载部署信息、本地快捷方式部署信息、本地注册表部署信息;Local file list and directory deployment information, local uninstallation deployment information, local shortcut deployment information, local registry deployment information;
所述文件部署描述信息包括以下至少一种:The file deployment description information includes at least one of the following:
特征文件列表及目录部署信息、特征卸载部署信息、特征快捷方式部署信息、特征注册表部署信息;Feature file list and directory deployment information, feature uninstallation deployment information, feature shortcut deployment information, feature registry deployment information;
所述辅助部署信息包括以下至少一种:The auxiliary deployment information includes at least one of the following:
文件列表及目录辅助部署信息、卸载辅助部署信息、快捷方式辅助部署信息、注册表辅助部署信息。File list and directory auxiliary deployment information, uninstall auxiliary deployment information, shortcut auxiliary deployment information, registry auxiliary deployment information.
可选地,所述第二获取模块还适于:Optionally, the second acquisition module is also suitable for:
从服务器中获取所述文件部署描述信息对应的应用程序部署文件。Obtain the application program deployment file corresponding to the file deployment description information from the server.
可选地,所述第二获取模块还适于:Optionally, the second acquisition module is also suitable for:
通过多线程从一个或多个服务器中所述文件部署描述信息对应的应用程序部署文件。The application program deployment file corresponding to the description information is deployed from one or more servers through multithreading.
可选地,所述第二获取模块还适于:Optionally, the second acquisition module is also suitable for:
对所述应用程序部署文件进行安全校验和完整性校验中的至少一种校验。At least one of security check and integrity check is performed on the application deployment file.
可选地,所述部署模块还适于:Optionally, the deployment module is also suitable for:
按照所述文件列表及目录辅助部署信息获取第一应用程序在本地的指定目录;Acquiring the local specified directory of the first application program according to the file list and directory auxiliary deployment information;
将所述应用程序部署文件部署在指定目录中。Deploy the application deployment file in a specified directory.
可选地,所述部署模块还适于:Optionally, the deployment module is also suitable for:
按照所述卸载辅助部署信息在本地部署第一应用程序的卸载工具。Deploy the uninstall tool of the first application program locally according to the uninstall auxiliary deployment information.
可选地,所述部署模块还适于:Optionally, the deployment module is also suitable for:
按照所述快捷方式辅助部署信息在本地部署第一应用程序的快捷方式。The shortcut of the first application is deployed locally according to the shortcut auxiliary deployment information.
可选地,所述部署模块还适于:Optionally, the deployment module is also suitable for:
按照所述注册表辅助部署信息在本地部署第一应用程序的注册表。The registry of the first application is deployed locally according to the registry auxiliary deployment information.
可选地,所述部署模块还适于:Optionally, the deployment module is also suitable for:
按照所述辅助部署信息删除第一应用程序在本地的指定文件和/或配置信息。The local specified file and/or configuration information of the first application program is deleted according to the auxiliary deployment information.
可选地,还包括:Optionally, also include:
配置模块,适于对本地的已安装的第二应用程序配置类别标识。The configuration module is adapted to configure a category identifier for a locally installed second application program.
可选地,还包括:Optionally, also include:
监测模块,适于监测具有指定类别标识的第二应用程序的登录操作、I/O读写操作。The monitoring module is adapted to monitor the login operation and I/O read and write operations of the second application program with a specified category identifier.
可选地,还包括:Optionally, also include:
优化模块,适于在检测到第二应用程序的启动操作时,根据所述类别标识对第二应用程序所在的运行环境进行优化处理。The optimization module is adapted to optimize the running environment where the second application program is located according to the category identification when detecting the start operation of the second application program.
可选地,所述第一应用程序和所述第二应用程序为安装在移动设备中的应用程序。Optionally, the first application program and the second application program are application programs installed in a mobile device.
可选地,还包括:Optionally, also include:
登录模块,适于使用同一登录信息在所述第一应用程序和所述第二应用程序进行登录操作。The login module is adapted to use the same login information to perform login operations on the first application program and the second application program.
可选地,还包括:Optionally, also include:
通信模块,适于在检测到关联的第一应用程序和第二应用程序启动时,建立所述第一应用程序与所述第二应用程序之间的进程间通信。The communication module is adapted to establish an inter-process communication between the first application and the second application when it is detected that the associated first application and the second application are started.
本发明实施例解析应用程序部署引擎获取的第一应用程序的文件部署描述信息,获得第一应用程序的辅助部署信息,获取到第一应用程序的应用程序部署文件,以及,依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署,实现了应用程序的安装、更新、配置调整、回退等操作,通过辅助部署信息下载应用程序部署文件,避免了下载整个安装包,大大减少了下载耗时和贷款资源占用,进而加快了应用程序的分发速度和安装速度,提高了安装效率。The embodiment of the present invention analyzes the file deployment description information of the first application obtained by the application deployment engine, obtains the auxiliary deployment information of the first application, obtains the application deployment file of the first application, and, according to the first application The application deployment file and auxiliary deployment information are installed and deployed on the application deployment engine side to implement the installation, update, configuration adjustment, rollback and other operations of the application, and the application deployment file is downloaded through the auxiliary deployment information , to avoid downloading the entire installation package, greatly reducing the time-consuming downloading and loan resource occupation, thereby speeding up the distribution and installation speed of the application, and improving the installation efficiency.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明一个实施例的一种安装应用程序的方法实施例1的步骤流程图;FIG. 1 shows a flow chart of steps in Embodiment 1 of a method for installing an application program according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的一种安装应用程序的方法示例流程图;Fig. 2 shows an exemplary flowchart of a method for installing an application program according to an embodiment of the present invention;
图3示出了根据本发明一个实施例的一种安装应用程序的方法实施例2的步骤流程图;FIG. 3 shows a flow chart of steps in Embodiment 2 of a method for installing an application program according to an embodiment of the present invention;
图4示出了根据本发明一个实施例的一种安装应用程序的装置实施例1的结构框图;以及FIG. 4 shows a structural block diagram of Embodiment 1 of an apparatus for installing an application program according to an embodiment of the present invention; and
图5示出了根据本发明一个实施例的一种安装应用程序的装置实施例2的结构框图。Fig. 5 shows a structural block diagram of Embodiment 2 of an apparatus for installing application programs according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
参照图1,示出了根据本发明一个实施例的一种安装应用程序的方法实施例1的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of Embodiment 1 of a method for installing an application program according to an embodiment of the present invention, which may specifically include the following steps:
步骤101,应用程序部署引擎获取第一应用程序的文件部署描述信息;Step 101, the application deployment engine obtains the file deployment description information of the first application;
需要说明的是,文件部署描述信息可以描述第一应用程序在某个状态下,其在终端(如电子计算机、手机、平板电脑等等)中如何部署的信息。It should be noted that the file deployment description information may describe how the first application program is deployed in a terminal (such as a computer, a mobile phone, a tablet computer, etc.) in a certain state.
例如,该状态可以为第一应用程序为最新版本,或者为第一应用程序为在先某个版本(如性能较为稳定的版本,俗称稳定版)等等,本发明实施例对此不加以限制。For example, the state may be that the first application program is the latest version, or that the first application program is an earlier version (such as a version with relatively stable performance, commonly known as a stable version), etc., which is not limited in the embodiment of the present invention .
又例如,该状态可以为调整第一应用程序的配置,该配置可以为去除插件、增加组件(如文件皮肤)等,也可以为按照用户习惯、终端等因素调整的配置参数(如安装路径、音量大小等)等等,本发明实施例对此不加以限制。在本发明的一种可选实施例中,所述第一应用程序可以具有应用程序标识,则在本发明实施例中,步骤101可以包括如下子步骤:For another example, the status can be to adjust the configuration of the first application program, and the configuration can be to remove plug-ins, add components (such as file skins), etc., or it can be configuration parameters adjusted according to user habits, terminals and other factors (such as installation path, volume, etc.), etc., which are not limited in this embodiment of the present invention. In an optional embodiment of the present invention, the first application program may have an application program identifier, then in the embodiment of the present invention, step 101 may include the following sub-steps:
子步骤S11,将第一应用程序的应用程序标识发送至服务器;Sub-step S11, sending the application identification of the first application to the server;
子步骤S12,接收所述服务器返回的,所述应用程序标识对应的文件部署描述信息。Sub-step S12, receiving the file deployment description information corresponding to the application identifier returned by the server.
应用程序标识可以是能够代表一个唯一确定的应用程序的信息,例如,名称、Hash(哈希值)值等等。The application identifier may be information that can represent a uniquely determined application, for example, a name, a Hash (hash value) value, and the like.
应用本发明实施例,服务器可以对应用程序进行分析,提取该应用程序的应用程序标识以及文件部署描述信息,建立应用程序标识于文件部署描述信息的关联关系,存储在服务器的数据库中,以供后续检测使用。Applying the embodiment of the present invention, the server can analyze the application program, extract the application program identifier and the file deployment description information of the application program, establish an association relationship between the application program identifier and the file deployment description information, and store it in the database of the server for Use in follow-up testing.
在具体实现中,在应用程序部署引擎中可以为一个或多个应用程序提供安装的入口,当用户点击该入口时,应用程序部署引擎可以提取该应用程序的应用程序标识,发送至服务器。In a specific implementation, the application deployment engine may provide an entry for installation of one or more applications, and when the user clicks on the entry, the application deployment engine may extract the application identification of the application and send it to the server.
当然,应用程序部署引擎也可以通过其他方式,如当应用程序自动安装时,应用程序部署引擎在后台扫描该应用程序的应用程序标识等等,本发明实施例对此不加以限制。Of course, the application deployment engine can also use other methods, for example, when the application is automatically installed, the application deployment engine scans the application identifier of the application in the background, etc., which is not limited in this embodiment of the present invention.
服务器接收应用程序部署引擎发送的应用程序标识,则可以与预先采集的应用程序标识进行匹配。The server receives the application program identifier sent by the application program deployment engine, and may match the pre-collected application program identifier.
当匹配成功时,则可以提取该应用程序标识对应的文件部署描述信息,返回应用程序部署引擎。When the matching is successful, the file deployment description information corresponding to the application identifier can be extracted and returned to the application deployment engine.
例如,如图2所示,若用户请求安装某个软件,则本地部署引擎200(即应用程序部署引擎)可以从服务器请求获取某软件文件部署描述201(即文件部署描述信息),并将软件文件部署描述206(即文件部署描述信息)下载到本地。For example, as shown in FIG. 2, if a user requests to install a certain software, the local deployment engine 200 (that is, the application deployment engine) may request to obtain a certain software file deployment description 201 (that is, the file deployment description information) from the server, and send the software The file deployment description 206 (that is, the file deployment description information) is downloaded to the local.
步骤102,解析所述文件部署描述信息,获得第一应用程序的辅助部署信息;Step 102, parsing the deployment description information of the file to obtain auxiliary deployment information of the first application program;
在本发明实施例中,辅助部署信息可以为描述第一应用程序在本地部署的基础上,如何对第一应用程序进行部署,以获得某个状态下的部署状态。In the embodiment of the present invention, the auxiliary deployment information may describe how to deploy the first application program based on the local deployment of the first application program, so as to obtain a deployment state in a certain state.
在本发明的一种可选实施例中,步骤102可以包括如下子步骤:In an optional embodiment of the present invention, step 102 may include the following substeps:
子步骤S21,获取第一应用程序的本地部署信息;Sub-step S21, obtaining local deployment information of the first application program;
子步骤S22,计算所述文件部署描述信息与所述本地部署信息之间差异,获得辅助部署信息。Sub-step S22, calculating the difference between the file deployment description information and the local deployment information to obtain auxiliary deployment information.
在本发明实施例中,本地部署信息可以为描述第一应用程序在本地如何部署的信息。In this embodiment of the present invention, the local deployment information may be information describing how the first application is deployed locally.
在具体实现中,所述本地部署信息可以包括以下至少一种:In a specific implementation, the local deployment information may include at least one of the following:
本地文件列表及目录部署信息、本地卸载部署信息、本地快捷方式部署信息、本地注册表部署信息;Local file list and directory deployment information, local uninstallation deployment information, local shortcut deployment information, local registry deployment information;
具体而言,本地文件列表及目录部署信息可以为记录第一应用程序在本地如何部署文件、目录的信息;Specifically, the local file list and directory deployment information may be information that records how the first application program deploys files and directories locally;
本地卸载部署信息可以为记录第一应用程序在本地如何部署卸载工具的信息;The local uninstall deployment information may be information that records how the first application program deploys the uninstall tool locally;
本地快捷方式部署信息可以为记录第一应用程序在本地如何部署快捷方式的信息;The local shortcut deployment information may be information that records how the first application program deploys the shortcut locally;
本地注册表部署信息可以为记录第一应用程序在本地如何部署注册表的信息。The local registry deployment information may be information that records how the first application program deploys the registry locally.
相对应地,所述文件部署描述信息可以包括以下至少一种:Correspondingly, the file deployment description information may include at least one of the following:
特征文件列表及目录部署信息、特征卸载部署信息、特征快捷方式部署信息、特征注册表部署信息;Feature file list and directory deployment information, feature uninstallation deployment information, feature shortcut deployment information, feature registry deployment information;
具体而言,特征文件列表及目录部署信息可以为记录第一应用程序在某个状态下如何部署文件、目录的信息;Specifically, the feature file list and directory deployment information may be information that records how the first application program deploys files and directories in a certain state;
特征卸载部署信息可以为记录第一应用程序在某个状态下如何部署卸载工具的信息;The feature uninstallation deployment information may be information that records how the first application program deploys the uninstallation tool in a certain state;
特征快捷方式部署信息可以为记录第一应用程序在某个状态下如何部署快捷方式的信息;The feature shortcut deployment information may be information that records how the first application program deploys the shortcut in a certain state;
特征注册表部署信息可以为记录第一应用程序在某个状态下如何部署注册表的信息。The feature registry deployment information may be information that records how the first application program deploys the registry in a certain state.
例如,如2所示,在服务器中,对于某软件部署文件描述201(即文件部署描述信息),可以查找到对应的注册表部署信息202(即特征注册表部署信息)、快捷方式部署信息203(即特征快捷方式部署信息)、卸载部署信息204(即特征卸载部署信息)、文件列表及目录部署信息205(即特征文件列表及目录部署信息)。For example, as shown in 2, in the server, for a software deployment file description 201 (i.e. file deployment description information), the corresponding registry deployment information 202 (i.e. feature registry deployment information), shortcut deployment information 203 can be found (namely feature shortcut deployment information), uninstallation deployment information 204 (ie feature uninstallation deployment information), file list and directory deployment information 205 (ie feature file list and directory deployment information).
则在本示例中,所述辅助部署信息可以包括以下至少一种:Then in this example, the auxiliary deployment information may include at least one of the following:
文件列表及目录辅助部署信息、卸载辅助部署信息、快捷方式辅助部署信息、注册表辅助部署信息。File list and directory auxiliary deployment information, uninstall auxiliary deployment information, shortcut auxiliary deployment information, registry auxiliary deployment information.
具体而言,若计算本地文件列表及目录部署信息与特征文件列表及目录部署信息之间的差异,则可以获得文件列表及目录辅助部署信息;Specifically, if the difference between the local file list and directory deployment information and the feature file list and directory deployment information is calculated, the file list and directory auxiliary deployment information can be obtained;
若计算本地卸载部署信息与特征卸载部署信息之间的差异,则可以获得卸载辅助部署信息;If the difference between the local uninstallation deployment information and the characteristic uninstallation deployment information is calculated, the uninstallation auxiliary deployment information can be obtained;
若计算本地快捷方式部署信息与特征快捷方式部署信息之间的差异,则可以获得快捷方式辅助部署信息;If the difference between the local shortcut deployment information and the feature shortcut deployment information is calculated, the shortcut auxiliary deployment information can be obtained;
若计算本地注册表部署信息与特征注册表部署信息之间的差异,则可以获得注册表辅助部署信息。If the difference between the deployment information of the local registry and the deployment information of the feature registry is calculated, the auxiliary registry deployment information can be obtained.
需要说明的是,差异,可能是文件部署描述信息比本地部署信息多部署了某些数据(如文件、配置参数等),也可能是少部署了某些数据(如文件、配置参数等),还可能是对某些数据(如文件、配置参数等)的部署有差别等等。It should be noted that the difference may be that the file deployment description information deploys more data (such as files, configuration parameters, etc.) than the local deployment information, or it may be that some data (such as files, configuration parameters, etc.) is deployed less. It may also be that there are differences in the deployment of certain data (such as files, configuration parameters, etc.).
当然,上述文件部署描述信息、本地部署信息辅助和部署信息只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他文件部署描述信息与所述本地部署信息,本发明实施例对此不加以限制。另外,除了上述文件部署描述信息与所述本地部署信息外,本领域技术人员还可以根据实际需要采用其它文件部署描述信息与所述本地部署信息,本发明实施例对此也不加以限制。Of course, the above-mentioned file deployment description information, local deployment information assistance, and deployment information are only examples. When implementing the embodiment of the present invention, other file deployment description information and the local deployment information can be set according to the actual situation. Not limited. In addition, in addition to the above-mentioned file deployment description information and the local deployment information, those skilled in the art may also use other file deployment description information and the local deployment information according to actual needs, which is not limited in this embodiment of the present invention.
步骤103,依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件;Step 103, obtaining the application deployment file of the first application according to the parsed file deployment description information;
在本发明实施例中,应用程序部署文件可以为第一应用程序在本地部署的基础上进行部署,以获得某个状态下的部署状态所需的文件。In the embodiment of the present invention, the application deployment file may be a file required by the first application to be deployed on the basis of local deployment to obtain a deployment state in a certain state.
例如,若文件部署描述信息比本地部署信息少部署了某些文件,还可能是对某些文件的部署有差别等等,则可以获取该文件。For example, if the file deployment description information deploys some files less than the local deployment information, or there may be differences in the deployment of some files, etc., the file can be obtained.
在本发明的一种可选实施例中,步骤103可以包括如下子步骤:In an optional embodiment of the present invention, step 103 may include the following substeps:
子步骤S31,从服务器中获取所述文件部署描述信息对应的应用程序部署文件;Sub-step S31, obtaining the application deployment file corresponding to the file deployment description information from the server;
在本发明实施例中,应用程序部署文件可以部署在服务器中,应用程序部署文件可以从服务器获取所需的应用程序部署文件。In the embodiment of the present invention, the application deployment file can be deployed in the server, and the application deployment file can obtain the required application deployment file from the server.
在本发明实施例的一种优选示例中,子步骤S31可以包括如下子步骤:In a preferred example of the embodiment of the present invention, substep S31 may include the following substeps:
子步骤S311,通过多线程从一个或多个服务器中所述文件部署描述信息对应的应用程序部署文件。In sub-step S311, the application program corresponding to the file deployment description information is deployed from one or more servers through multithreading.
在具体实现中,服务器可以为云服务器或服务器集群,该云服务器可以将要各个应用程序部署文件分散的存储在不同服务器甚至不同地域。In a specific implementation, the server may be a cloud server or a server cluster, and the cloud server may store the deployment files of various application programs in different servers or even in different regions.
例如,某个地域中对某个应用程序的应用程序部署文件下载请求次数比较多,则可以在该地域中或者该地域附近的服务器部署该应用程序的应用程序部署文件。For example, if there are many download requests for the application deployment file of an application in a certain region, the application deployment file of the application may be deployed on servers in or near the region.
因此,本发明实施例中可以利用多线程技术同时在不同的服务器中将所需的应用程序部署文件同时下载到本地。Therefore, in the embodiment of the present invention, the required application deployment files can be simultaneously downloaded to the local in different servers by using the multi-threading technology.
例如,如图2所示,可以应用云端集群存储208的方式存储应用程序部署文件,如文件A云存储、文件B云存储、文件C云存储、文件D云存储、文件N云存储等等。For example, as shown in FIG. 2 , cloud cluster storage 208 can be used to store application deployment files, such as file A cloud storage, file B cloud storage, file C cloud storage, file D cloud storage, file N cloud storage, and so on.
将所需的应用程序部署文件同时下载到本地209,如文件A、文件B、文件C、文件D、文件N等等。Simultaneously download the required application deployment files to the local 209, such as file A, file B, file C, file D, file N and so on.
在本发明实施例的一种优选示例中,步骤103还可以包括如下子步骤:In a preferred example of the embodiment of the present invention, step 103 may also include the following substeps:
子步骤S32,对所述应用程序部署文件进行安全校验和完整性校验中的至少一种校验。Sub-step S32, performing at least one of security check and integrity check on the application deployment file.
在本发明实施例中,可以对下载到的应用程序部署文件进行扫描,以验证其安全性、完整性等,当安全性、完整性有异常时,可以发出警报信息。In the embodiment of the present invention, the downloaded application program deployment file can be scanned to verify its safety and integrity, and an alarm message can be issued when the safety and integrity are abnormal.
安全校验,可以包括病毒检测、木马检测、漏洞检测等等,可以用于验证应用程序部署文件的安全性。Security verification may include virus detection, Trojan horse detection, vulnerability detection, etc., and may be used to verify the security of application deployment files.
具体而言,当检测到应用程序部署文件中存在病毒时,即可获得关于病毒信息的安全检测数据,病毒信息具体可以包括病毒数量、病毒类型、病毒位置、病毒属性等等。Specifically, when a virus is detected in the application deployment file, security detection data about the virus information can be obtained, and the virus information may specifically include virus quantity, virus type, virus location, virus attribute, and the like.
当检测到应用程序部署文件中存在木马时,即可获得关于木马信息的安全检测数据,木马信息具体可以包括木马数量、木马位置等等。When it is detected that there is a Trojan in the application deployment file, the security detection data about Trojan information can be obtained, and the Trojan information may specifically include the number of Trojans, the location of Trojans, and the like.
当检测到应用程序部署文件中存在漏洞时,即可获得关于漏洞信息的安全监测数据,该漏洞具体可以包括漏洞名称、漏洞数量、漏洞描述、危险等级等等。When a vulnerability is detected in the application deployment file, the security monitoring data on the vulnerability information can be obtained, and the vulnerability can specifically include a vulnerability name, a number of vulnerabilities, a description of the vulnerability, a risk level, and the like.
完整性校验,可以包括数字签名认证等等,可以用于验证应用程序部署文件的完整性。Integrity verification, which can include digital signature certification, etc., can be used to verify the integrity of application deployment files.
以下以对称加密、非对称加密的方式为例对数字签名认证进行说明。The following uses symmetric encryption and asymmetric encryption as examples to describe digital signature authentication.
对称加密可以为采用单钥密码系统的加密方法,同一个密钥可以同时用作信息的加密和解密。Symmetric encryption can be an encryption method using a single-key cryptosystem, and the same key can be used for both encryption and decryption of information.
应用程序部署引擎和服务器可以预先约定对属性信息进行加密和解密的密钥、加密和解密的算法,如DES(Data Encryption Standard,数据加密算法)算法、IDEA(International Data Encryption Algorithm,国际数据加密算法)算法、AES(Advanced Encryption Standard,高级加密标准)算法等等。The application deployment engine and the server can pre-agree on the encryption and decryption keys and encryption and decryption algorithms for attribute information, such as DES (Data Encryption Standard, data encryption algorithm) algorithm, IDEA (International Data Encryption Algorithm, international data encryption algorithm ) algorithm, AES (Advanced Encryption Standard, Advanced Encryption Standard) algorithm and so on.
非对称加密可以为加密和解密使用的是两个不同密钥的密码系统的加密方法。Asymmetric encryption can be an encryption method for a cryptosystem that uses two different keys for encryption and decryption.
对数据或文件(例如,应用程序部署文件)生成数字签名,接收者(例如,应用程序部署引擎)可以通过验证数字签名来验证数据或文件是否完整准确,确定数据或文件是由生成数字签名方(例如,服务器)发送而不是第三方伪造的,且该数据或文件未被篡改过。Generate digital signatures for data or files (for example, application deployment files), and the receiver (for example, application deployment engine) can verify whether the data or files are complete and accurate by verifying the digital signatures to determine whether the data or files are generated by the digital signature. (for example, the server) sent and not forged by a third party, and the data or file has not been tampered with.
一套数字签名通常可以包括两种互补的算法,其中一种算法可以用于生成数字签名,另一种算法可以用于验证数字签名。A set of digital signatures can generally include two complementary algorithms, one of which can be used to generate a digital signature, and the other can be used to verify a digital signature.
步骤104,依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署。Step 104: Install and deploy the first application on the application deployment engine side according to the application deployment file and auxiliary deployment information of the first application.
在具体实现中,若第一应用程序在本地的版本比生成文件部署描述信息的应用程序的版本低,则该安装部署可以实现应用程序的更新。In a specific implementation, if the local version of the first application program is lower than the version of the application program that generates the file deployment description information, the installation and deployment can realize the update of the application program.
若第一应用程序在本地的版本比生成文件部署描述信息的应用程序的版本相同,则该安装部署可以实现应用程序的调整。If the local version of the first application program is the same as the version of the application program that generates the file deployment description information, then the installation and deployment can realize the adjustment of the application program.
若第一应用程序在本地的版本比生成文件部署描述信息的应用程序的版本搞,则该安装部署可以实现应用程序的回调。If the local version of the first application program is higher than the version of the application program that generates the file deployment description information, the installation and deployment can realize the callback of the application program.
需要说明的是,第一应用程序在本地可以为空,即该安装部署可以实现新的应用程序的安装。It should be noted that the first application program may be empty locally, that is, the installation and deployment may implement the installation of a new application program.
在本发明的一种可选实施例中,步骤104可以包括如下子步骤:In an optional embodiment of the present invention, step 104 may include the following substeps:
子步骤S41,按照所述文件列表及目录辅助部署信息获取第一应用程序在本地的指定目录;Sub-step S41, according to the file list and directory auxiliary deployment information, obtain the specified local directory of the first application program;
在一种情况中,若本地具有该指定的目录,则可以在本地查找该指定的目录;In one case, if the specified directory exists locally, the specified directory can be searched locally;
在另一种情况中,若本地不具有该指定的目录,则可以在本地创建该指定的目录In another case, if the specified directory does not exist locally, the specified directory can be created locally
子步骤S42,将所述应用程序部署文件部署在指定目录中。Sub-step S42, deploying the application deployment file in a specified directory.
在本发明实施例中,可以将应用程序部署文件部署在指定目录中,以进行第一应用程序的安装部署,模拟和安装包安装相同的效果。In the embodiment of the present invention, the application deployment file may be deployed in a designated directory to perform the installation and deployment of the first application, simulating the same effect as the installation of the installation package.
在本发明的一种可选实施例中,步骤104可以包括如下子步骤:In an optional embodiment of the present invention, step 104 may include the following substeps:
子步骤S43,按照所述卸载辅助部署信息在本地部署第一应用程序的卸载工具。Sub-step S43, deploying the uninstall tool of the first application program locally according to the uninstall auxiliary deployment information.
一般而言,应用程序可以提供卸载工具,以从硬盘删除程序文件和文件夹以及从注册表删除相关数据的操作,释放原来占用的磁盘空间并使该应用程序不再存在于操作系统中。Generally speaking, an application program can provide an uninstall tool to delete program files and folders from the hard disk and delete related data from the registry, freeing disk space previously occupied and making the application program no longer exist in the operating system.
在本发明实施例中,可以按照卸载辅助部署信息在本地部署第一应用程序的卸载工具,以进行第一应用程序的安装部署,模拟和安装包安装相同的效果。In the embodiment of the present invention, the uninstall tool of the first application can be deployed locally according to the uninstall auxiliary deployment information, so as to install and deploy the first application, simulating the same effect as installing the installation package.
在本发明的一种可选实施例中,步骤104可以包括如下子步骤:In an optional embodiment of the present invention, step 104 may include the following substeps:
子步骤S44,按照所述快捷方式辅助部署信息在本地部署第一应用程序的快捷方式。Sub-step S44, deploying the shortcut of the first application program locally according to the shortcut auxiliary deployment information.
一般而言,应用程序可以提供快捷方式,该快捷方式可以是一种用于快速启动程序的命令行。Generally, an application program can provide a shortcut, which can be a kind of command line for quickly launching a program.
在本发明实施例中,可以按照快捷方式辅助部署信息在本地部署第一应用程序的快捷方式,如在桌面、快捷栏、开始栏等位置部署快捷方式,以进行第一应用程序的安装部署,模拟和安装包安装相同的效果。In the embodiment of the present invention, the shortcut of the first application can be deployed locally according to the auxiliary deployment information of the shortcut, such as deploying the shortcut on the desktop, the shortcut bar, the start bar, etc., so as to install and deploy the first application, Simulation has the same effect as installing a package.
在本发明的一种可选实施例中,步骤104可以包括如下子步骤:In an optional embodiment of the present invention, step 104 may include the following substeps:
子步骤S45,按照所述注册表辅助部署信息在本地部署第一应用程序的注册表。Sub-step S45, deploying the registry of the first application program locally according to the registry auxiliary deployment information.
注册表(Registry,又称登录档)是操作系统中的一个重要的数据库,可以用于存储系统和应用程序的设置信息。The registry (Registry, also known as the login file) is an important database in the operating system, which can be used to store the setting information of the system and application programs.
在本发明实施例中,可以按照注册表辅助部署信息在本地部署第一应用程序的注册表,如设置key(键)、value entry(值项)等等,以进行第一应用程序的安装部署,模拟和安装包安装相同的效果。In the embodiment of the present invention, the registry of the first application can be deployed locally according to the auxiliary deployment information of the registry, such as setting key (key), value entry (value entry), etc., to install and deploy the first application , simulating the same effect as installing a package.
例如,如图2所示,在客户端中,可以在本地部署引擎200(即应用程序部署引擎)解析软件文件部署描述206(即文件部署描述信息),获得辅助部署信息,按照该辅助部署信息,一方面,进行注册表、快捷方式、卸载等部署207,另一方面,对本地209中的应用程序部署文件进行具体文件部署210。For example, as shown in FIG. 2, in the client, the software file deployment description 206 (ie, the file deployment description information) can be parsed at the local deployment engine 200 (ie, the application program deployment engine) to obtain auxiliary deployment information, and according to the auxiliary deployment information On the one hand, deploy 207 such as registry, shortcut, uninstallation, etc., and on the other hand, perform specific file deployment 210 on the application deployment files in the local 209 .
在本发明的一种可选实施例中,步骤104还可以包括如下子步骤:In an optional embodiment of the present invention, step 104 may also include the following substeps:
子步骤S46,按照所述辅助部署信息删除第一应用程序在本地的指定文件和/或配置信息。In sub-step S46, the local specified file and/or configuration information of the first application program is deleted according to the auxiliary deployment information.
在实际应用中,由于软件在新发的版本等情况下可能会去掉某些文件,因此在本发明实施例中,可以按照辅助部署信息删除掉某些指定的文件、在系统中的配置信息,以进行第一应用程序的安装部署,模拟和安装包安装相同的效果。In practical applications, some files may be removed in the case of a new version of the software, so in the embodiment of the present invention, some specified files and configuration information in the system may be deleted according to the auxiliary deployment information, To perform installation and deployment of the first application program, simulating the same effect as installation package installation.
例如,如图2所示,本地部署引擎200可以在部署注册表、快捷方式、卸载、文件等部署后,进行部署完后续处理211,以删除指定文件、配置信息等等。For example, as shown in FIG. 2, the local deployment engine 200 may perform post-deployment processing 211 after deploying the registry, shortcuts, uninstallation, files, etc., to delete specified files, configuration information, and the like.
当然,上述安装部署方式只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他安装部署方式,本发明实施例对此不加以限制。另外,除了上述安装部署方式外,本领域技术人员还可以根据实际需要采用其它安装部署方式,本发明实施例对此也不加以限制。Certainly, the above-mentioned installation and deployment manner is only an example, and other installation and deployment manners may be set according to actual conditions when implementing the embodiment of the present invention, which is not limited in the embodiment of the present invention. In addition, in addition to the above-mentioned installation and deployment methods, those skilled in the art may also adopt other installation and deployment methods according to actual needs, which is not limited in this embodiment of the present invention.
本发明实施例解析应用程序部署引擎获取的第一应用程序的文件部署描述信息,获得第一应用程序的辅助部署信息,获取到第一应用程序的应用程序部署文件,以及,依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署,实现了应用程序的安装、更新、配置调整、回退等操作,通过辅助部署信息下载应用程序部署文件,避免了下载整个安装包,大大减少了下载耗时和贷款资源占用,进而加快了应用程序的分发速度和安装速度,提高了安装效率。The embodiment of the present invention analyzes the file deployment description information of the first application obtained by the application deployment engine, obtains the auxiliary deployment information of the first application, obtains the application deployment file of the first application, and, according to the first application The application deployment file and auxiliary deployment information are installed and deployed on the application deployment engine side to implement the installation, update, configuration adjustment, rollback and other operations of the application, and the application deployment file is downloaded through the auxiliary deployment information , to avoid downloading the entire installation package, greatly reducing the time-consuming downloading and loan resource occupation, thereby speeding up the distribution and installation speed of the application, and improving the installation efficiency.
参照图3,示出了根据本发明一个实施例的一种安装应用程序的方法实施例2的步骤流程图,具体可以包括如下步骤:Referring to FIG. 3 , it shows a flow chart of the steps of Embodiment 2 of a method for installing an application program according to an embodiment of the present invention, which may specifically include the following steps:
步骤301,应用程序部署引擎获取第一应用程序的文件部署描述信息;Step 301, the application deployment engine obtains the file deployment description information of the first application;
步骤302,解析所述文件部署描述信息,获得第一应用程序的辅助部署信息;Step 302, parsing the deployment description information of the file to obtain auxiliary deployment information of the first application program;
步骤303,依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件;Step 303, obtaining the application deployment file of the first application according to the parsed file deployment description information;
步骤304,依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署。Step 304: Install and deploy the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application.
步骤305,对本地的已安装的第二应用程序配置类别标识。Step 305, configuring a category identifier for the locally installed second application program.
在本发明实施例中,可以对本地的操作系统进行扫描,获取已安装的第二应用程序。In the embodiment of the present invention, the local operating system may be scanned to acquire the installed second application program.
对扫描到的第二应用程序进行分类,如游戏类应用、支付类应用等等,并配置对应的分类标识。该分类标识可以是能够代表一个唯一确定的类别的信息,例如,分类ID(IDentity的缩写,身份标识号码)等等。Classify the scanned second application programs, such as game applications, payment applications, etc., and configure corresponding classification identifiers. The category identifier may be information that can represent a uniquely determined category, for example, category ID (abbreviation for IDentity, identification number) and so on.
在本发明实施例的一种可选示例中,第一应用程序和第二应用程序可以为安装在移动设备中的应用程序。In an optional example of the embodiment of the present invention, the first application program and the second application program may be application programs installed in the mobile device.
例如,若该移动设备为Android(安卓)操作系统的移动设备,则第一应用程序和第二应用程序可以为通过APK(AndroidPackage,安卓安装包)安装的应用程序。For example, if the mobile device is a mobile device with an Android (Android) operating system, the first application program and the second application program may be application programs installed through APK (Android Package, Android installation package).
若该移动设备为IOS操作系统的移动设备,则第一应用程序和第二应用程序可以为通过IPA(iPhoneApplication)的安装的应用程序。If the mobile device is a mobile device with an IOS operating system, the first application program and the second application program may be application programs installed through IPA (iPhoneApplication).
步骤306,监测具有指定类别标识的第二应用程序的登录操作、I/O读写操作。Step 306, monitoring the login operation and I/O read and write operations of the second application program with the specified category identifier.
本发明实施例中,可以对指定类别标识的第二应用程序进行监控,例如,游戏类应用、支付类应用等等,当检测到异常行为时,可以发出警告信息,或者,拦截异常行为,以保证第二应用程序安全运行。In the embodiment of the present invention, the second application program identified by a specified category can be monitored, for example, a game application, a payment application, etc., and when an abnormal behavior is detected, a warning message can be issued, or the abnormal behavior can be intercepted to Ensure the safe operation of the second application program.
步骤307,在检测到第二应用程序的启动操作时,根据所述类别标识对第二应用程序所在的运行环境进行优化处理。Step 307, when the start operation of the second application program is detected, optimize the running environment where the second application program is located according to the category identifier.
本发明实施例中,可以根据类别标识进行优化处理,例如,游戏类应用在启动时,可以启动网络优化以及系统内存的优化处理。In the embodiment of the present invention, the optimization process can be performed according to the category identification, for example, when the game application is started, the network optimization and the system memory optimization process can be started.
步骤308,使用同一登录信息在所述第一应用程序和所述第二应用程序进行登录操作。Step 308, use the same login information to perform login operations on the first application program and the second application program.
在本发明实施例中,可以采用同一登录信息,例如账号、密码等,对一应用程序和第二应用程序进行登录操作。In this embodiment of the present invention, the same login information, such as account number and password, can be used to perform login operations on an application program and a second application program.
步骤309,当检测到关联的第一应用程序和第二应用程序启动时,建立所述第一应用程序与所述第二应用程序之间的进程间通信。Step 309, when it is detected that the associated first application program and the second application program start, establish inter-process communication between the first application program and the second application program.
在本发明实施例中,当检测到关联的第一应用程序和第二应用程序启动后可以使用进程间通信(IPC,InterProcess Communication),直接进行应用程序之间的通信。In the embodiment of the present invention, after it is detected that the associated first application program and the second application program are started, inter-process communication (IPC, InterProcess Communication) can be used to directly communicate between the application programs.
例如,第一应用程序为购物应用,第二应用程序为支付应用,在购物应用中可以调用支付应用进行支付操作,通过进程间通信传递安全的支付数据(如金额、卡号等支付相关信息)。For example, the first application program is a shopping application, and the second application program is a payment application. In the shopping application, the payment application can be called to perform payment operations, and secure payment data (such as payment-related information such as amount and card number) can be transmitted through inter-process communication.
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described sequence of actions, because according to the embodiment of the present invention , certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
参照图4,示出了根据本发明一个实施例的一种安装应用程序的装置实施例1的结构框图,具体可以包括如下模块:Referring to FIG. 4 , it shows a structural block diagram of Embodiment 1 of an apparatus for installing an application program according to an embodiment of the present invention, which may specifically include the following modules:
第一获取模块401,适于应用程序部署引擎获取第一应用程序的文件部署描述信息;The first obtaining module 401 is suitable for the application deployment engine to obtain the file deployment description information of the first application;
获得模块402,适于解析所述文件部署描述信息,获得第一应用程序的辅助部署信息;An obtaining module 402, adapted to parse the file deployment description information, and obtain auxiliary deployment information of the first application program;
第二获取模块403,适于依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件;The second acquiring module 403 is adapted to acquire the application deployment file of the first application according to the parsed file deployment description information;
部署模块404,适于依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署。The deployment module 404 is adapted to install and deploy the first application on the application deployment engine side according to the application deployment file and auxiliary deployment information of the first application.
在本发明的一种可选实施例中,所述第一应用程序可以具有应用程序标识,所述第一获取模块401还可以适于:In an optional embodiment of the present invention, the first application program may have an application program identifier, and the first obtaining module 401 may also be adapted to:
将第一应用程序的应用程序标识发送至服务器;sending the application identification of the first application to the server;
接收所述服务器返回的,所述应用程序标识对应的文件部署描述信息。Receive the file deployment description information corresponding to the application identifier returned by the server.
在本发明的一种可选实施例中,所述获得模块402还可以适于:In an optional embodiment of the present invention, the obtaining module 402 may also be adapted to:
获取第一应用程序的本地部署信息;Acquiring local deployment information of the first application program;
计算所述文件部署描述信息与所述本地部署信息之间差异,获得辅助部署信息。Calculate the difference between the file deployment description information and the local deployment information to obtain auxiliary deployment information.
在具体实现中,所述本地部署信息可以包括以下至少一种:In a specific implementation, the local deployment information may include at least one of the following:
本地文件列表及目录部署信息、本地卸载部署信息、本地快捷方式部署信息、本地注册表部署信息;Local file list and directory deployment information, local uninstallation deployment information, local shortcut deployment information, local registry deployment information;
所述文件部署描述信息可以包括以下至少一种:The file deployment description information may include at least one of the following:
特征文件列表及目录部署信息、特征卸载部署信息、特征快捷方式部署信息、特征注册表部署信息;Feature file list and directory deployment information, feature uninstallation deployment information, feature shortcut deployment information, feature registry deployment information;
所述辅助部署信息可以包括以下至少一种:The auxiliary deployment information may include at least one of the following:
文件列表及目录辅助部署信息、卸载辅助部署信息、快捷方式辅助部署信息、注册表辅助部署信息。File list and directory auxiliary deployment information, uninstall auxiliary deployment information, shortcut auxiliary deployment information, registry auxiliary deployment information.
在本发明的一种可选实施例中,所述第二获取模块403还可以适于:In an optional embodiment of the present invention, the second obtaining module 403 may also be adapted to:
从服务器中获取所述文件部署描述信息对应的应用程序部署文件。Obtain the application program deployment file corresponding to the file deployment description information from the server.
在本发明的一种可选实施例中,所述第二获取模块403还可以适于:In an optional embodiment of the present invention, the second obtaining module 403 may also be adapted to:
通过多线程从一个或多个服务器中所述文件部署描述信息对应的应用程序部署文件。The application program deployment file corresponding to the description information is deployed from one or more servers through multithreading.
在本发明的一种可选实施例中,所述第二获取模块403还可以适于:In an optional embodiment of the present invention, the second obtaining module 403 may also be adapted to:
对所述应用程序部署文件进行安全校验和完整性校验中的至少一种校验。At least one of security check and integrity check is performed on the application deployment file.
在本发明实施例的一种可选示例中,所述部署模块404还可以适于:In an optional example of the embodiment of the present invention, the deployment module 404 may also be adapted to:
按照所述文件列表及目录辅助部署信息获取第一应用程序在本地的指定目录;Acquiring the local specified directory of the first application program according to the file list and directory auxiliary deployment information;
将所述应用程序部署文件部署在指定目录中。Deploy the application deployment file in a specified directory.
在本发明实施例的一种可选示例中,所述部署模块404还可以适于:In an optional example of the embodiment of the present invention, the deployment module 404 may also be adapted to:
按照所述卸载辅助部署信息在本地部署第一应用程序的卸载工具。Deploy the uninstall tool of the first application program locally according to the uninstall auxiliary deployment information.
在本发明实施例的一种可选示例中,所述部署模块404还可以适于:In an optional example of the embodiment of the present invention, the deployment module 404 may also be adapted to:
按照所述快捷方式辅助部署信息在本地部署第一应用程序的快捷方式。The shortcut of the first application is deployed locally according to the shortcut auxiliary deployment information.
在本发明实施例的一种可选示例中,所述部署模块404还可以适于:In an optional example of the embodiment of the present invention, the deployment module 404 may also be adapted to:
按照所述注册表辅助部署信息在本地部署第一应用程序的注册表。The registry of the first application is deployed locally according to the registry auxiliary deployment information.
在本发明实施例的一种可选示例中,所述部署模块404还可以适于:In an optional example of the embodiment of the present invention, the deployment module 404 may also be adapted to:
按照所述辅助部署信息删除第一应用程序在本地的指定文件和/或配置信息。The local specified file and/or configuration information of the first application program is deleted according to the auxiliary deployment information.
参照图5,示出了根据本发明一个实施例的一种安装应用程序的装置实施例2的结构框图,具体可以包括如下模块:Referring to FIG. 5 , it shows a structural block diagram of Embodiment 2 of an apparatus for installing an application program according to an embodiment of the present invention, which may specifically include the following modules:
第一获取模块501,适于应用程序部署引擎获取第一应用程序的文件部署描述信息;The first obtaining module 501 is adapted for the application deployment engine to obtain the file deployment description information of the first application;
获得模块502,适于解析所述文件部署描述信息,获得第一应用程序的辅助部署信息;Obtaining module 502, adapted to parse the file deployment description information, and obtain auxiliary deployment information of the first application program;
第二获取模块503,适于依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件;The second acquiring module 503 is adapted to acquire the application deployment file of the first application according to the parsed file deployment description information;
部署模块504,适于依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署。The deployment module 504 is adapted to install and deploy the first application on the application deployment engine side according to the application deployment file and auxiliary deployment information of the first application.
配置模块505,适于对本地的已安装的第二应用程序配置类别标识。The configuration module 505 is adapted to configure a category identifier for a locally installed second application program.
监测模块506,适于监测具有指定类别标识的第二应用程序的登录操作、I/O读写操作。The monitoring module 506 is adapted to monitor the login operation and I/O read and write operations of the second application program with a specified category identifier.
优化模块507,适于在检测到第二应用程序的启动操作时,根据所述类别标识对第二应用程序所在的运行环境进行优化处理。The optimization module 507 is adapted to optimize the running environment where the second application program is located according to the category identifier when detecting the start operation of the second application program.
登录模块508,适于使用同一登录信息在所述第一应用程序和所述第二应用程序进行登录操作。The login module 508 is adapted to use the same login information to perform login operations on the first application program and the second application program.
通信模块509,适于在检测到关联的第一应用程序和第二应用程序启动时,建立所述第一应用程序与所述第二应用程序之间的进程间通信。The communication module 509 is adapted to establish inter-process communication between the first application program and the second application program when it is detected that the associated first application program and the second application program are started.
在本发明实施例的一种可选示例中,所述第一应用程序和所述第二应用程序为安装在移动设备中的应用程序。In an optional example of the embodiment of the present invention, the first application program and the second application program are application programs installed in a mobile device.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的安装应用程序的设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the device for installing application programs according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明实施例公开了A1、一种安装应用程序的方法,包括:The embodiment of the present invention discloses A1, a method for installing an application program, including:
应用程序部署引擎获取第一应用程序的文件部署描述信息;The application deployment engine obtains the file deployment description information of the first application;
解析所述文件部署描述信息,获得第一应用程序的辅助部署信息;Analyzing the deployment description information of the file to obtain auxiliary deployment information of the first application program;
依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件;Acquiring the application deployment file of the first application according to the parsed file deployment description information;
依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署。The first application is installed and deployed on the side of the application deployment engine according to the application deployment file and the auxiliary deployment information of the first application.
A2、如A1所述的方法,所述第一应用程序具有应用程序标识,所述应用程序部署引擎获取第一应用程序的文件部署描述信息的步骤包括:A2. The method described in A1, wherein the first application program has an application program identifier, and the step of obtaining the file deployment description information of the first application program by the application program deployment engine includes:
将第一应用程序的应用程序标识发送至服务器;sending the application identification of the first application to the server;
接收所述服务器返回的,所述应用程序标识对应的文件部署描述信息。Receive the file deployment description information corresponding to the application identifier returned by the server.
A3、如A1或A2所述的方法,所述解析所述文件部署描述信息获取到第一应用程序的辅助部署信息的步骤包括:A3. The method described in A1 or A2, the step of parsing the deployment description information of the file to obtain the auxiliary deployment information of the first application program includes:
获取第一应用程序的本地部署信息;Acquiring local deployment information of the first application program;
计算所述文件部署描述信息与所述本地部署信息之间差异,获得辅助部署信息。Calculate the difference between the file deployment description information and the local deployment information to obtain auxiliary deployment information.
A4、如A3所述的方法,所述本地部署信息包括以下至少一种:A4. The method described in A3, the local deployment information includes at least one of the following:
本地文件列表及目录部署信息、本地卸载部署信息、本地快捷方式部署信息、本地注册表部署信息;Local file list and directory deployment information, local uninstallation deployment information, local shortcut deployment information, local registry deployment information;
所述文件部署描述信息包括以下至少一种:The file deployment description information includes at least one of the following:
特征文件列表及目录部署信息、特征卸载部署信息、特征快捷方式部署信息、特征注册表部署信息;Feature file list and directory deployment information, feature uninstallation deployment information, feature shortcut deployment information, feature registry deployment information;
所述辅助部署信息包括以下至少一种:The auxiliary deployment information includes at least one of the following:
文件列表及目录辅助部署信息、卸载辅助部署信息、快捷方式辅助部署信息、注册表辅助部署信息。File list and directory auxiliary deployment information, uninstall auxiliary deployment information, shortcut auxiliary deployment information, registry auxiliary deployment information.
A5、如A1或A2或A4所述的方法,所述依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件的步骤包括:A5. The method described in A1 or A2 or A4, the step of obtaining the application deployment file of the first application according to the parsed file deployment description information includes:
从服务器中获取所述文件部署描述信息对应的应用程序部署文件。Obtain the application program deployment file corresponding to the file deployment description information from the server.
A6、如A5所述的方法,所述从服务器中获取所述文件部署描述信息对应的应用程序部署文件的步骤包括:A6. The method as described in A5, the step of obtaining the application deployment file corresponding to the file deployment description information from the server includes:
通过多线程从一个或多个服务器中所述文件部署描述信息对应的应用程序部署文件。The application program deployment file corresponding to the description information is deployed from one or more servers through multithreading.
A7、如A5所述的方法,所述依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件的步骤还包括:A7. The method as described in A5, the step of obtaining the application deployment file of the first application according to the parsed file deployment description information further includes:
对所述应用程序部署文件进行安全校验和完整性校验中的至少一种校验。At least one of security check and integrity check is performed on the application deployment file.
A8、如A4所述的方法,所述依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署的步骤包括:A8. The method described in A4, the step of installing and deploying the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application includes:
按照所述文件列表及目录辅助部署信息获取第一应用程序在本地的指定目录;Acquiring the local specified directory of the first application program according to the file list and directory auxiliary deployment information;
将所述应用程序部署文件部署在指定目录中。Deploy the application deployment file in a specified directory.
A9、如A4所述的方法,所述依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署的步骤包括:A9. The method described in A4, the step of installing and deploying the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application includes:
按照所述卸载辅助部署信息在本地部署第一应用程序的卸载工具。Deploy the uninstall tool of the first application program locally according to the uninstall auxiliary deployment information.
A10、如A4所述的方法,所述依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署的步骤包括:A10. The method described in A4, wherein the step of installing and deploying the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application includes:
按照所述快捷方式辅助部署信息在本地部署第一应用程序的快捷方式。The shortcut of the first application is deployed locally according to the shortcut auxiliary deployment information.
A11、如A4所述的方法,所述依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署的步骤包括:A11. The method described in A4, the step of installing and deploying the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application includes:
按照所述注册表辅助部署信息在本地部署第一应用程序的注册表。The registry of the first application is deployed locally according to the registry auxiliary deployment information.
A12、如A1或A8或A9或A10或A11所述的方法,所述依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署的步骤还包括:A12. The method described in A1 or A8 or A9 or A10 or A11, the step of installing and deploying the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application is further include:
按照所述辅助部署信息删除第一应用程序在本地的指定文件和/或配置信息。The local specified file and/or configuration information of the first application program is deleted according to the auxiliary deployment information.
A13、如A1所述的方法,还包括:A13. The method as described in A1, further comprising:
对本地的已安装的第二应用程序配置类别标识。The category identification is configured for the locally installed second application program.
A14、如A13所述的方法,还包括:A14. The method as described in A13, further comprising:
监测具有指定类别标识的第二应用程序的登录操作、I/O读写操作。Monitoring the login operation and I/O read and write operations of the second application program with the specified category identifier.
A15、如A13所述的方法,还包括:A15. The method as described in A13, further comprising:
在检测到第二应用程序的启动操作时,根据所述类别标识对第二应用程序所在的运行环境进行优化处理。When the start operation of the second application program is detected, the running environment where the second application program is located is optimized according to the category identification.
A16、如A13所述的方法,所述第一应用程序和所述第二应用程序为安装在移动设备中的应用程序。A16. The method described in A13, wherein the first application program and the second application program are application programs installed in the mobile device.
A17、如A13所述的方法,还包括:A17. The method as described in A13, further comprising:
使用同一登录信息在所述第一应用程序和所述第二应用程序进行登录操作。The same login information is used to perform login operations on the first application program and the second application program.
A18、如A13所述的方法,还包括:A18. The method as described in A13, further comprising:
当检测到关联的第一应用程序和第二应用程序启动时,建立所述第一应用程序与所述第二应用程序之间的进程间通信。When it is detected that the associated first application program and the second application program are launched, an inter-process communication between the first application program and the second application program is established.
本发明实施例还公开了B19、一种安装应用程序的装置,包括:The embodiment of the present invention also discloses B19, a device for installing application programs, including:
第一获取模块,适于应用程序部署引擎获取第一应用程序的文件部署描述信息;The first acquisition module is adapted for the application deployment engine to obtain the file deployment description information of the first application;
获得模块,适于解析所述文件部署描述信息,获得第一应用程序的辅助部署信息;An obtaining module, adapted to parse the deployment description information of the file, and obtain auxiliary deployment information of the first application program;
第二获取模块,适于依据所述解析后的文件部署描述信息获取到第一应用程序的应用程序部署文件;The second obtaining module is adapted to obtain the application deployment file of the first application according to the parsed file deployment description information;
部署模块,适于依据第一应用程序的应用程序部署文件和辅助部署信息在应用程序部署引擎侧进行第一应用程序的安装部署。The deployment module is adapted to install and deploy the first application on the side of the application deployment engine according to the application deployment file and auxiliary deployment information of the first application.
B20、如B19所述的装置,所述第一应用程序具有应用程序标识,所述第一获取模块还适于:B20, the device as described in B19, the first application program has an application program identification, and the first acquisition module is also suitable for:
将第一应用程序的应用程序标识发送至服务器;sending the application identification of the first application to the server;
接收所述服务器返回的,所述应用程序标识对应的文件部署描述信息。Receive the file deployment description information corresponding to the application identifier returned by the server.
B21、如B19或B20所述的装置,所述获得模块还适于:B21. The device as described in B19 or B20, the obtaining module is further adapted to:
获取第一应用程序的本地部署信息;Acquiring local deployment information of the first application program;
计算所述文件部署描述信息与所述本地部署信息之间差异,获得辅助部署信息。Calculate the difference between the file deployment description information and the local deployment information to obtain auxiliary deployment information.
B22、如B21所述的方法,所述本地部署信息包括以下至少一种:B22. The method as described in B21, the local deployment information includes at least one of the following:
本地文件列表及目录部署信息、本地卸载部署信息、本地快捷方式部署信息、本地注册表部署信息;Local file list and directory deployment information, local uninstallation deployment information, local shortcut deployment information, local registry deployment information;
所述文件部署描述信息包括以下至少一种:The file deployment description information includes at least one of the following:
特征文件列表及目录部署信息、特征卸载部署信息、特征快捷方式部署信息、特征注册表部署信息;Feature file list and directory deployment information, feature uninstallation deployment information, feature shortcut deployment information, feature registry deployment information;
所述辅助部署信息包括以下至少一种:The auxiliary deployment information includes at least one of the following:
文件列表及目录辅助部署信息、卸载辅助部署信息、快捷方式辅助部署信息、注册表辅助部署信息。File list and directory auxiliary deployment information, uninstall auxiliary deployment information, shortcut auxiliary deployment information, registry auxiliary deployment information.
B23、如B19或B20或B22所述的装置,所述第二获取模块还适于:B23. The device as described in B19 or B20 or B22, the second acquisition module is also suitable for:
从服务器中获取所述文件部署描述信息对应的应用程序部署文件。Obtain the application program deployment file corresponding to the file deployment description information from the server.
B24、如B23所述的装置,所述第二获取模块还适于:B24, the device as described in B23, the second acquisition module is also suitable for:
通过多线程从一个或多个服务器中所述文件部署描述信息对应的应用程序部署文件。The application program deployment file corresponding to the description information is deployed from one or more servers through multithreading.
B25、如B23所述的装置,所述第二获取模块还适于:B25, the device as described in B23, the second acquisition module is also suitable for:
对所述应用程序部署文件进行安全校验和完整性校验中的至少一种校验。At least one of security check and integrity check is performed on the application deployment file.
B26、如B22所述的装置,所述部署模块还适于:B26. The device as described in B22, the deployment module is also suitable for:
按照所述文件列表及目录辅助部署信息获取第一应用程序在本地的指定目录;Acquiring the local specified directory of the first application program according to the file list and directory auxiliary deployment information;
将所述应用程序部署文件部署在指定目录中。Deploy the application deployment file in a specified directory.
B27、如B22所述的装置,所述部署模块还适于:B27. The device as described in B22, the deployment module is also suitable for:
按照所述卸载辅助部署信息在本地部署第一应用程序的卸载工具。Deploy the uninstall tool of the first application program locally according to the uninstall auxiliary deployment information.
B28、如B22所述的装置,所述部署模块还适于:B28. The device as described in B22, the deployment module is also suitable for:
按照所述快捷方式辅助部署信息在本地部署第一应用程序的快捷方式。The shortcut of the first application is deployed locally according to the shortcut auxiliary deployment information.
B29、如B22所述的装置,所述部署模块还适于:B29. The device as described in B22, the deployment module is also suitable for:
按照所述注册表辅助部署信息在本地部署第一应用程序的注册表。The registry of the first application is deployed locally according to the registry auxiliary deployment information.
B30、如B19或B26或B27或B28或B29所述的装置,所述部署模块还适于:B30. The device as described in B19 or B26 or B27 or B28 or B29, the deployment module is further adapted to:
按照所述辅助部署信息删除第一应用程序在本地的指定文件和/或配置信息。The local specified file and/or configuration information of the first application program is deleted according to the auxiliary deployment information.
B31、如B19所述的装置,还包括:B31. The device as described in B19, further comprising:
配置模块,适于对本地的已安装的第二应用程序配置类别标识。The configuration module is adapted to configure a category identifier for a locally installed second application program.
B32、如B31所述的装置,还包括:B32. The device as described in B31, further comprising:
监测模块,适于监测具有指定类别标识的第二应用程序的登录操作、I/O读写操作。The monitoring module is adapted to monitor the login operation and I/O read and write operations of the second application program with a specified category identifier.
B33、如B31所述的装置,还包括:B33. The device as described in B31, further comprising:
优化模块,适于在检测到第二应用程序的启动操作时,根据所述类别标识对第二应用程序所在的运行环境进行优化处理。The optimization module is adapted to optimize the running environment where the second application program is located according to the category identification when detecting the start operation of the second application program.
B34、如B31所述的装置,所述第一应用程序和所述第二应用程序为安装在移动设备中的应用程序。B34. The apparatus according to B31, wherein the first application program and the second application program are application programs installed in a mobile device.
B35、如B31所述的装置,还包括:B35. The device as described in B31, further comprising:
登录模块,适于使用同一登录信息在所述第一应用程序和所述第二应用程序进行登录操作。The login module is adapted to use the same login information to perform login operations on the first application program and the second application program.
B36、如B31所述的装置,还包括:B36. The device as described in B31, further comprising:
通信模块,适于在检测到关联的第一应用程序和第二应用程序启动时,建立所述第一应用程序与所述第二应用程序之间的进程间通信。The communication module is adapted to establish an inter-process communication between the first application and the second application when it is detected that the associated first application and the second application are started.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410734340.7ACN104484198A (en) | 2014-12-04 | 2014-12-04 | Method and device for setting up application |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410734340.7ACN104484198A (en) | 2014-12-04 | 2014-12-04 | Method and device for setting up application |
| Publication Number | Publication Date |
|---|---|
| CN104484198Atrue CN104484198A (en) | 2015-04-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410734340.7APendingCN104484198A (en) | 2014-12-04 | 2014-12-04 | Method and device for setting up application |
| Country | Link |
|---|---|
| CN (1) | CN104484198A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109309725A (en)* | 2018-10-25 | 2019-02-05 | 深圳市腾讯信息技术有限公司 | Using downloading and update method, device, computer equipment and storage medium |
| CN109558143A (en)* | 2017-09-22 | 2019-04-02 | 北京国双科技有限公司 | The method and device of application deployment in a kind of cluster |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120324439A1 (en)* | 2011-06-14 | 2012-12-20 | Fujitsu Limited | Configuration information management method and configuration information management device |
| CN102945158A (en)* | 2012-10-24 | 2013-02-27 | 深圳市万凯达科技有限公司 | Method and system for automatic classification of application installation on electronic equipment |
| CN102981915A (en)* | 2012-12-17 | 2013-03-20 | 北京奇虎科技有限公司 | Communication method and device among application programs |
| CN103034516A (en)* | 2012-12-13 | 2013-04-10 | 东莞宇龙通信科技有限公司 | Terminal and method for opening application program |
| US20130318520A1 (en)* | 2012-05-22 | 2013-11-28 | International Business Machines Corporation | Early configuration in deploying an enterprise application |
| CN103902299A (en)* | 2012-12-24 | 2014-07-02 | 航天信息股份有限公司 | Software version updating method and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120324439A1 (en)* | 2011-06-14 | 2012-12-20 | Fujitsu Limited | Configuration information management method and configuration information management device |
| US20130318520A1 (en)* | 2012-05-22 | 2013-11-28 | International Business Machines Corporation | Early configuration in deploying an enterprise application |
| CN102945158A (en)* | 2012-10-24 | 2013-02-27 | 深圳市万凯达科技有限公司 | Method and system for automatic classification of application installation on electronic equipment |
| CN103034516A (en)* | 2012-12-13 | 2013-04-10 | 东莞宇龙通信科技有限公司 | Terminal and method for opening application program |
| CN102981915A (en)* | 2012-12-17 | 2013-03-20 | 北京奇虎科技有限公司 | Communication method and device among application programs |
| CN103902299A (en)* | 2012-12-24 | 2014-07-02 | 航天信息股份有限公司 | Software version updating method and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109558143A (en)* | 2017-09-22 | 2019-04-02 | 北京国双科技有限公司 | The method and device of application deployment in a kind of cluster |
| CN109558143B (en)* | 2017-09-22 | 2022-02-22 | 北京国双科技有限公司 | Method and device for deploying applications in cluster |
| CN109309725A (en)* | 2018-10-25 | 2019-02-05 | 深圳市腾讯信息技术有限公司 | Using downloading and update method, device, computer equipment and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| US10055576B2 (en) | Detection of malicious software packages | |
| US10320940B1 (en) | Managing generic data | |
| US10127057B2 (en) | Method and apparatus for dynamically implementing application function | |
| US9235586B2 (en) | Reputation checking obtained files | |
| US9275006B2 (en) | Configuration file updater | |
| CN102830992B (en) | Plug-in loading method and system | |
| US10324826B2 (en) | Developer channel compliance | |
| CN103647816A (en) | Method and device for upgrading application software | |
| CN103595774A (en) | System application uninstalling method and device with terminal based on server side | |
| WO2014106489A1 (en) | Method and system for processing browser crash information | |
| WO2017166446A1 (en) | Vulnerability-fixing method and device | |
| WO2011088714A1 (en) | Method, device and system for running application | |
| JP2015508549A (en) | Identify Trojanized applications for mobile environments | |
| CN105426761B (en) | A kind of recognition methods of illegal application and mobile terminal | |
| WO2015058574A1 (en) | Method and apparatus for implementing push notification of extensive application program | |
| WO2017071207A1 (en) | Application installation method, corresponding apparatus, and application installation system | |
| CN103632096A (en) | Method and device for carrying out safety detection on equipment | |
| CN104699511A (en) | Plug-in upgrading method and plug-in upgrading device | |
| CN104125547A (en) | Short message processing method and device | |
| CN105554137B (en) | A kind of standby system and method | |
| CN104598806A (en) | Method and device for registering detecting | |
| CN104850775A (en) | Method and device for assessing safety of application program | |
| US20250053966A1 (en) | Method for signing application, and service platform | |
| CN106709281B (en) | Patch granting and acquisition methods, device | |
| CN104346460B (en) | Carry out the method, apparatus and browser client of file download |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20150401 |