WO2014183556A1 - 应用程序的处理方法和装置 - Google Patents

应用程序的处理方法和装置 Download PDF

Info

Publication number
WO2014183556A1
WO2014183556A1 PCT/CN2014/076484 CN2014076484W WO2014183556A1 WO 2014183556 A1 WO2014183556 A1 WO 2014183556A1 CN 2014076484 W CN2014076484 W CN 2014076484W WO 2014183556 A1 WO2014183556 A1 WO 2014183556A1
Authority
WO
WIPO (PCT)
Prior art keywords
port information
server
user equipment
named pipe
application processing
Prior art date
Application number
PCT/CN2014/076484
Other languages
English (en)
French (fr)
Inventor
郭伟
姚沛延
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2014183556A1 publication Critical patent/WO2014183556A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • G06F9/4413Plug-and-play [PnP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • G06F9/4486Formation of subprogram jump address
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Definitions

  • Embodiments of the present invention relate to the field of communications technologies, and in particular, to a method for processing an application program.
  • the server establishes a named pipe between the user equipments corresponding to the port information corresponding to the application processing request, where the named pipes of each user equipment are different, and the named pipe is the server process and one or more A one-way or two-way pipe for communication between the client processes; the server performs application processing on the user equipment corresponding to the named pipe through the named pipe.
  • the method further includes:
  • the server When the server receives the processing completion message sent by the user equipment through the named pipe, the server releases the port information corresponding to the user equipment corresponding to the named pipe by the named pipe.
  • the port information includes a port number and diagnostic service Diag port information; or the port The information includes the port number and debug bridge ADB port information.
  • an embodiment of the present invention provides a server, including:
  • a port information processing module configured to connect to at least one user equipment, and acquire and save port information of each of the user equipments
  • a receiving module configured to receive a startup application processing request sent by the user equipment, and a query module, configured to query port information of each user equipment saved by the port information processing module, and obtain a processing request with the application Corresponding port information;
  • Establishing a pipeline module configured to establish a named pipe between the user equipments corresponding to the port information corresponding to the application processing request, where the named pipes of each user equipment are different, the named pipeline is the server process and one One-way or two-way pipe for communication between multiple client processes;
  • the server further includes: a release module, configured to release the processing when the server receives the processing completion message sent by the user equipment by using the named pipe Name the port corresponding to the user equipment corresponding to the named pipe.
  • the processing method and device of the application program provided by the embodiment of the present invention acquires and saves the port information of each user equipment by connecting the server with the at least one user equipment, and then receives the startup application processing request sent by the user equipment, and queries and saves Port information of each user equipment, obtaining port information corresponding to the application processing request, and then establishing a named pipe between the user equipment corresponding to the port information corresponding to the application processing request, and finally the server corresponding to the named pipe through the named pipe
  • the user device performs application processing. Therefore, the server can simultaneously install, uninstall, and manage the application software for multiple user devices, thereby improving work efficiency.
  • Embodiment 1 is a flowchart of Embodiment 1 of a processing method of an application program according to the present invention
  • Embodiment 1 of a server according to the present invention is a schematic structural diagram of Embodiment 1 of a server according to the present invention.
  • FIG. 3 is a schematic structural diagram of Embodiment 2 of a server according to the present invention. detailed description
  • Embodiment 1 is a flowchart of Embodiment 1 of a method for processing an application of the present invention. As shown in FIG. 1, the method in this embodiment may include:
  • the server is connected to at least one user equipment, and obtains and saves port information of each user equipment.
  • the user equipment may be a terminal device connected to the server.
  • the mobile phone is used as an example, and the mobile phone is inserted into the server through a Universal Serial Bus (USB) port.
  • USB Universal Serial Bus
  • the server obtains and saves the port information of each mobile phone. Specifically, after the mobile phone is inserted into the server, the corresponding port is mapped in the server device manager, and the specific process can be collected by enumerating the registry. Information to all of these ports.
  • the port information includes a port number and a diagnostic service (Diagnostic servces, hereinafter referred to as Diag) port information, wherein the Diag is a bridge between the mobile phone and the server, and the information in the mobile phone can be obtained through the Diag; or the port information includes the port.
  • Diag Diagnostic servces, hereinafter referred to as Diag
  • Number and debug bridge (Android Debug Bridge, hereinafter referred to as: ADB) port information
  • ADB is a tool in the Android system, with this tool you can directly manage the android emulator or real andriod devices, such as mobile phones.
  • the server After the server obtains the port information of each mobile phone, the server starts the service service corresponding to each port number according to the automatic running (AutoRun) service of the mobile phone itself.
  • the service service is an executable file that is injected into the server after the Automn service of the mobile phone itself is started, and is used to operate the port of the mobile phone itself, that is, to
  • the port number is reported to the server. If the port in the port information obtained by the server cannot communicate with the server, it is determined that the server fails to find out the pair. The port should be.
  • the server receives the startup application processing request sent by the user equipment, and queries the saved port information of each user equipment, and obtains port information corresponding to the application processing request.
  • the server establishes a named pipe between the user equipment corresponding to the port information corresponding to the application processing request, where the named pipe of each user device is different, and the named pipe is a communication between the server process and one or more client processes.
  • One-way or two-way pipe One-way or two-way pipe.
  • the server when the server receives the startup application processing request sent by the user equipment, that is, after the application in the server detects the service service initiated by different mobile phones (that is, the mobile phone sends an application request to the server), the query saves.
  • Port information of each user equipment obtaining port information corresponding to the application processing request, and establishing a named pipe between the user equipments corresponding to the port information corresponding to the application processing request.
  • the port information since the port number in each port information corresponds to an independent service service, after the application in the server detects that the mobile phone corresponding to the port information starts the service service, the port information may be used according to the port information.
  • the mobile phone corresponding to the port information sends a command to open the port, thereby opening the port and establishing the command pipeline.
  • the mobile phone that has been transferred may be unplugged.
  • the application in the server may send a shutdown port command to the mobile phone corresponding to the port information, thereby closing the port, and Release the command pipeline.
  • a named pipe is a one-way or two-way pipe between a server process and one or more client processes, and the named pipe can be different between unrelated processes.
  • the server assigns a name to a named pipe. Any process can open the other end of the pipe by that name and communicate with the server process according to the given permissions.
  • the server processes the user equipment corresponding to the named pipe through a named pipe.
  • the server can perform data transmission through the port corresponding to each mobile phone to complete the application software. Installation and uninstallation.
  • the processing method of the application program provided by the embodiment obtains and stores the port information of each user equipment after the server is connected to the at least one user equipment, and then receives the startup application processing request sent by the user equipment, and queries each saved one. Port information of the user equipment, obtaining port information corresponding to the application processing request, and then establishing a named pipe between the user equipment corresponding to the port information corresponding to the application processing request, and finally the server corresponding to the named pipe by the named pipe Perform application processing. Therefore, the server can simultaneously install, uninstall, and manage the application software for multiple user devices, thereby improving work efficiency.
  • the method further includes:
  • the server When the server receives the processing completion message sent by the user equipment through the named pipe, the server releases the port information corresponding to the user equipment corresponding to the named pipe and the named pipe.
  • the transmission progress of each mobile phone may be inconsistent. Some mobile phones may complete the transmission first, and still occupy a USB port. At this time, the mobile phone that has been transmitted may be unplugged, and the mobile phone that is being transmitted is simultaneously Not affected. In this way, a port is released, and then the next mobile phone to be transmitted can be accessed. It should be noted that after accessing the next mobile phone to be transmitted, the server detects the port of the mobile phone to be transmitted, as in the above steps S101-S104.
  • the information when detecting the mobile phone launching application processing request corresponding to the port information, respectively requesting corresponding port information according to the application request and the application program, establishing a named pipe between the mobile phones corresponding to the port information, and finally passing the named pipe. Apply processing to the phone. In addition, the mobile phone that was originally transmitted will not be affected, so it can be repeated cyclically. This greatly improves work efficiency.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the steps including the foregoing method embodiments are performed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., which can be stored.
  • the medium of the program code includes: ROM, RAM, magnetic disk or optical disk, etc., which can be stored.
  • the apparatus in this embodiment may include: a port information processing module 11, a receiving module 12, a query module 13, a pipeline module 14 and a processing module 15,
  • the port information processing module 11 is configured to connect to at least one user equipment, and acquire and save port information of each user equipment.
  • the receiving module 12 is configured to receive a startup application processing request sent by the user equipment
  • the querying module 13 is configured to query port information of each user equipment saved by the port information processing module 11 to obtain port information corresponding to the application processing request.
  • the establishing pipeline module 14 is configured to establish a named pipe between the user equipments corresponding to the port information corresponding to the application processing request, wherein the named pipes of each user equipment are different, and the named pipeline is a server process and one or more client processes. One-way or two-way pipe for communication.
  • the processing module 15 is configured to perform application processing on the user equipment corresponding to the named pipe through the named pipe.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1, and the implementation principle is similar, and details are not described herein again.
  • the server provided in this embodiment is connected to the at least one user equipment through the port information processing module, and obtains and stores the port information of each user equipment, and the receiving module receives the startup application processing request sent by the user equipment, and the query module queries and saves the Port information of each user equipment, obtaining port information corresponding to the application processing request, establishing a named pipe between the user equipment corresponding to the port information corresponding to the application processing request by the pipeline module, and finally processing the named module through the named pipe
  • the user equipment corresponding to the pipeline performs application processing. Therefore, the server can install, uninstall, and manage the application software for multiple user devices at the same time, thereby improving work efficiency.
  • FIG. 3 is a schematic structural diagram of a second embodiment of a server according to the present invention.
  • the device of the embodiment is based on the device structure shown in FIG. 2.
  • the device may further include: a release module 16, the release The module 16 is configured to release the port corresponding to the user equipment corresponding to the named pipe when the server receives the processing completion message sent by the user equipment through the named pipe.
  • the device in this embodiment may be used to perform the technical solution shown in the second embodiment of the foregoing method, and the implementation principle is similar, and details are not described herein again.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明实施例提供一种应用程序的处理方法和装置。该方法包括:服务器与至少一个用户设备相连接后获取和保存每个用户设备的端口信息,接收用户设备发送的启动应用程序处理请求,并查询保存的每个用户设备的端口信息,获取与应用程序处理请求对应的端口信息,服务器与应用程序处理请求对应的端口信息对应的用户设备之间建立命名管道,服务器通过命名管道,对命名管道对应的用户设备进行应用程序处理。本发明实施例提供的应用程序的处理方法和装置,实现了同一服务器可以支持多个用户设备同时进行应用程序的设置、安装和卸载,提高了工作效率。

Description

应用程序的处理方法和装置
技术领域
本发明实施例涉及通信技术领域,尤其涉及一种应用程序的处理方法
所述服务器与所述应用程序处理请求对应的端口信息对应的用户设备 之间建立命名管道,其中,每个用户设备的命名管道不相同,所述命名管 道是所述服务器进程和一个或多个客户进程之间通信的单向或双向管道; 所述服务器通过所述命名管道,对所述命名管道对应的所述用户设备 进行应用程序处理。
在第一方面的第一种可能的实施方式中,所述服务器通过所述命名管 道,对所述命名管道对应的所述用户设备进行应用程序处理之后,所述方 法还包括:
当所述服务器通过所述命名管道接收到所述用户设备发送的处理完成 消息时,所述服务器释放所述命名管道与所述命名管道对应的用户设备对 应的端口信息。
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第 二种可能的实施方式中,所述端口信息包括端口号和诊断服务 Diag端口信 息;或者,所述端口信息包括端口号和调试桥 ADB端口信息。
第二方面,本发明实施例提供一种服务器,包括:
端口信息处理模块,用于与至少一个用户设备相连接,并获取和保存 每个所述用户设备的端口信息;
接收模块,用于接收所述用户设备发送的启动应用程序处理请求; 查询模块,用于查询所述端口信息处理模块保存的每个所述用户设备 的端口信息,获取与所述应用程序处理请求对应的端口信息;
建立管道模块,用于与所述应用程序处理请求对应的端口信息对应的 用户设备之间建立命名管道,其中,每个用户设备的命名管道不相同,所 述命名管道是所述服务器进程和一个或多个客户进程之间通信的单向或双 向管道;
处理模块,用于通过所述命名管道,对所述命名管道对应的所述用户 设备进行应用程序处理。 在第二方面的第一种可能的实施方式中,所述服务器还包括: 释放模块,用于当所述服务器通过所述命名管道接收到所述用户设备 发送的处理完成消息时,释放所述命名管道与所述命名管道对应的用户设 备对应的端口信息。
本发明实施例提供的应用程序的处理方法和装置,通过服务器与至少 一个用户设备相连接后获取和保存每个用户设备的端口信息,然后接收用 户设备发送的启动应用程序处理请求,并查询保存的每个用户设备的端口 信息,获取与应用程序处理请求对应的端口信息,接着与应用程序处理请 求对应的端口信息对应的用户设备之间建立命名管道,最后服务器通过命 名管道,对命名管道对应的用户设备进行应用程序处理。 从而实现了服务 器可对多个用户设备同时进行应用软件的安装和卸载及管理工作,提高了 工作效率。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地, 下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图 1为本发明应用程序的处理方法实施例一的流程图;
图 2为本发明服务器实施例一的结构示意图;
图 3为本发明服务器实施例二的结构示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚,下面将结合本 发明实施例中的附图,对本发明实施例中的技术方案进行清楚、 完整地描 述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例,都属于本发明保护的范围。
图 1为本发明应用程序的处理方法实施例一的流程图,如图 1所示, 本实施例的方法可以包括:
S101、 服务器与至少一个用户设备相连接,并获取和保存每个用户设 备的端口信息。
在本实施例中,用户设备可以是各种与服务器连接的终端设备,本实 施例以手机为例,手机通过通用串行总线(Universal Serial BUS ,以下简称: USB )端口***到服务器上后,服务器获取和保存每个手机的端口信息, 具体地,手机***到服务器上后,在服务器设备管理器中会映射出其对应 的端口 ,具体实施过程中可通过对注册表的枚举便可搜集到所有这些端口 的信息。 优选地,端口信息包括端口号和诊断服务(Diagnostic servces ,以 下简称: Diag )端口信息,其中, Diag是手机和服务器通信的桥梁,可通 过 Diag 获取到手机当中的信息;或者,端口信息包括端口号和调试桥 ( Android Debug Bridge ,以下简称: ADB )端口信息, ADB是 Android ***里的一个工具, 用这个工具可以直接操作管理 android模拟器或者真实 的 andriod设备,如手机。 服务器获取到每个手机的端口信息后,服务器根 据手机本身自动运行( AutoRun )服务启动各端口号对应的 service服务。 其中, service服务为手机本身 Automn服务启动后注入服务器的一个可执 行文件,用来对手机本身的端口进行操作,即用来对手机与服务器之间进 行数据传输。
另外,还需要说明的是,若服务器没能一次找出所有端口 ,可以尝试 N 次来对端口进行搜索,例如: Ν=5 ,且每次搜索端口的时间可以设置为 S 秒,例如: S=120秒,如果仍未找到,则上报用户某个设备加载不能成功。 其中,当用户设备***服务器时,会上报其端口号给服务器,若服务器获 取的端口信息中的端口与服务器无法进行通信,即判断服务器未能找出对 应的端口。
5102、 服务器接收用户设备发送的启动应用程序处理请求,并查询保 存的每个用户设备的端口信息,获取与应用程序处理请求对应的端口信息。
5103、 服务器与应用程序处理请求对应的端口信息对应的用户设备之 间建立命名管道,其中,每个用户设备的命名管道不相同,命名管道是服 务器进程和一个或多个客户进程之间通信的单向或双向管道。
在本实施例中,服务器在接收到用户设备发送的启动应用程序处理请 求时,也即服务器中的应用程序检测到不同手机启动的 service服务后(即 手机向服务器发送应用程序请求),查询保存的每个用户设备的端口信息, 获取与应用程序处理请求对应的端口信息,与应用程序处理请求对应的端 口信息对应的用户设备之间建立命名管道。 具体的,由于每个开端口信息 中的端口号均对应一个独立的 service服务,因此,在服务器中的应用程序 检测到该端口信息对应的手机启动 service服务后,可以根据该端口信息, 向该端口信息对应的手机下发打开端口的命令,从而打开该端口 ,并建立 该命令管道。 另外,当该手机的应用软件安装卸载完成后,可以拔出已经 传输完成的手机,此时,服务器中的应用程序可以向该端口信息对应的手 机下发关闭端口命令,从而关闭该端口 ,并释放该命令管道。
还需要说明的是,在本实施例中,命名管道(Named Pipe )是服务器 进程和一个或多个客户进程之间通信的单向或双向管道,命名管道可以在 不相关的进程之间和不同计算机之间使用,服务器建立命名管道时给它指 定一个名字,任何进程都可以通过该名字打开管道的另一端,根据给定的 权限和服务器进程通信。
5104、 服务器通过命名管道,对命名管道对应的用户设备进行应用程 序处理。
在本实施例中,应用程序根据上述操作打开各个手机对应的端口后, 服务器就可以通过各个手机对应的端口进行数据的传输,来完成应用软件 的安装和卸载。
本实施例提供的应用程序的处理方法,通过服务器与至少一个用户设 备相连接后获取和保存每个用户设备的端口信息,然后接收用户设备发送 的启动应用程序处理请求,并查询保存的每个用户设备的端口信息,获取 与应用程序处理请求对应的端口信息,接着与应用程序处理请求对应的端 口信息对应的用户设备之间建立命名管道,最后服务器通过命名管道,对 命名管道对应的用户设备进行应用程序处理。 从而实现了服务器可对多个 用户设备同时进行应用软件的安装和卸载及管理工作,提高了工作效率。
进一步的,在本发明应用程序的处理方法实施例二中,在上述图 1 所 示实施例的基础上,在步骤 S104之后,该方法还包括:
当服务器通过命名管道接收到用户设备发送的处理完成消息时,服务 器释放命名管道与命名管道对应的用户设备对应的端口信息。
具体地,开始数据传输后,各个手机的传输进度可能不一致,有的手 机可能先完成了传输,并且仍然占用着一个 USB端口 ,此时可以拔出已经 传输完成的手机,同时,正在传输的手机不受影响。 这样就释放了一个端 口 ,然后可以接入下一个待传输的手机,需要说明的是,在接入下一个待 传输的手机之后,同上述步骤 S101-S104 ,服务器检测获取该待传输手机的 端口信息,在检测获取到该端口信息对应的手机启动应用程序处理请求时, 分别根据应用程序请求和应用程序请求对应的端口信息,与端口信息对应 的手机之间建立命名管道,最后通过命名管道,对该手机进行应用程序处 理。 另外,原来正在传输的手机也不会受到影响,如此,可循环反复进行。 从而在很大程度上提高了工作效率。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分 步骤可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算 机可读取存储介质中。 该程序在执行时,执行包括上述各方法实施例的步 骤;而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储 程序代码的介质。
图 2为本发明服务器实施例一的结构示意图,如图 2所示,本实施例 的装置可以包括:端口信息处理模块 11、 接收模块 12、 查询模块 13、 建立 管道模块 14和处理模块 15 ,其中,端口信息处理模块 11用于与至少一个 用户设备相连接,并获取和保存每个用户设备的端口信息。 接收模块 12用 于接收用户设备发送的启动应用程序处理请求,查询模块 13用于查询端口 信息处理模块 11保存的每个用户设备的端口信息,获取与应用程序处理请 求对应的端口信息。 建立管道模块 14用于与应用程序处理请求对应的端口 信息对应的用户设备之间建立命名管道,其中,每个用户设备的命名管道 不相同,命名管道是服务器进程和一个或多个客户进程之间通信的单向或 双向管道。 处理模块 15用于通过命名管道,对命名管道对应的用户设备进 行应用程序处理。
本实施例的装置,可以用于执行图 1 所示方法实施例的技术方案,其 实现原理类似,此处不再赘述。
本实施例提供的服务器,通过端口信息处理模块与至少一个用户设备 相连接,并获取和保存每个用户设备的端口信息,接收模块接收用户设备 发送的启动应用程序处理请求,查询模块查询保存的每个用户设备的端口 信息,获取与应用程序处理请求对应的端口信息,建立管道模块与应用程 序处理请求对应的端口信息对应的用户设备之间建立命名管道,最后处理 模块通过命名管道,对命名管道对应的用户设备进行应用程序处理。 从而 实现了服务器可对多个用户设备同时进行应用软件的安装和卸载及管理工 作,提高了工作效率。
图 3为本发明服务器实施例二的结构示意图,如图 3所示,本实施例 的装置在图 2所示装置结构的基础上,进一步地,该装置还可以包括:释 放模块 16 ,该释放模块 16用于当服务器通过命名管道接收到用户设备发送 的处理完成消息时,释放命名管道与命名管道对应的用户设备对应的端口 本实施例的装置,可以用于执行上述方法实施例二所示的技术方案, 其实现原理类似,此处不再赘述。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非 对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的 普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进 行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或 者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims

权 利 要 求
1、 一种应用程序的处理方法,其特征在于,包括:
服务器与至少一个用户设备相连接,并获取和保存每个所述用户设备 的端口信息;
所述服务器接收所述用户设备发送的启动应用程序处理请求,并查询 所述保存的每个所述用户设备的端口信息,获取与所述应用程序处理请求 对应的端口信息;
所述服务器与所述应用程序处理请求对应的端口信息对应的用户设备 之间建立命名管道,其中,每个用户设备的命名管道不相同,所述命名管 道是所述服务器进程和一个或多个客户进程之间通信的单向或双向管道; 所述服务器通过所述命名管道,对所述命名管道对应的所述用户设备 进行应用程序处理。
2、 根据权利要求 1所述的应用程序的处理方法,其特征在于,所述服 务器通过所述命名管道,对所述命名管道对应的所述用户设备进行应用程 序处理之后,所述方法还包括:
当所述服务器通过所述命名管道接收到所述用户设备发送的处理完成 消息时,所述服务器释放所述命名管道与所述命名管道对应的用户设备对 应的端口信息。
3、 根据权利要求 1或 2所述的应用程序处理方法,其特征在于,所述 端口信息包括端口号和诊断服务 Diag端口信息;或者,所述端口信息包括 端口号和调试桥 ADB端口信息。
4、 一种服务器,其特征在于,包括:
端口信息处理模块,用于与至少一个用户设备相连接,并获取和保存 每个所述用户设备的端口信息;
接收模块,用于接收所述用户设备发送的启动应用程序处理请求; 查询模块,用于查询所述端口信息处理模块保存的每个所述用户设备 的端口信息,获取与所述应用程序处理请求对应的端口信息; 建立管道模块,用于与所述应用程序处理请求对应的端口信息对应的 用户设备之间建立命名管道,其中,每个用户设备的命名管道不相同,所 述命名管道是所述服务器进程和一个或多个客户进程之间通信的单向或双 向管道;
处理模块,用于通过所述命名管道,对所述命名管道对应的所述用户 设备进行应用程序处理。
5、 根据权利要求 4所述的服务器,其特征在于,所述服务器还包括: 释放模块,用于当所述服务器通过所述命名管道接收到所述用户设备 发送的处理完成消息时,释放所述命名管道与所述命名管道对应的用户设 备对应的端口信息。
PCT/CN2014/076484 2013-05-17 2014-04-29 应用程序的处理方法和装置 WO2014183556A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310186219.0 2013-05-17
CN201310186219.0A CN103605529B (zh) 2013-05-17 2013-05-17 应用程序的处理方法和装置

Publications (1)

Publication Number Publication Date
WO2014183556A1 true WO2014183556A1 (zh) 2014-11-20

Family

ID=50123759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076484 WO2014183556A1 (zh) 2013-05-17 2014-04-29 应用程序的处理方法和装置

Country Status (2)

Country Link
CN (1) CN103605529B (zh)
WO (1) WO2014183556A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605529B (zh) * 2013-05-17 2018-01-23 华为终端(东莞)有限公司 应用程序的处理方法和装置
CN104570967B (zh) * 2013-10-17 2017-06-20 北大方正集团有限公司 基于Android***的远程控制方法及***
CN103902391B (zh) * 2014-04-15 2018-04-10 宇龙计算机通信科技(深圳)有限公司 应用程序管理装置和应用程序管理方法
CN104268112A (zh) * 2014-09-19 2015-01-07 福州瑞芯微电子有限公司 一种连接adb设备的方法和装置
CN104410687B (zh) * 2014-11-26 2018-01-19 上海爱数信息技术股份有限公司 一种基于管道的多组进程间数据传递方法
CN105808404B (zh) * 2014-12-31 2018-10-23 成都鼎桥通信技术有限公司 一种基于共享管道的Android设备的调试方法
CN105868109B (zh) * 2016-03-28 2019-03-05 北京奇虎科技有限公司 一种改进的移动端应用测试方法和***
CN108833578B (zh) * 2018-06-30 2021-07-23 武汉斗鱼网络科技有限公司 基于fifo命名管道进行双工通信的方法及相关设备
CN114071628B (zh) * 2022-01-06 2022-04-26 深圳佑驾创新科技有限公司 一种基于安卓***的终端通讯方法、装置及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296157A (zh) * 2007-04-26 2008-10-29 北京师范大学珠海分校 多网卡协同通信方法
CN102647625A (zh) * 2012-05-03 2012-08-22 重庆邮电大学 基于端口号和ip地址的多视频转发方法
CN103605529A (zh) * 2013-05-17 2014-02-26 华为终端有限公司 应用程序的处理方法和装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7523155B2 (en) * 2004-03-18 2009-04-21 International Business Machines Corporation Method, system and program product for using open mobile alliance (OMA) alerts to send client commands/requests to an OMA DM server
CN101957771A (zh) * 2010-10-18 2011-01-26 彭扬 一种同时为多台手机安装手机软件的方法和装置
CN101996086A (zh) * 2010-11-10 2011-03-30 彭扬 一种通过数据线安装手机软件的方法和装置
CN102122256B (zh) * 2011-03-28 2013-01-09 中国人民解放军国防科学技术大学 一种用于进程间通信的管道式通信方法及***
CN102223655A (zh) * 2011-07-05 2011-10-19 上海市安全生产科学研究所 移动通信的底层多线程数据传输方法
CN102355429A (zh) * 2011-08-12 2012-02-15 北京思创银联科技股份有限公司 基于管道的多进程间消息通信方法
CN103077134B (zh) * 2012-12-27 2015-10-28 飞天诚信科技股份有限公司 一种嵌入式***中实现多管道数据传输的方法和装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296157A (zh) * 2007-04-26 2008-10-29 北京师范大学珠海分校 多网卡协同通信方法
CN102647625A (zh) * 2012-05-03 2012-08-22 重庆邮电大学 基于端口号和ip地址的多视频转发方法
CN103605529A (zh) * 2013-05-17 2014-02-26 华为终端有限公司 应用程序的处理方法和装置

Also Published As

Publication number Publication date
CN103605529B (zh) 2018-01-23
CN103605529A (zh) 2014-02-26

Similar Documents

Publication Publication Date Title
WO2014183556A1 (zh) 应用程序的处理方法和装置
US9342326B2 (en) Allocating identified intermediary tasks for requesting virtual machines within a trust sphere on a processing goal
US20200351354A1 (en) System and method for supporting data communication in a heterogeneous environment
WO2017071207A1 (zh) 一种应用安装方法、相关装置及应用安装***
CN104572564B (zh) 一种实现android移动设备与USB OTG主机通讯的方法
WO2011127860A2 (zh) 启动应用的方法、服务器和***
WO2018040746A1 (zh) 一种驱动程序的安装方法及装置、电子设备
WO2017080487A1 (zh) 云桌面的调用方法及装置
WO2015192608A1 (zh) 安卓***中app的更新方法、终端及存储介质
KR101754680B1 (ko) 휴대용 통신 디바이스상에서 운영 체제를 복구하는 방법, 장치 및 시스템
WO2011103729A1 (zh) 一种自定义外壳程序的注册、注销方法及相应的***
WO2012041239A1 (zh) 一种输入工具调用的***、方法及一种代理设备
WO2018166322A1 (zh) ***分区的修复方法及装置
CN104570967B (zh) 基于Android***的远程控制方法及***
WO2023226670A1 (zh) 一种eSIM固件升级方法、装置、设备及介质
CN105704707A (zh) 从设备及其空中升级的方法
CN103442041A (zh) 嵌入式设备固件升级的方法、装置及其***
CN107277107B (zh) 应用调试方法、装置及***
CN109871288B (zh) 执行Android***命令的方法、装置、设备及介质
CN106936869A (zh) 一种基于aoa协议的车机联网方法及***
WO2016161968A1 (zh) 用于安全性信息交互的设备
TWM468695U (zh) 加工設備之雲端連結監控系統
CN105512544A (zh) 一种获取移动终端超级用户权限的方法及装置
WO2015067052A1 (zh) 测试命令发送方法、装置及***
CN116339761B (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: 14798609

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: 14798609

Country of ref document: EP

Kind code of ref document: A1