WO2017020460A1 - 一种集成插件的方法和装置 - Google Patents
一种集成插件的方法和装置 Download PDFInfo
- Publication number
- WO2017020460A1 WO2017020460A1 PCT/CN2015/096389 CN2015096389W WO2017020460A1 WO 2017020460 A1 WO2017020460 A1 WO 2017020460A1 CN 2015096389 W CN2015096389 W CN 2015096389W WO 2017020460 A1 WO2017020460 A1 WO 2017020460A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- integrated
- plug
- plugin
- host application
- instruction
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
Definitions
- the present invention relates to the field of computer technologies, and in particular, to a method and apparatus for integrating an plug-in.
- the plug-in method is generally used to solve this problem.
- more plug-ins will be integrated into the application.
- they need a whole set of process technical processing to be integrated into the host application. For example, you need to manually put the developed plug-in apk package on the sd card of the mobile device. After the placement is successful, you need to manually open the host application, click Install, and the installation is successful before the plug-in integration process can be completed.
- click Install you need to manually open the host application, click Install, and the installation is successful before the plug-in integration process can be completed.
- there are several manual operations which are cumbersome, time-consuming, and error-prone, which is not conducive to the developer's experience.
- a method of integrating an insert comprising the following steps:
- c sends an instruction to the mobile device to cause the host application therein to obtain the integration to be integrated from the designated location of the mobile device and integrate to the host application according to the instructions.
- an integrated device for an integrated plug-in comprising:
- a reading device for reading a specified location of the plug-in to be integrated into the computer device
- a pushing device configured to push the to-be-integrated plug-in to a specified location of the corresponding mobile device from a specified location of the computer device;
- the instruction device is configured to send an instruction to the mobile device, so that the host application therein obtains the to-be-integrated plug-in from the designated location of the mobile device according to the instruction and integrates into the host application.
- the present invention reads a specified location of the to-be-integrated plug-in to the computer device in the computer device, and pushes the to-be-integrated plug-in to the designated location of the corresponding mobile device from the specified location of the computer device, and sends Directing to the mobile device, so that the host application therein obtains the to-be-integrated plug-in from the designated location of the mobile device according to the instruction and integrates into the host application, and efficiently and accurately integrates the plug-in, thereby improving the user.
- the experience of using From the user's point of view, plug-in integration can be completed in one step. The user types the tool name in the command line of the computer device.
- the parameter is the path of the plug-in to be integrated.
- the tool name is, for example, the tool name of the integrated plug-in written by the user.
- the invention automatically implements the integration of the plug-in into the host application, improves the efficiency of the plug-in integration, and improves the user experience.
- FIG. 1 is a schematic structural diagram of an apparatus for integrating an insert according to an embodiment of the present invention
- FIG. 2 is a schematic flow chart of a method for integrating an insert according to another embodiment of the present invention.
- Computer device also referred to as “computer” in the context, is meant an intelligent electronic device that can perform predetermined processing, such as numerical calculations and/or logical calculations, by running a predetermined program or instruction, which can include a processor and The memory is executed by the processor to execute a predetermined process pre-stored in the memory to execute a predetermined process, or is executed by hardware such as an ASIC, an FPGA, a DSP, or the like, or a combination of the two.
- Computer devices include, but are not limited to, servers, personal computers, laptops, tablets, and the like.
- the computer device includes a user device and a network device.
- the user equipment includes, but is not limited to, a personal computer, a notebook computer, a tablet computer, and the like;
- the network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud computing based A cloud composed of a large number of computers or network servers, where cloud computing is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
- the computer device can be operated separately to implement the present invention, and can also access the network and operate through interaction with other computer devices in the network.
- the present invention has been achieved.
- the network in which the computer device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
- the user equipment, the network equipment, the network, and the like are merely examples, and other existing or future possible computer equipment or networks, such as those applicable to the present invention, are also included in the scope of the present invention. It is included here by reference.
- FIG. 1 is a schematic structural diagram of an apparatus for integrating an insert according to an embodiment of the present invention.
- the integrated device 1 includes a reading device 101, a pushing device 102, and an instruction device 103.
- the reading device 101 reads the specified location of the plug-in to be integrated into the computer device.
- the reading device 101 reads, for example, the apk information of the plug-in to be integrated, and further saves the plug-in to be integrated to a specified location of the computer device, for example, to a local configuration file of the computer device. .
- the reading device 101 can be implemented, for example, by writing a Java tool that reads the plug-in apk information, and the Java tool reads the package name of the plug-in apk and saves it in the local configuration file.
- the pushing device 102 pushes the to-be-integrated plug-in to a designated location of the corresponding mobile device from a specified location of the computer device.
- the pushing device 102 pushes the to-be-integrated plug-in stored in the specified location from the designated location of the computer device to a designated location of the corresponding mobile device, such as to a specified directory of the sd card of the mobile device.
- the push device 102 pushes the to-be-integrated plug-in apk to a specified directory of the sd card of the mobile device, for example, using the adb tool of the Android system.
- the instruction device 103 sends an instruction to the mobile device to cause the host application therein to obtain the integration to be integrated from the designated location of the mobile device and integrate to the host application according to the instruction.
- the instruction device 103 sends an instruction to the corresponding mobile device, for example, sending a shell command to the mobile device, so that the host application in the mobile device obtains the to-be-integrated plug-in from the designated location of the mobile device according to the instruction. And integrate the plugin into the host application.
- the host application is preset with an installation function, and when the host application receives the instruction, the plug-in to be integrated is installed to the host application, thereby implementing integration of the plug-in to be integrated.
- the instruction device 103 also sends an instruction to the mobile device to launch the host application.
- the instruction device 103 first sends an instruction to the mobile device, for example, sending a shell command to the mobile device, launching a host application in the mobile device, and then the instruction device 103 sends an instruction to the mobile device such that the mobile
- the host application in the device is in the shell environment, and according to the instruction, the plug-in to be integrated is automatically obtained from the designated location of the mobile device, and the plug-in is installed to the host application, thereby implementing integration of the plug-in to be integrated.
- the instruction to start the host application sent by the instruction device 103 and the instruction to enable the host application to install the plug-in may be two separate instructions, or may be an integrated instruction.
- plug-in integration can be completed in one step.
- the user types the tool name in the command line of the computer device.
- the parameter is the path of the plug-in to be integrated.
- the tool name is, for example, an integrated plug-in written by the user.
- the integrated device 1 reads the specified location to be integrated into the computer device, and pushes the to-be-integrated plug-in to the corresponding mobile device from the designated location of the computer device.
- the host application in the mobile device obtains the to-be-integrated plug-in from a specified location of the mobile device according to the instruction, and automatically installs, and integrates the plug-in to be integrated into the host
- the application improves the efficiency of plug-in integration and improves the user experience.
- the reading device 101 also changes the plug-in name of the plug-in to be integrated according to the plug-in to be overwritten.
- the to-be-integrated plug-in may be used to cover an existing plug-in in the host application, and the reading device 101 may change the plug-in name of the plug-in to be integrated according to the plug-in to be overwritten, for example, the The plugin name of the integrated plugin is changed to be the same as the plugin name of the plugin to be overwritten, and after the host application integrates the plugin to be integrated into the host application, the plugin to be integrated can overwrite the plugin to be overwritten.
- the reading device 101 reads the apk information of the plug-in to be integrated, and further changes the plug-in name of the plug-in to be integrated to match the plug-in name of the plug-in to be overwritten, and then saves the plug-in to be integrated after the changed name to
- the specified location of the computer device for example, is saved to a local profile of the computer device.
- the integrated device 1 further comprises a test device (not shown).
- the testing device tests the plug-in to be integrated according to the host application after the plug-in is integrated.
- the test device tests the plug-in to be integrated according to the host application after integrating the plug-in to be integrated.
- the method of the test is performed, for example, according to an existing test method.
- the integrated device 1 further comprises a feedback device (not shown).
- the feedback device provides feedback information to the corresponding user according to the integration result.
- the host application has certain integration results for the integration of the plug-in to be integrated. For example, if the integration succeeds or the integration fails, the feedback device provides corresponding feedback information to the corresponding user according to the integration result to prompt the user whether the integration is successful. Further, if the integration fails, the feedback device may further feed back feedback information such as the cause of the failure, how to proceed to the next step, or return to the previous step.
- FIG. 2 is a schematic flow chart of a method for integrating an insert according to another embodiment of the present invention.
- step S201 the integrated device 1 reads the specified location of the plug-in to be integrated into the computer device.
- the integrated device 1 reads, for example, the apk information of the plug-in to be integrated, and further saves the plug-in to be integrated to a designated location of the computer device, for example, to the computer device. In the local configuration file.
- the integrated device 1 can be implemented, for example, by writing a Java tool that reads the plug-in apk information, and the Java tool reads the package name of the plug-in apk and saves it in the local configuration file.
- step S202 the integrated device 1 pushes the to-be-integrated plug-in to a specified location of the corresponding mobile device from a specified location of the computer device.
- step S202 the integrated device 1 pushes the to-be-integrated plug-in stored in the specified location to a specified location of the corresponding mobile device from a specified location of the computer device, such as a designation of an sd card pushed to the mobile device. Under contents.
- step S202 the integrated device 1 pushes the to-be-integrated plug-in apk to, for example, using the adb tool of the Android system.
- the mobile device's sd card is under the specified directory.
- step S203 the integration device 1 sends an instruction to the mobile device to enable the host application therein to obtain the integration to be integrated from the designated location of the mobile device and integrate to the host application according to the instruction.
- step S203 the integrated device 1 sends an instruction to the corresponding mobile device, for example, sending a shell command to the mobile device, so that the host application in the mobile device is from the designated location of the mobile device according to the instruction.
- the integrated device 1 sends an instruction to the corresponding mobile device, for example, sending a shell command to the mobile device, so that the host application in the mobile device is from the designated location of the mobile device according to the instruction.
- the host application is preset with an installation function, and when the host application receives the instruction, the plug-in to be integrated is installed to the host application, thereby implementing integration of the plug-in to be integrated.
- the integrated device 1 also sends an instruction to the mobile device to launch the host application.
- the integrated device 1 first sends an instruction to the mobile device, for example, sends a shell command to the mobile device, starts a host application in the mobile device, and then, the integrated device 1 sends an instruction to the mobile device.
- the device enables the host application in the mobile device to automatically obtain the plug-in to be integrated from the specified location of the mobile device according to the instruction, and install the plug-in to the host application, thereby implementing the plug-in to be integrated. Integration.
- step S203 the instruction to start the host application sent by the integrated device 1 and the instruction to enable the host application to install the plug-in may be two separate instructions, or may be an integrated instruction.
- plug-in integration can be completed in one step.
- the user types the tool name in the command line of the computer device.
- the parameter is the path of the plug-in to be integrated.
- the tool name is, for example, an integrated plug-in written by the user.
- the integrated device 1 reads the specified location to be integrated into the computer device, and pushes the to-be-integrated plug-in to the corresponding mobile device from the designated location of the computer device.
- the host application in the mobile device obtains the to-be-integrated plug-in from a specified location of the mobile device according to the instruction, and automatically installs, and integrates the plug-in to be integrated into the host
- the application improves the efficiency of plug-in integration and improves the user experience.
- the integration device 1 also changes the plug-in name of the plug-in to be integrated according to the plug-in to be overwritten.
- the to-be-integrated plug-in may be used to cover an existing plug-in in the host application.
- the integration device 1 may change the plug-in name of the plug-in to be integrated according to the plug-in to be overwritten, for example, The plug-in name of the plug-in to be integrated is changed to be the same as the plug-in name of the plug-in to be overwritten, and after the host application integrates the plug-in to be integrated into the host application, the plug-in to be integrated can overwrite the plug-in to be overwritten. .
- step S201 the integration device 1 reads the apk information of the plug-in to be integrated, and further, changes the plug-in name of the plug-in to be integrated to be the same as the plug-in name of the plug-in to be overwritten, and then, after the name is changed
- the integrated plugin is saved to a specific location on the computer device, for example, to a local profile of the computer device.
- the method further comprises a step S204 (not shown).
- step S204 the integration device 1 tests the to-be-integrated plug-in according to the host application after the integration of the plug-in to be integrated.
- step S204 the integration device 1 is to be integrated according to the host application after integrating the plug-in to be integrated.
- the plugin is tested.
- the method of the test is performed, for example, according to an existing test method.
- the method further comprises a step S205 (not shown).
- step S205 the set The device 1 provides feedback information to the corresponding user based on the integration result.
- the host application has certain integration results for the integration of the plug-in to be integrated, for example, integration success or integration failure.
- the integration device 1 provides corresponding feedback information to the corresponding user according to the integration result, to prompt Whether the user is successfully integrated. Further, if the integration fails, in step S205, the integrated device 1 may further feed back feedback information such as the reason for the failure, how to proceed to the next step or return to the previous step.
- the present invention can be implemented in software and/or a combination of software and hardware.
- the various devices of the present invention can be implemented using an application specific integrated circuit (ASIC) or any other similar hardware device.
- the software program of the present invention may be executed by a processor to implement the steps or functions described above.
- the software program (including related data structures) of the present invention can be stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk and the like.
- some of the steps or functions of the present invention may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.
- a method of integrating a plugin comprising the steps of:
- c sends an instruction to the mobile device to cause the host application therein to obtain the integration to be integrated from the designated location of the mobile device and integrate to the host application according to the instructions.
- step a further comprises:
- step c further comprises:
- An integrated device with an integrated plugin wherein the integrated device comprises:
- a reading device for reading a specified location of the plug-in to be integrated into the computer device
- a pushing device configured to push the to-be-integrated plug-in to a specified location of the corresponding mobile device from a specified location of the computer device;
- the instruction device is configured to send an instruction to the mobile device, so that the host application therein obtains the to-be-integrated plug-in from the designated location of the mobile device according to the instruction and integrates into the host application.
- a testing device configured to: according to the host application after integrating the plug-in to be integrated To be integrated with the plugin for testing.
- command device is further configured to:
- the feedback device is configured to provide feedback information to the corresponding user according to the integration result.
- a computer readable storage medium storing computer code, the method of any one of clauses 1 to 5 being executed when the computer code is executed.
- a computer device comprising a memory and a processor, the memory storing computer code, the processor being configured to perform any one of clauses 1 to 5 by executing the computer code Said method.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
一种集成插件的方法和装置。在计算机设备中读取待集成插件至计算机设备的指定位置(S201),自该计算机设备的指定位置将该待集成插件推送至对应的移动设备的指定位置(S202),发送指令至该移动设备,以使其中的宿主应用根据该指令,自该移动设备的指定位置获得该待集成插件并集成至该宿主应用(S203),高效、准确地集成插件。从用户角度来看,只需要一步就可以完成插件集成,用户在计算机设备的命令行中键入工具名称,参数即是待集成插件的路径,该工具名称例如是用户所编写的集成插件的工具名称,则在用户完成该步骤后,即自动实现了将插件集成至宿主应用,提高了插件集成的效率,提升了用户的使用体验。
Description
相关申请的交叉引用
本申请享有2015年07月31日提交的专利申请号为201510464079.8、名称为“一种集成插件的方法和装置”的中国专利申请的优先权,该在先申请的内容以引用方式合并于此。
本发明涉及计算机技术领域,尤其涉及一种集成插件的方法和装置。
随着移动互联网时代的到来,使用移动设备的人越来越多,改变了人们的生活方式。移动设备作为人们交流沟通的工具,在当前大趋势下,应用非常广泛。移动设备的操作系统以Android和iOS为主,庞大的人群对以Android作为操作系统的移动设备有着强大的需求,这些移动设备上的各类丰富的应用为了提供强大的功能,需要运行更多的程序,导致了应用中方法数剧增。当一个应用中的方法数超过了65536时,程序就不能够运行。
为了解决Android系统中方法数限制的问题,一般采用插件的方式来解决这个问题。以插件的方式来解决,将会集成更多的插件到应用中,这些插件开发完成之后,需要一整套流程的技术处理才能集成到宿主应用中。例如,需要手动将开发好了的插件apk包,放置到移动设备的sd卡上,放置成功之后,需要手动打开宿主应用,点击安装,安装成功之后,才能完成插件的集成过程。整个插件集成过程,存在几个手动的操作,较为繁琐、耗时、且容易出错,不利于开发人员的使用体验。
因此,如何高效、准确地集成插件,成为本领域技术人员亟需解决的问题之一。
发明内容
本发明的目的是提供一种集成插件的方法和装置。
根据本发明的一个方面,提供了一种集成插件的方法,其中,该方法包括以下步骤:
a读取待集成插件至计算机设备的指定位置;
b自所述计算机设备的指定位置将所述待集成插件推送至对应的移动设备的指定位置;
c发送指令至所述移动设备,以使其中的宿主应用根据所述指令,自所述移动设备的指定位置获得所述待集成插件并集成至所述宿主应用。
根据本发明的另一个方面,还提供了一种集成插件的集成装置,其中,该集成装置包括:
读取装置,用于读取待集成插件至计算机设备的指定位置;
推送装置,用于自所述计算机设备的指定位置将所述待集成插件推送至对应的移动设备的指定位置;
指令装置,用于发送指令至所述移动设备,以使其中的宿主应用根据所述指令,自所述移动设备的指定位置获得所述待集成插件并集成至所述宿主应用。
与现有技术相比,本发明在计算机设备中读取待集成插件至计算机设备的指定位置,自所述计算机设备的指定位置将所述待集成插件推送至对应的移动设备的指定位置,发送指令至所述移动设备,以使其中的宿主应用根据所述指令,自所述移动设备的指定位置获得所述待集成插件并集成至所述宿主应用,高效、准确地集成插件,提升了用户的使用体验。从用户角度来看,只需要一步就可以完成插件集成,用户在计算机设备的命令行中键入工具名称,参数即是待集成插件的路径,该工具名称例如是用户所编写的集成插件的工具名称,则在用户完成该步骤后,本发明即自动实现了将插件集成至宿主应用,提高了插件集成的效率,提升了用户的使用体验。
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:
图1为本发明一个实施例的用于集成插件的装置的结构示意图;
图2为本发明另一个实施例的用于集成插件的方法的流程示意图。
附图中相同或相似的附图标记代表相同或相似的部件。
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。
在上下文中所称“计算机设备”,也称为“电脑”,是指可以通过运行预定程序或指令来执行数值计算和/或逻辑计算等预定处理过程的智能电子设备,其可以包括处理器与存储器,由处理器执行在存储器中预存的存续指令来执行预定处理过程,或是由ASIC、FPGA、DSP等硬件执行预定处理过程,或是由上述二者组合来实现。计算机设备包括但不限于服务器、个人电脑、笔记本电脑、平板电脑等。
所述计算机设备包括用户设备与网络设备。其中,所述用户设备包括但不限于个人电脑、笔记本电脑、平板电脑等;所述网络设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量计算机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。其中,所述计算机设备可单独运行来实现本发明,也可接入网络并通过与网络中的其他计算机设备的交互操作来
实现本发明。其中,所述计算机设备所处的网络包括但不限于互联网、广域网、城域网、局域网、VPN网络等。
需要说明的是,所述用户设备、网络设备和网络等仅为举例,其他现有的或今后可能出现的计算机设备或网络如可适用于本发明,也应包含在本发明保护范围以内,并以引用方式包含于此。
后面所讨论的方法(其中一些通过流程图示出)可以通过硬件、软件、固件、中间件、微代码、硬件描述语言或者其任意组合来实施。当用软件、固件、中间件或微代码来实施时,用以实施必要任务的程序代码或代码段可以被存储在机器或计算机可读介质(比如存储介质)中。(一个或多个)处理器可以实施必要的任务。
这里所公开的具体结构和功能细节仅仅是代表性的,并且是用于描述本发明的示例性实施例的目的。但是本发明可以通过许多替换形式来具体实现,并且不应当被解释成仅仅受限于这里所阐述的实施例。
应当理解的是,虽然在这里可能使用了术语“第一”、“第二”等等来描述各个单元,但是这些单元不应当受这些术语限制。使用这些术语仅仅是为了将一个单元与另一个单元进行区分。举例来说,在不背离示例性实施例的范围的情况下,第一单元可以被称为第二单元,并且类似地第二单元可以被称为第一单元。这里所使用的术语“和/或”包括其中一个或更多所列出的相关联项目的任意和所有组合。
应当理解的是,当一个单元被称为“连接”或“耦合”到另一单元时,其可以直接连接或耦合到所述另一单元,或者可以存在中间单元。与此相对,当一个单元被称为“直接连接”或“直接耦合”到另一单元时,则不存在中间单元。应当按照类似的方式来解释被用于描述单元之间的关系的其他词语(例如“处于...之间”相比于“直接处于...之间”,“与...邻近”相比于“与...直接邻近”等等)。
这里所使用的术语仅仅是为了描述具体实施例而不意图限制示例性实施例。除非上下文明确地另有所指,否则这里所使用的单数形式“一个”、“一项”还意图包括复数。还应当理解的是,这里所使
用的术语“包括”和/或“包含”规定所陈述的特征、整数、步骤、操作、单元和/或组件的存在,而不排除存在或添加一个或更多其他特征、整数、步骤、操作、单元、组件和/或其组合。
还应当提到的是,在一些替换实现方式中,所提到的功能/动作可以按照不同于附图中标示的顺序发生。举例来说,取决于所涉及的功能/动作,相继示出的两幅图实际上可以基本上同时执行或者有时可以按照相反的顺序来执行。
下面结合附图对本发明作进一步详细描述。
图1为本发明一个实施例的用于集成插件的装置的结构示意图。集成装置1包括读取装置101、推送装置102和指令装置103。
其中,读取装置101读取待集成插件至计算机设备的指定位置。
具体地,对于待集成插件,读取装置101例如读取该待集成插件的apk信息,进而,将该待集成插件保存至计算机设备的指定位置,例如,保存至该计算机设备的本地配置文件中。
在此,该读取装置101例如可以通过编写一个读取插件apk信息的Java工具来实现,该Java工具将插件apk的包名读取出来,保存在本地配置文件中。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何其他现有的或今后可能出现的读取待集成插件的方式如可适用于本发明,也应包含在本发明保护范围以内,并在此以引用的方式包含于此。
推送装置102自所述计算机设备的指定位置将所述待集成插件推送至对应的移动设备的指定位置。
具体地,推送装置102自该计算机设备的指定位置,将保存在该指定位置的待集成插件推送至对应的移动设备的指定位置,如推送至该移动设备的sd卡的指定目录下。
在此,假设该移动设备使用Android系统,则该推送装置102例如使用Android系统的adb工具,将该待集成插件apk推送至该移动设备的sd卡的指定目录下。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何其他现有的或今后可能出现的推送待集成插件的方式如可适用于本发明,也应包含在本发明保护范围以内,并在此以引用的方式包含于此。
指令装置103发送指令至所述移动设备,以使其中的宿主应用根据所述指令,自所述移动设备的指定位置获得所述待集成插件并集成至所述宿主应用。
具体地,指令装置103发送指令至该对应的移动设备,例如,发送shell指令至该移动设备,以使该移动设备中的宿主应用根据该指令,自该移动设备的指定位置获得该待集成插件,并将该插件集成至该宿主应用。
在此,该宿主应用中预置有安装功能,当该宿主应用接收到指令之后,即将该待集成插件安装至该宿主应用,从而实现对该待集成插件的集成。
优选地,所述指令装置103还发送指令至所述移动设备以启动所述宿主应用。
具体地,该指令装置103首先发送指令至该移动设备,例如,发送shell指令至该移动设备,启动该移动设备中的宿主应用,接着,该指令装置103发送指令至该移动设备,使得该移动设备中的宿主应用在shell环境下,根据该指令,自动从该移动设备的指定位置获得该待集成插件,并将该插件安装至该宿主应用,从而实现对该待集成插件的集成。
在此,该指令装置103所发送的启动宿主应用的指令和使宿主应用安装插件的指令可以是分开的两条指令,也可以是集成在一起的一条指令。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何其他现有的或今后可能出现的集成插件至宿主应用的方式如可适用于本发明,也应包含在本发明保护范围以内,并在此以引用的方式包含于此。
在此,从用户角度来看,只需要一步就可以完成插件集成,用户在计算机设备的命令行中键入工具名称,参数即是待集成插件的路径,该工具名称例如是用户所编写的集成插件的工具名称,则在用户完成该步骤后,集成装置1即读取待集成插件至计算机设备的指定位置,自所述计算机设备的指定位置将所述待集成插件推送至对应的移动设备的指定位置,发送指令至所述移动设备,该移动设备中的宿主应用根据所述指令,自所述移动设备的指定位置获得所述待集成插件,并自动安装,将该待集成插件集成至该宿主应用,提高了插件集成的效率,提升了用户的使用体验。
优选地,所述读取装置101还根据欲覆盖的插件,更改所述待集成插件的插件名称。
具体地,该待集成插件可以用来覆盖该宿主应用中某个已有的插件,则该读取装置101可以根据该欲覆盖的插件,更改该待集成插件的插件名称,例如,将该待集成插件的插件名称更改为与改欲覆盖的插件的插件名称一致,则当该宿主应用将该待集成插件集成至该宿主应用之后,该待集成插件可以覆盖掉改欲覆盖的插件。
例如,读取装置101读取待集成插件的apk信息,进而,将该待集成插件的插件名称更改为与欲覆盖的插件的插件名称一致,随后,将该更改名称后的待集成插件保存至计算机设备的指定位置,例如,保存至该计算机设备的本地配置文件中。
优选地,该集成装置1还包括测试装置(未示出)。该测试装置根据集成所述待集成插件后的宿主应用,对所述待集成插件进行测试。
具体地,宿主应用在集成完成该待集成插件之后,还需要测试使用该待集成插件的功能,因此,测试装置根据集成该待集成插件后的宿主应用,对该待集成插件进行测试。该测试的方法例如根据现有的测试方式进行。
优选地,该集成装置1还包括反馈装置(未示出)。该反馈装置根据集成结果,将反馈信息提供至对应的用户。
具体地,宿主应用对于待集成插件的集成具有一定的集成结果,
例如,集成成功或集成失败,反馈装置根据集成结果,将对应的反馈信息提供至对应的用户,以提示该用户是否集成成功。进一步地,若集成失败,该反馈装置还可以进一步将失败原因、如何进行下一步或返回上一步等反馈信息反馈至该用户。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何其他现有的或今后可能出现的提供反馈信息的方式如可适用于本发明,也应包含在本发明保护范围以内,并在此以引用的方式包含于此。
图2为本发明另一个实施例的用于集成插件的方法的流程示意图。
在步骤S201中,集成装置1读取待集成插件至计算机设备的指定位置。
具体地,对于待集成插件,在步骤S201中,集成装置1例如读取该待集成插件的apk信息,进而,将该待集成插件保存至计算机设备的指定位置,例如,保存至该计算机设备的本地配置文件中。
在此,在步骤S201中,集成装置1例如可以通过编写一个读取插件apk信息的Java工具来实现,该Java工具将插件apk的包名读取出来,保存在本地配置文件中。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何其他现有的或今后可能出现的读取待集成插件的方式如可适用于本发明,也应包含在本发明保护范围以内,并在此以引用的方式包含于此。
在步骤S202中,集成装置1自所述计算机设备的指定位置将所述待集成插件推送至对应的移动设备的指定位置。
具体地,在步骤S202中,集成装置1自该计算机设备的指定位置,将保存在该指定位置的待集成插件推送至对应的移动设备的指定位置,如推送至该移动设备的sd卡的指定目录下。
在此,假设该移动设备使用Android系统,则在步骤S202中,集成装置1例如使用Android系统的adb工具,将该待集成插件apk推送至
该移动设备的sd卡的指定目录下。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何其他现有的或今后可能出现的推送待集成插件的方式如可适用于本发明,也应包含在本发明保护范围以内,并在此以引用的方式包含于此。
在步骤S203中,集成装置1发送指令至所述移动设备,以使其中的宿主应用根据所述指令,自所述移动设备的指定位置获得所述待集成插件并集成至所述宿主应用。
具体地,在步骤S203中,集成装置1发送指令至该对应的移动设备,例如,发送shell指令至该移动设备,以使该移动设备中的宿主应用根据该指令,自该移动设备的指定位置获得该待集成插件,并将该插件集成至该宿主应用。
在此,该宿主应用中预置有安装功能,当该宿主应用接收到指令之后,即将该待集成插件安装至该宿主应用,从而实现对该待集成插件的集成。
优选地,在步骤S203中,集成装置1还发送指令至所述移动设备以启动所述宿主应用。
具体地,在步骤S203中,集成装置1首先发送指令至该移动设备,例如,发送shell指令至该移动设备,启动该移动设备中的宿主应用,接着,该在集成装置1发送指令至该移动设备,使得该移动设备中的宿主应用在shell环境下,根据该指令,自动从该移动设备的指定位置获得该待集成插件,并将该插件安装至该宿主应用,从而实现对该待集成插件的集成。
在此,在步骤S203中,集成装置1所发送的启动宿主应用的指令和使宿主应用安装插件的指令可以是分开的两条指令,也可以是集成在一起的一条指令。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何其他现有的或今后可能出现的集成插件至宿主应用的方式如可适用于本发明,也
应包含在本发明保护范围以内,并在此以引用的方式包含于此。
在此,从用户角度来看,只需要一步就可以完成插件集成,用户在计算机设备的命令行中键入工具名称,参数即是待集成插件的路径,该工具名称例如是用户所编写的集成插件的工具名称,则在用户完成该步骤后,集成装置1即读取待集成插件至计算机设备的指定位置,自所述计算机设备的指定位置将所述待集成插件推送至对应的移动设备的指定位置,发送指令至所述移动设备,该移动设备中的宿主应用根据所述指令,自所述移动设备的指定位置获得所述待集成插件,并自动安装,将该待集成插件集成至该宿主应用,提高了插件集成的效率,提升了用户的使用体验。
优选地,在步骤S201中,集成装置1还根据欲覆盖的插件,更改所述待集成插件的插件名称。
具体地,该待集成插件可以用来覆盖该宿主应用中某个已有的插件,则在步骤S201中,集成装置1可以根据该欲覆盖的插件,更改该待集成插件的插件名称,例如,将该待集成插件的插件名称更改为与改欲覆盖的插件的插件名称一致,则当该宿主应用将该待集成插件集成至该宿主应用之后,该待集成插件可以覆盖掉改欲覆盖的插件。
例如,在步骤S201中,集成装置1读取待集成插件的apk信息,进而,将该待集成插件的插件名称更改为与欲覆盖的插件的插件名称一致,随后,将该更改名称后的待集成插件保存至计算机设备的指定位置,例如,保存至该计算机设备的本地配置文件中。
优选地,该方法还包括步骤S204(未示出)。在步骤S204中,集成装置1根据集成所述待集成插件后的宿主应用,对所述待集成插件进行测试。
具体地,宿主应用在集成完成该待集成插件之后,还需要测试使用该待集成插件的功能,因此,在步骤S204中,集成装置1根据集成该待集成插件后的宿主应用,对该待集成插件进行测试。该测试的方法例如根据现有的测试方式进行。
优选地,该方法还包括步骤S205(未示出)。在步骤S205中,集
成装置1根据集成结果,将反馈信息提供至对应的用户。
具体地,宿主应用对于待集成插件的集成具有一定的集成结果,例如,集成成功或集成失败,在步骤S205中,集成装置1根据集成结果,将对应的反馈信息提供至对应的用户,以提示该用户是否集成成功。进一步地,若集成失败,在步骤S205中,集成装置1还可以进一步将失败原因、如何进行下一步或返回上一步等反馈信息反馈至该用户。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何其他现有的或今后可能出现的提供反馈信息的方式如可适用于本发明,也应包含在本发明保护范围以内,并在此以引用的方式包含于此。
需要注意的是,本发明可在软件和/或软件与硬件的组合体中被实施,例如,本发明的各个装置可采用专用集成电路(ASIC)或任何其他类似硬件设备来实现。在一个实施例中,本发明的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本发明的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本发明的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个步骤或功能的电路。
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。
在权利要求书中规定了各个实施例的各个方面。在下列编号条款中规定了各个实施例的这些和其他方面:
1.一种集成插件的方法,其中,该方法包括以下步骤:
a读取待集成插件至计算机设备的指定位置;
b自所述计算机设备的指定位置将所述待集成插件推送至对应的移动设备的指定位置;
c发送指令至所述移动设备,以使其中的宿主应用根据所述指令,自所述移动设备的指定位置获得所述待集成插件并集成至所述宿主应用。
2.根据条款1所述的方法,其中,所述步骤a还包括:
-根据欲覆盖的插件,更改所述待集成插件的插件名称。
3.根据权利要求1或2所述的方法,其中,该方法还包括:
-根据集成所述待集成插件后的宿主应用,对所述待集成插件进行测试。
4.根据条款1所述的方法,其中,所述步骤c还包括:
-发送指令至所述移动设备以启动所述宿主应用。
5.根据条款1所述的方法,其中,该方法还包括:
-根据集成结果,将反馈信息提供至对应的用户。
6.一种集成插件的集成装置,其中,该集成装置包括:
读取装置,用于读取待集成插件至计算机设备的指定位置;
推送装置,用于自所述计算机设备的指定位置将所述待集成插件推送至对应的移动设备的指定位置;
指令装置,用于发送指令至所述移动设备,以使其中的宿主应用根据所述指令,自所述移动设备的指定位置获得所述待集成插件并集成至所述宿主应用。
7.根据条款6所述的集成装置,其中,所述读取装置还用于:
-根据欲覆盖的插件,更改所述待集成插件的插件名称。
8.根据条款6或7所述的集成装置,其中,该集成装置还包括:
测试装置,用于根据集成所述待集成插件后的宿主应用,对所述
待集成插件进行测试。
9.根据条款6所述的集成装置,其中,所述指令装置还用于:
-发送指令至所述移动设备以启动所述宿主应用。
10.根据条款6所述的集成装置,其中,该集成装置还包括:
反馈装置,用于根据集成结果,将反馈信息提供至对应的用户。
11.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机代码,当所述计算机代码被执行时,如条款1至5中任一项所述的方法被执行。
12.一种计算机程序产品,当所述计算机程序产品被计算机设备执行时,如条款1至5中任一项所述的方法被执行。
13.一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器中存储有计算机代码,所述处理器被配置来通过执行所述计算机代码以执行如条款1至5中任一项所述的方法。
Claims (13)
- 一种集成插件的方法,其中,该方法包括以下步骤:a读取待集成插件至计算机设备的指定位置;b自所述计算机设备的指定位置将所述待集成插件推送至对应的移动设备的指定位置;c发送指令至所述移动设备,以使其中的宿主应用根据所述指令,自所述移动设备的指定位置获得所述待集成插件并集成至所述宿主应用。
- 根据权利要求1所述的方法,其中,所述步骤a还包括:-根据欲覆盖的插件,更改所述待集成插件的插件名称。
- 根据权利要求1或2所述的方法,其中,该方法还包括:-根据集成所述待集成插件后的宿主应用,对所述待集成插件进行测试。
- 根据权利要求1所述的方法,其中,所述步骤c还包括:-发送指令至所述移动设备以启动所述宿主应用。
- 根据权利要求1所述的方法,其中,该方法还包括:-根据集成结果,将反馈信息提供至对应的用户。
- 一种集成插件的集成装置,其中,该集成装置包括:读取装置,用于读取待集成插件至计算机设备的指定位置;推送装置,用于自所述计算机设备的指定位置将所述待集成插件推送至对应的移动设备的指定位置;指令装置,用于发送指令至所述移动设备,以使其中的宿主应用根据所述指令,自所述移动设备的指定位置获得所述待集成插件并集成至所述宿主应用。
- 根据权利要求6所述的集成装置,其中,所述读取装置还用于:-根据欲覆盖的插件,更改所述待集成插件的插件名称。
- 根据权利要求6或7所述的集成装置,其中,该集成装置还包 括:测试装置,用于根据集成所述待集成插件后的宿主应用,对所述待集成插件进行测试。
- 根据权利要求6所述的集成装置,其中,所述指令装置还用于:-发送指令至所述移动设备以启动所述宿主应用。
- 根据权利要求6所述的集成装置,其中,该集成装置还包括:反馈装置,用于根据集成结果,将反馈信息提供至对应的用户。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机代码,当所述计算机代码被执行时,如权利要求1至5中任一项所述的方法被执行。
- 一种计算机程序产品,当所述计算机程序产品被计算机设备执行时,如权利要求1至5中任一项所述的方法被执行。
- 一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器中存储有计算机代码,所述处理器被配置来通过执行所述计算机代码以执行如权利要求1至5中任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510464079.8A CN105045595A (zh) | 2015-07-31 | 2015-07-31 | 一种集成插件的方法和装置 |
CN201510464079.8 | 2015-07-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017020460A1 true WO2017020460A1 (zh) | 2017-02-09 |
Family
ID=54452160
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/096389 WO2017020460A1 (zh) | 2015-07-31 | 2015-12-04 | 一种集成插件的方法和装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105045595A (zh) |
WO (1) | WO2017020460A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112148414A (zh) * | 2020-09-30 | 2020-12-29 | 亮风台(上海)信息科技有限公司 | 界面的交互响应方法、系统及终端设备 |
CN112734453A (zh) * | 2019-10-28 | 2021-04-30 | 腾讯科技(深圳)有限公司 | 电子券领取方法、发放方法、装置、设备和存储介质 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105045595A (zh) * | 2015-07-31 | 2015-11-11 | 百度在线网络技术(北京)有限公司 | 一种集成插件的方法和装置 |
CN105786562A (zh) * | 2016-02-04 | 2016-07-20 | 百度在线网络技术(北京)有限公司 | 一种集成插件的方法和装置 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102609267A (zh) * | 2012-02-16 | 2012-07-25 | 深圳市酷开网络科技有限公司 | 基于安卓浏览器的插件管理方法及系统 |
US20130276053A1 (en) * | 2012-04-11 | 2013-10-17 | Mcafee, Inc. | System asset repository management |
CN104111844A (zh) * | 2013-04-19 | 2014-10-22 | 腾讯科技(深圳)有限公司 | 在移动终端内安装应用程序的方法及系统 |
CN105045595A (zh) * | 2015-07-31 | 2015-11-11 | 百度在线网络技术(北京)有限公司 | 一种集成插件的方法和装置 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030028869A1 (en) * | 2001-08-02 | 2003-02-06 | Drake Daniel R. | Method and computer program product for integrating non-redistributable software applications in a customer driven installable package |
CN101216771A (zh) * | 2007-12-29 | 2008-07-09 | 宇龙计算机通信科技(深圳)有限公司 | 一种通过个人电脑实现手机软件升级的方法、系统及装置 |
CN102314367A (zh) * | 2011-09-16 | 2012-01-11 | 福州博远无线网络科技有限公司 | PC端操作Android设备中应用程序的方法 |
CN102830997B (zh) * | 2012-08-17 | 2016-03-09 | 北京金山办公软件有限公司 | 一种插件安装的控制方法、装置及设备 |
-
2015
- 2015-07-31 CN CN201510464079.8A patent/CN105045595A/zh active Pending
- 2015-12-04 WO PCT/CN2015/096389 patent/WO2017020460A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102609267A (zh) * | 2012-02-16 | 2012-07-25 | 深圳市酷开网络科技有限公司 | 基于安卓浏览器的插件管理方法及系统 |
US20130276053A1 (en) * | 2012-04-11 | 2013-10-17 | Mcafee, Inc. | System asset repository management |
CN104111844A (zh) * | 2013-04-19 | 2014-10-22 | 腾讯科技(深圳)有限公司 | 在移动终端内安装应用程序的方法及系统 |
CN105045595A (zh) * | 2015-07-31 | 2015-11-11 | 百度在线网络技术(北京)有限公司 | 一种集成插件的方法和装置 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112734453A (zh) * | 2019-10-28 | 2021-04-30 | 腾讯科技(深圳)有限公司 | 电子券领取方法、发放方法、装置、设备和存储介质 |
CN112734453B (zh) * | 2019-10-28 | 2024-02-02 | 腾讯科技(深圳)有限公司 | 电子券领取方法、发放方法、装置、设备和存储介质 |
CN112148414A (zh) * | 2020-09-30 | 2020-12-29 | 亮风台(上海)信息科技有限公司 | 界面的交互响应方法、系统及终端设备 |
CN112148414B (zh) * | 2020-09-30 | 2024-05-31 | 亮风台(上海)信息科技有限公司 | 界面的交互响应方法、系统及终端设备 |
Also Published As
Publication number | Publication date |
---|---|
CN105045595A (zh) | 2015-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102402446B (zh) | 应用软件的安装方法和应用软件的安装装置 | |
US8738883B2 (en) | Snapshot creation from block lists | |
US9811369B2 (en) | Method and system for physical computer system virtualization | |
US8429645B2 (en) | Method for optimizing migration of software applications to address needs | |
JP6516730B2 (ja) | アプリケーションをバックアップ及び復元するための方法及び装置 | |
US8627310B2 (en) | Capturing multi-disk virtual machine images automatically | |
US11086662B2 (en) | Method and system of migrating applications to a cloud-computing environment | |
US20160378456A1 (en) | Method for offline updating virtual machine images | |
CN104866778A (zh) | 一种基于Linux内核的文档安全访问控制方法和装置 | |
CN107463388B (zh) | 一种uefi无盘启动方法 | |
WO2017020459A1 (zh) | 一种为宿主配置插件包的方法与装置 | |
RU2568294C2 (ru) | Способ автоматической установки приложения без участия человека | |
WO2017020460A1 (zh) | 一种集成插件的方法和装置 | |
US20120216184A1 (en) | Runtime code replacement | |
JP2012079130A (ja) | デバッグ支援プログラム、デバッグ支援装置、及びデバッグ支援方法 | |
US20150261766A1 (en) | Method and apparatus for determining a range of files to be migrated | |
US11150981B2 (en) | Fast recovery from failures in a chronologically ordered log-structured key-value storage system | |
CN113760306B (zh) | 安装软件的方法、装置、电子设备及存储介质 | |
US20130167148A1 (en) | Computing device and virtual machine operation control method | |
US20140089557A1 (en) | Image storage optimization in virtual environments | |
CN112527325B (zh) | 一种应用于超融合架构的部署方法及系统 | |
CN111683091A (zh) | 一种访问云主机控制台方法、装置、设备及存储介质 | |
CN109144948B (zh) | 应用文件定位的方法、装置、电子设备和存储器 | |
CN108984238A (zh) | 应用程序的手势处理方法、装置及电子设备 | |
WO2017096889A1 (zh) | 系统升降级的方法和装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15900229 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15900229 Country of ref document: EP Kind code of ref document: A1 |