CN102438029A - Control method and system for realizing remote interaction of Android cell phones - Google Patents

Control method and system for realizing remote interaction of Android cell phones Download PDF

Info

Publication number
CN102438029A
CN102438029A CN 201010296659 CN201010296659A CN102438029A CN 102438029 A CN102438029 A CN 102438029A CN 201010296659 CN201010296659 CN 201010296659 CN 201010296659 A CN201010296659 A CN 201010296659A CN 102438029 A CN102438029 A CN 102438029A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
input
event
android
phone
events
Prior art date
Application number
CN 201010296659
Other languages
Chinese (zh)
Other versions
CN102438029B (en )
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

Links

Abstract

The invention relates to a control method and a system for realizing remote interaction of Android cell phones. The method comprises the following steps that: an input event is issued to an Android cell phone; the input event is received and is transmitted to the Android cell phone; the received input event is controlled to be interpolated into an input event array of a window manager from an associated device of the Android cell phone; a screen capture order is regularly issued to the Android cell phone; the screen capture order is responded, and a captured screen picture is uploaded; the uploaded screen picture is received and is transmitted to a remote control terminal; and the screen capture picture is received and displayed. Due to the control method and the system, the input event (such as a keyboard, a touch screen, a track ball and the like) can be interpolated into the input event input array of the window manager without a manufacturer system signed certificate so as to realize the effect on simulating the keyboard input, simulating a touch action, simulating rolling of the track ball and the like.

Description

一种实现Android手机远程交互的控制方法及系统 Control method and system for implementing remote interaction Android phone

技术领域 FIELD

[0001] 本发明涉及通信领域,更具体地说,涉及一种实现Android手机远程交互的控制方法及系统。 [0001] The present invention relates to the field of communications, and more particularly, relates to a control method and system for remote interaction Android mobile phone implementation.

背景技术 Background technique

[0002] 目前,Android手机远程交互控制框架主要由三部分组成:远程控制终端、远程控制代理和Android手机,如图1所示,为现有的Android手机远程交互的控制系统的框架图。 [0002] Currently, Android mobile phone remote control framework consists of three interacting components: a remote control terminal, a remote control agent and Android, as shown in FIG. 1, FIG Android framework existing phone remote control system interaction.

[0003] 其中,远程控制终端模拟Android手机的UI界面,透过远程控制代理实现与Android手机的交互,即向Android手机下发输入事件(如按键事件、指针事件、轨迹球事件等),接收并显示从远程控制代理转发来的Android手机的截屏画面。 [0003] wherein the remote control terminal interactive simulation Android phone UI interface, realized through the remote control agent Android phones, namely hair input events (e.g. key events, the event pointer, trackball, events, etc.) Android phone receiving and forwarded to the display Android phone from the remote control agent screenshots.

[0004] 远程控制代理一方面负责接收远程控制终端下发的输入事件,并通过USB向Android手机转发输入事件,另一方面负责定时向Android手机下达截屏指令,并向远程控制终端转发从Android手机发出的截屏画面。 [0004] In one aspect Remote Control Agent is responsible for receiving input events sent by the remote control terminal, and forwards input events to Android phone via USB, on the other hand is responsible for the timing screenshot issued instructions to Android phones, and forwards the remote control terminal from an Android phone issued screenshots.

[0005] Android手机一方面响应截屏指令,将截取到的屏幕画面传给远程控制代理,另一方面将收到的输入事件转换为Android的标准输入事件,插入到WindowManager的输入事件队列中。 [0005] In one aspect Android phone screenshots response command, to be taken to the remote screen control agent, on the other hand the received input events into standard input event Android inserted into WindowManager input event queue.

[0006] 在上述框架下,将输入事件插入到WindowManager的输入事件队列需要用到Android SDK框架提供的以下几个函数: [0006] In the frame, the input events into the input event queue WindowManager need to use the following functions provided by the framework Android SDK:

[0007] boolean injectKeyEvent(in KeyEvent ev, boolean sync); [0007] boolean injectKeyEvent (in KeyEvent ev, boolean sync);

[0008] boolean injectPointerEvent(in MotionEvent ev, boolean sync); [0008] boolean injectPointerEvent (in MotionEvent ev, boolean sync);

[0009] boolean injectTrackbalIEvent(in MotionEvent ev, boolean sync); [0009] boolean injectTrackbalIEvent (in MotionEvent ev, boolean sync);

[0010] 但是,由于Android SDK框架提供的上述几个插入事件函数需要用到Android的系统签名,来将输入事件插入到WindowManager的输入事件队列中,若没有系统签名,则无法将输入事件插入到WindowManager的输入事件队列,也就无法实现交互控制的功能。 [0010] However, since the number of insertion events Android SDK functions provided by the framework need to use a signature system Android to WindowManager input events into the input event queue, if the system is not signed, it can not be inserted into the input event WindowManager input event queue, you can not realize the function of interactive control. 然而,要获得系统签名证书并非易事,市面上Android手机众多,每一款手机的系统签名证书各不相同,要获得手机的系统签名证书必须找手机厂家逐个索取,出于产品安全的角度考虑,厂家并不一定愿意提供系统签名证书。 However, to obtain a signed certificate system is not easy, many Android phones available in the market, each with a phone system signed certificate is different, to get the phone system signed certificate must find a mobile phone manufacturers to obtain one by one, for product safety point of view , manufacturers are not necessarily willing to provide system-signed certificate.

[0011] 因此,现有技术应用范围很有限,仅限于已破解了系统权限的Android手机和已获得了厂家系统签名证书的Android手机上。 The [0011] Thus, the prior art range of applications is very limited, limited system privileges have been cracked Android phone system manufacturers and has received signed certificates Android phone.

发明内容 SUMMARY

[0012] 本发明要解决的技术问题在于,针对现有技术中现有的Android手机远程交互的控制系统只能用于已破解了系统权限和已获得了厂家系统签名证书的Android手机的缺陷,提供一种实现Android手机远程交互的控制方法及系统。 [0012] The present invention to solve the technical problem is that the prior art control systems in existing Android phones only for remote interaction has cracked the system privileges and has received defective system Android phone manufacturers signed certificate, to provide a control method and system realization Android phone remote interaction.

[0013] 本发明解决其技术问题所采用的技术方案之一是:构造一种实现Android手机远程交互的控制方法,包括步骤: [0013] One aspect of the present invention to solve the technical problem is: constructing a control method implemented Android mobile remote interaction, comprising the steps of:

[0014] 向Android手机下发输入事件; [0014] send input events to the Android phone under;

[0015] 接收下发的输入事件,并向Android手机转发该输入事件; [0015] receiving an input event issued and forward them to the Android phone input event;

[0016] 将收到的输入事件插入到WindowManager的输入事件队列中; [0016] The input event received from an input WindowManager inserted into the event queue;

[0017] 定时向Android手机下达截屏指令; [0017] The timing of commands issued to the Android mobile phone screen shot;

[0018] 响应截屏指令,并将截取到的屏幕画面上传; [0018] In response screenshot command and upload intercepted screen;

[0019] 接收上传的屏幕画面,并向远程控制终端转发该截屏画面; [0019] received upload screen, the remote control terminal and forwards the screenshots;

[0020] 接收并显示该截屏画面; [0020] receives and displays the screen shots;

[0021] 其特征在于,所述将收到的输入事件插入到WindowManager的输入事件队列中的步骤中: [0021] wherein the received input event said step of inserting WindowManager input event queue in which:

[0022] 控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中。 [0022] The control input received events into the event queue WindowManager input by an associated input device Android phone.

[0023] 上述本发明所述的实现Android手机远程交互的控制方法,所述输入事件为键盘事件时,所述控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括: When [0023] Android mobile remote control method according to the interaction of the present invention is implemented, the input event is a keyboard event, the controller receives an input event by the insertion of an associated input device Android phone to an input event queue WindowManager in step comprises:

[0024] 收到键盘事件后,将键盘事件转换成Android手机键盘输入事件序列码,找到并打开支持该键盘输入事件序列码的设备,向该设备写入转换后的键盘输入事件序列码。 [0024] After receiving keyboard events, keyboard events will be converted into a sequence of events Android phone keypad to enter the code, find and open the keyboard input device support code sequence of events, keyboard input code sequence of events after the conversion is written to the device.

[0025] 上述本发明所述的实现Android手机远程交互的控制方法,所述输入事件为触屏事件时,所述控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括: When [0025] Android mobile remote control method according to the interaction of the present invention is implemented, the input event is a touch event, the control input event received by the associated input device Android mobile phone is inserted into the input event WindowManager step queue comprises:

[0026] 收到触屏事件后,将触屏事件转换成Android手机触屏输入事件序列码,找到并打开支持该触屏输入事件序列码的设备,向该设备写入转换后的触屏输入事件序列码。 After the [0026] received a touch event, to convert the event into a touch-screen Android phone touch screen input code sequence of events, find and open the device supports touch screen input code sequence of events, touch screen input after the conversion is written to the device event serial number.

[0027] 上述本发明所述的实现Android手机远程交互的控制方法,所述输入事件为轨迹球事件时,所述控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括: When [0027] Android mobile remote control method according to the interaction of the present invention is implemented, the input event is a trackball event, the control receives an input event by an associated input device inserted Android phone to input events WindowManager step queue comprises:

[0028] 收到轨迹球事件后,将轨迹球事件转换成Android手机轨迹球输入事件序列码, 找到并打开支持该轨迹球输入事件序列码的设备,向该设备写入转换后的轨迹球输入事件序列码。 [0028] After receiving the trackball event, to convert the event into Android trackball trackball input code sequence of events, find and open the trackball device supports input code sequence of events, trackball input after the conversion is written to the device event serial number.

[0029] 本发明解决其技术问题所采用的技术方案之二是:构造一种实现Android手机远程交互的控制系统,包括: [0029] The present invention solves the technical problem using the technical solution of the two is: the control system configuration for realizing the Android mobile remote interaction, comprising:

[0030] 远程控制终端:向Android手机下发输入事件,接收并显示从远程控制代理转发来的Android手机的截屏画面; [0030] Remote control terminals: input sent to the Android mobile phone event received from the remote control and displays the proxy forwarded Android phone screen shots;

[0031] 远程控制代理:接收远程控制终端下发的输入事件且向Android手机转发该输入事件,并向远程控制终端转发从Android手机上传的截屏画面; [0031] Remote Control Agent: sent by the remote control terminal receives the input event and forwards the event to enter the Android phone, forwarded to the control terminal uploaded from an Android phone screen shots remote;

[0032] 所述远程控制终端或远程控制代理定时向Android手机下达截屏指令; [0032] The remote control terminal or the remote control agent to the timing instruction issued screenshot Android phone;

[0033] Android手机:响应截屏指令,并将截取到的屏幕画面上传给远程控制代理,另外,控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中。 [0033] Mobile Android: screenshot command response, and taken to screen uploaded to the remote control agent, further, the control will receive input events into the event queue WindowManager input by an associated input device Android phone.

[0034] 上述本发明所述的实现Android手机远程交互的控制系统,所述输入事件为键盘事件时,所述Android手机控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的过程为: When [0034] implemented Android mobile remote interactive control system according to the present invention described above, the input event is a keyboard event, the Android mobile phone will receive control input event into an associated input device by the Android mobile phone to input WindowManager in the event queue process:

[0035] 所述Android收到键盘事件后,将键盘事件转换成Android手机键盘输入事件序列码,找到并打开支持该键盘输入事件序列码的设备,向该设备写入转换后的键盘输入事件序列码。 [0035] The receipt of the Android keyboard events, keyboard events converting input events into a sequence of keyboard Android phone code, locate and open the device supports the event sequence code keyboard input, keyboard input sequence of events to write transducer device code.

[0036] 上述本发明所述的实现Android手机远程交互的控制系统,所述输入事件为触屏事件时,所述Android手机控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括: When [0036] implemented Android mobile remote interactive control system according to the present invention described above, the input event is a touch event, the Android mobile control input related events received by the input device is inserted into the phone WindowManager the Android To enter an event queue include:

[0037] 所述Android手机收到触屏事件后,将触屏事件转换成Android手机触屏输入事件序列码,找到并打开支持该触屏输入事件序列码的设备,向该设备写入转换后的触屏输入事件序列码。 After [0037] After receiving the Android mobile touch event, the touch event converting input events into a sequence of touch Android phone code, locate and open the touch screen input device supports event sequence code, write transducer to the device touch-screen input code sequence of events.

[0038] 上述本发明所述的实现Android手机远程交互的控制系统,所述输入事件为轨迹球事件时,所述Android手机控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括: [0038] implemented Android mobile remote interactive control system according to the present invention described above, the input event is an input event when the event trackball, the Android mobile phone inserted by the received control input related to the Android mobile device of WindowManager To enter an event queue include:

[0039] 所述Android手机收到轨迹球事件后,将轨迹球事件转换成Android手机轨迹球输入事件序列码,找到并打开支持该轨迹球输入事件序列码的设备,向该设备写入转换后的轨迹球输入事件序列码。 After [0039] After receiving the Android mobile trackball event, converted into a trackball event Android trackball input event sequence code, find and open a trackball input device supports the event sequence code, write transducer to the device trackball input code sequence of events.

[0040] 实施本发明的实现Android手机远程交互的控制方法及系统,具有以下有益效果: [0040] The control method and system achieve remote interaction Android mobile phone of the present invention has the following advantages:

[0041] 第一,不需要厂家系统签名证书即可将输入事件(如键盘、触屏、轨迹球等)插入到WindowManager的事件输入队列中,达到模拟键盘输入、模拟触屏动作、模拟轨迹球滚动等的效果。 [0041] First, the system does not require the manufacturer to the signed certificate input events (such as a keyboard, a touch screen, trackball, etc.) into the input queue WindowManager event, to achieve simulated keyboard input, analog touch operation, simulated trackball scrolling effect.

[0042] 第二,采用软件控制,兼容性好,可以覆盖Android各个版本的手机,可以覆盖OMS(开放式操作系统,英文全称为Open Mobile System)各个版本的手机。 [0042] Second, the use of software control, good compatibility, can cover all versions of Android phone, you can cover the OMS (open operating system, the English called Open Mobile System) versions of the phone.

附图说明 BRIEF DESCRIPTION

[0043] 下面将结合附图及实施例对本发明作进一步说明,附图中: [0043] The accompanying drawings and the following embodiments of the present invention is further illustrated drawings in which:

[0044] 图1为现有的Android手机远程交互的控制系统的框架图; [0044] FIG. 1 is a frame diagram of a conventional remote control system, the Android mobile phone interaction;

[0045] 图2是本发明实现Android手机远程交互的控制方法的第一实施例的流程图; [0045] FIG 2 is a flowchart of a first embodiment of the present invention is to realize a control method of remotely interacting Android mobile phone;

[0046] 图3是本发明实现Android手机远程交互的控制方法的第二实施例的流程图; [0046] FIG. 3 is a flowchart of a second embodiment of the present invention is to realize a control method of remotely interacting Android mobile phone;

[0047] 图4是图2与图3中步骤S(13)的一实施例的流程图; [0047] FIG. 4 is a view of FIG. 3 in step 2 and S (13) is a flowchart of an embodiment;

[0048] 图5是本发明实现Android手机远程交互的控制系统的框架图。 [0048] FIG 5 is a frame of the present invention to realize a remote control system, the Android mobile phone interacting.

具体实施方式 detailed description

[0049] 如图2所示,是本发明实现Android手机远程交互的控制方法的第一实施例的流程图,本第一实施例中,该实现Android手机远程交互的控制方法分为两方面: [0049] FIG. 2 is a flowchart of a first embodiment of the present invention is to realize a control method of remotely interacting Android mobile phone, a first embodiment according to the present embodiment, the control method of the remote interaction Android phone implementation is divided into two areas:

[0050] 第一方面:首先,向Android手机下发输入事件,如步骤S(Il)所示;接着,接收下发的输入事件,并向Android手机转发该输入事件,如步骤S(U)所示;然后,将收到的输入事件插入到WindowManager的输入事件队列中,如步骤S(13)所示。 [0050] First aspect: firstly, the Android mobile phone to send an input event, such as the step S (Il) as shown; Subsequently, issued receiving input event, and Android mobile phone forwards the input event as by step S (U) shown; then, the received input WindowManager input events into the event queue (13) as shown in step S. 特别的,上述“将收到的输入事件插入到衍11(10«1^11恥吐的输入事件队列中”即步骤3(13)中,需控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列。 In particular, the above-described "the received input events into the derivative 11 (10 << 1 ^ 11 shame discharge input event queue" ie, Step 3 (13), will be controlled by the associated input event received Android phone the input device is inserted into the input queue WindowManager event.

[0051] 第二方面:首先,定时向Android手机下达截屏指令,如步骤W21)所示;接着,响应截屏指令,并将截取到的屏幕画面上传,如步骤“22)所示;接着,接收上传的屏幕画面并向远程控制终端转发该截屏画面,如步骤“23)所示;然后,接收并显示该截屏画面,如步骤S 03)所示。 [0051] Second aspect: Firstly, the timing assigned to the Android mobile screenshots instruction, as indicated at step W21 of) shown; Next, in response to an instruction screen shot, and upload the intercepted screen, as shown in step "22) shown; Next, receiving upload screen and forwards the remote control terminal of the screen shots, as shown in step "23) shown; FIG then receives and displays the screen shots, as shown in step S 03).

[0052] 本第一实施例中,在步骤W21)中,由远程控制代理定时向Android手机下达截屏指令,可见,通过在远程控制代理上进行设置后,手机的屏幕画面将自动上传到远程控制终端。 [0052] The present first embodiment, at step W21 of), the timing issued screenshots instructions to the Android mobile phone by a remote control agent, can be seen by the setting on the remote control agent, the phone's screen will be automatically uploaded to a remote control terminal.

[0053] 可见,本发明的实现Android手机远程交互的控制方法中,不需要厂家系统签名证书即可将输入事件(如键盘、触屏、轨迹球等)插入到WindowManager的事件输入队列中,达到模拟键盘输入、模拟触屏动作、模拟轨迹球滚动等的效果;另外,采用软件控制,兼容性好,可以覆盖Android各个版本的手机,可以覆盖OMS各个版本的手机。 [0053] visible, Android mobile phone control method for remotely interacting with the implementation of the invention, the system does not require the manufacturer to the signed certificate input events (such as a keyboard, a touch screen, trackball, etc.) into the input queue WindowManager event, to achieve simulated keyboard input, touch operation simulation results, the analog trackballscroller like; Further, using software control, compatibility, and can cover various Android phones, may cover all versions of OMS phone.

[0054] 如图3所示,是本发明实现Android手机远程交互的控制方法的第二实施例的流程图,本第二实施例与图2所示的第一实施例的区别在于:远程控制终端定时向Android手机下达截屏指令即步骤S (21),远程控制代理向Android手机转发该截屏指令即步骤S (A), 可见,通过在远程控制终端上进行设置后,手机的屏幕画面将自动上传到远程控制终端。 [0054] Figure 3 is a flowchart of a second embodiment of the present invention is to realize a control method of remotely interacting Android mobile phone, it differs from the first embodiment of the present embodiment shown in FIG. 2 of the second embodiment in that: the remote control terminal timing issued screenshots instructions to the Android mobile i.e., step S (21), the remote control proxy forwards the screen shot instruction to the Android mobile i.e., step S (a), can be seen by the setting on the remote control terminal, the phone's screen will automatically uploaded to the remote control terminal.

[0055] 如图4所示,是图2或图3中步骤S(13)的一实施例的流程图。 [0055] As shown in FIG 4 is a flowchart of FIG. 2 or FIG. 3 in step S (13) of a embodiment. 本实施例以向Android手机下发的输入事件为键盘事件为例进行阐述,所述“控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中”即步骤S (13)包括: In the present embodiment, an example is set forth to send keyboard events in the input event Android mobile phone, the "control input event is inserted into the receive event queue WindowManager input by an associated input device Android phones", i.e., step S ( 13) includes:

[0056] 接收到键盘事件(如步骤S131所示),将键盘事件转换成Android手机键盘输入事件序列码(如步骤S132所示),找到并打开支持该键盘输入事件序列码的设备(如步骤S133所示),向该设备写入转换后的键盘输入事件序列码(如步骤S134所示)。 [0056] receives keyboard events (as shown in step S131), converts the keyboard events into a sequence of events Android mobile phone keypad to enter the code (as shown in step S132), locate and open the keyboard input device supports event sequence code (step as shown in S133), the keyboard input device to the code sequence of events after the write transducer (e.g., step S134 shown). 在步骤S132中,转换得到的序列码的格式或形式与系统中原始的Android手机键盘输入事件序列码的格式或形式相同,于是,在步骤S133中,WindowManager将无法觉察到该序列码是伪造的,因此输入的键盘事件能够成功的插入到WindowManager输入事件队列中。 In step S132, the same format or form format or form the system serial number of the converted original Android phone keyboard event sequence code, then in step S133, The WindowManager can not perceive the serial code is counterfeit , the input of key events can be successfully inserted into WindowManager input event queue. 由于打开键盘和通过键盘写数据不需要厂家系统签名证书,因此采用此技术方案可以绕过系统签名的问题,不需要厂家系统签名证书即可将键盘输入事件插入到WindowManager的事件输入队列中,达到模拟键盘输入的效果。 Due to the opening and keyboard through the keyboard system manufacturers do not need to write data signed certificate, so a problem with this aspect of the system to bypass the signature, the system does not require the manufacturers to the signed certificate keyboard input events into the input queue WindowManager event, to achieve simulate the effect of keyboard input.

[0057] 在其它实施例中,当向Android手机下发的输入事件为触屏事件时,所述控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括: [0057] In other embodiments, when the touch event is sent by the Android mobile phone to input event, said step of controlling the input event queue WindowManager received by the input event into an associated input device to the phone Android include:

[0058] 接收到触屏事件后,将触屏事件转换成Android手机触屏输入事件序列码,找到并打开支持该触屏输入事件序列码的设备,向该设备写入转换后的触屏输入事件序列码。 [0058] After receiving the touch event, the touch event converting input events into a sequence of touch Android phone code, locate and open the device supports the event sequence code touch screen input, touch screen input device to the write transducer event serial number. 类似地,由于打开触摸屏(板)和通过触摸屏(板)写数据不需要厂家系统签名证书,因此采用此技术方案可以绕过系统签名的问题,不需要厂家系统签名证书即可将触屏输入事件插入到WindowManager的事件输入队列中,达到模拟触屏输入的效果。 Similarly, since the turn the screen (panel) and the write data does not have a certificate signed by the manufacturer system of a touch screen (panel), so a problem with this aspect of the system to bypass the signature, the system does not require the manufacturers to the touch-signed certificate input event WindowManager events into the input line, to the effect of the analog touch screen input.

[0059] 在其它实施例中,当向Android手机下发的输入事件为轨迹球事件时,所述控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括: [0059] In other embodiments, when the input event is sent by the Android mobile phone trackball event, said step of controlling the input event queue WindowManager received by the input event into an associated input device to the phone Android include:

[0060] 接收到轨迹球事件后,将轨迹球事件转换成Android手机轨迹球输入事件序列码,找到并打开支持该轨迹球输入事件序列码的设备,向该设备写入转换后的轨迹球输入事件序列码。 [0060] After receiving the event trackball, converting the event into a trackball Android trackball input event sequence code, find and open a trackball input device supports the event sequence code, a trackball input device to the write transducer event serial number. 类似地,由于打开轨迹球和通过轨迹球写数据不需要厂家系统签名证书,因此采用此技术方案可以绕过系统签名的问题,不需要厂家系统签名证书即可将轨迹球输入事件插入到WindowManager的事件输入队列中,达到模拟轨迹球输入的效果。 Similarly, since the trackball, and opened by the trackball system manufacturers do not need to write data signed certificate, so the use of this aspect of the system may bypass the problem signature, the system does not require the manufacturer signed certificates trackball input event is inserted into the WindowManager event input queue, to simulate the effect of a trackball input.

[0061] 如图5所示,是本发明实现Android手机远程交互的控制系统的框架图。 [0061] As shown in FIG 5, the present invention is implemented in FIG frame Android mobile phone remote control system interacting. 本发明的实现Android手机远程交互的控制系统包括远程控制终端、远程控制代理和Android手机。 Android mobile remote control system to realize the interaction of the present invention include a remote control terminal, a remote control agent and Android. 其中,远程控制终端向Android手机下发输入事件,接收并显示从远程控制代理转发来的Android手机的截屏画面;远程控制代理接收远程控制终端下发的输入事件且向Android 手机转发该输入事件,并向远程控制终端转发从Android手机上传的截屏画面;上述远程控制终端或远程控制代理定时向Android手机下达截屏指令;Android手机响应截屏指令, 并将截取到的屏幕画面上传给远程控制代理,另外,控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中。 Wherein, the remote control terminal sent the input to the Android mobile event, receive and display forwarded Android phone from the remote control agent screenshots; delivered by receiving a remote control terminal of the remote control agent input event and forwards the input event to the Android mobile phone, and forwards the remote control terminal a screen shot uploaded from Android phone; said remote control terminal or the remote control agent the timing issued screenshots instruction to the Android mobile phone; Android mobile phone in response screenshot command and upload intercepted screen to the remote control agent, additional the control will receive input events associated input device inserted by Android phones to WindowManager input event queue. 另外,远程控制终端远程控制终端 Further, the remote control terminal remote control terminal

[0062] 具体地,远程控制终端执行图2中步骤S(Il)和步骤S04)或图3中步骤S(Il)、 步骤S 和步骤S 04)的具体操作,此处不再赘述;远程控制代理执行图2中步骤S (12)、 步骤S 和步骤S 03)或图3中步骤S (12)、步骤S (A)和步骤W23)的具体操作,此处不再赘述;Android手机执行图2和图3中步骤S (12和步骤S (22)的具体操作,且Android手机中的输入事件模块用于接收向Android手机下发的输入事件并判断该输入事件的种类, 上述此处不再赘述。 [0062] Specifically, the remote control terminal 2 executes step S (Il) and step S04) or FIG. Step 3 S (Il), step S 04 and step S) of the specific operation is not repeated here; remote control agent executes step S 2 (12 is), steps S 03 and step S), or S in FIG. 3 in step (12 is), the step of S (a) and step W23 of) specific operation is not repeated here; the Android mobile phone Figures 2 and 3 executed in step S (12 and step S (22) specific operation, and Android phone receiving means for the input event sent by the Android mobile phone and determines the type of the input event is an input event, above this at not repeat them.

[0063] 所述输入事件为键盘事件时,所述Android手机控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的过程为:所述Android收到键盘事件后,将键盘事件转换成Android手机键盘输入事件序列码,找到并打开支持该键盘输入事件序列码的设备,向该设备写入转换后的键盘输入事件序列码。 [0063] When the input event is a keyboard event, the Android mobile phone will receive control inputs from the event into an associated input device to process WindowManager Android's input event queue to: receive keyboard events following the Android to convert the event into a keyboard Android phone keypad to enter the code sequence of events, find and open the keyboard input device support code sequence of events, keyboard input code sequence of events after the conversion is written to the device. 其具体过程与图3中步骤S(U)的执行流程相同,此处不再赘述。 The specific process flow of FIG. 3 performs step S (U) is the same, is not repeated here.

[0064] 在其它实施例中,所述输入事件为触屏事件时,所述Android手机控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的过程为:所述Android手机收到触屏事件后,将触屏事件转换成Android手机触屏输入事件序列码,找到并打开支持该触屏输入事件序列码的设备,向该设备写入转换后的触屏输入事件序列码。 When [0064] In other embodiments, the input event is a touch event, the Android mobile phone will receive control input event into an associated input device by the Android mobile phone to WindowManager input event queue process: The Android phone later received touch event, to convert the event into a touch-screen Android phone touch screen input code sequence of events, find and open the device supports touch screen input code sequence of events, touch screen input after the conversion is written to the device event serial number.

[0065] 在其它实施例中,所述输入事件为轨迹球事件时,所述Android手机控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的过程为:所述Android手机收到轨迹球事件后,将轨迹球事件转换成Android手机轨迹球输入事件序列码,找到并打开支持该轨迹球输入事件序列码的设备,向该设备写入转换后的轨迹球输入事件序列码。 When [0065] In other embodiments, the input event is a trackball event, the Android mobile phone will receive control input event into an associated input device by the Android mobile phone to WindowManager input event queue process: The Android phone later received a trackball event, to convert the event into Android trackball trackball input code sequence of events, find and open the trackball device supports input code sequence of events, trackball input after the conversion is written to the device event serial number.

[0066] 本发明中,所谓输入事件,是指键盘、轨迹球、触屏等设备执行操作时所产生的计算机可处理的信息,该信息代表相应的操作动作。 [0066] the present invention, the input event is information when performing computer keyboard, trackball, touch screen, etc. may be generated by the device process, the corresponding operation information representing operation. [0067] 另外,本方案均外采用软件控制,兼容性好,可以覆盖Android各个版本的手机, 可以覆盖OMS (开放式操作系统,英文全称为Open Mobile System)各个版本的手机。 [0067] Further, the present embodiment uses are outside the control software, compatibility, can cover the respective Android phones, may cover the OMS (open operating system, the English called Open Mobile System) of each version of the phone.

[0068] 综上,由于打开键盘和通过键盘写数据、打开触摸屏(板)和通过触摸屏(板)写数据、打开轨迹球和通过轨迹球写数据等各种形式均不需要厂家系统签名证书,因此采用此技术方案可以绕过系统签名的问题,不需要厂家系统签名证书即可将上述输入事件插入到WindowManager的事件输入队列中,达到模拟键盘、触摸屏(板)、轨迹球等的效果。 [0068] In summary, since the keyboard is opened, and write data through a keyboard, a touch screen opening (plate), and write data through the touch screen (plate), a trackball, and open various forms by the trackball, etc. do not need to write data system manufacturer signed certificate, Thus this aspect of the problem using the system to bypass the signature, the system does not require the manufacturers to the signed certificate of the input events into the input queue WindowManager event, to simulate the effect of a keyboard, a touch screen (panel), like a trackball.

[0069] 本发明中,所述输入事件,指用户的输入动作(包括按键盘、点击触摸屏、拖动触摸屏、滚动轨迹球输入等)引发的用于计算机处理的信号。 [0069] In the present invention, the input event, refers to a user's input operation (including the keyboard, click on the touch screen, dragging the touch screen, trackball scrolling input, etc.) caused by signal processing in a computer.

[0070] 本发明中,所述远程控制终端,指有计算能力,可以进行图象处理和通信处理的计算机,可以为普通PC机、服务器,甚至为智能手机。 [0070] In the present invention, the remote control terminal, refers to computing capacity of computer image processing and communication processing can be ordinary PC, server, or even a smart phone. 所述远程控制代理,是负责完成远程控制终端和Android手机之间的通讯中转的交换设备。 The remote control agent, is responsible for the completion of transit communications switching equipment between the remote control terminal and Android phones. 所述Android手机,是指以Google Android作为操作系统的智能手机。 The Android phones, refers to the Google Android as the operating system for smart phones.

[0071] 总之,本发明实现Android手机远程交互的控制方法及系统中,不需要厂家系统签名证书即可将输入事件(如键盘、触屏、轨迹球等)插入到WindowManager的事件输入队列中,达到模拟键盘输入、模拟触屏动作、模拟轨迹球滚动等的效果;另外采用软件控制,兼容性好,可以覆盖Android各个版本的手机,可以覆盖OMS (开放式操作系统,英文全称为Open Mobi IeSystem)各个版本的手机。 [0071] In summary, the present invention is to realize a control method and system for remote interaction Android mobile phone, the system does not require the manufacturer to the signed certificate input events (such as a keyboard, a touch screen, trackball, etc.) WindowManager events into the input queue, achieve simulated keyboard input, simulate the effect of touch action, analog trackball, scroll and the like; another use software control, good compatibility, can cover all versions of Android phone, you can cover the OMS (open operating system, the English called open Mobi IeSystem ) of each version of the phone.

[0072] 以上所述仅为本发明的实施例,并不用以限制本发明,凡在本发明的精神和原则内所作的任何修改、等同替换或改进等,均应包含在本发明的保护范围内。 [0072] The embodiments described above are only embodiments of the present invention, not intended to limit the present invention, any modifications within the spirit and principle of the present invention, equivalent replacements or improvements should be included in the scope of the present invention Inside.

9 9

Claims (8)

  1. 1. 一种实现Android手机远程交互的控制方法,包括步骤: 向Android手机下发输入事件;接收下发的输入事件,并向Android手机转发该输入事件; 将收到的输入事件插入到WindowManager的输入事件队列中; 定时向Android手机下达截屏指令; 响应截屏指令,并将截取到的屏幕画面上传; 接收上传的屏幕画面,并向远程控制终端转发该截屏画面; 接收并显示该截屏画面;其特征在于,所述将收到的输入事件插入到WindowManager的输入事件队列中的步骤中,控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中。 A control method implemented Android mobile remote interaction, comprising the steps of: an input event to send the Android mobile phone; issued the received input event and forwards the Android mobile input event; the received input event is inserted into the WindowManager input event queue; time released screenshots instruction to the Android mobile phone; response screenshot instructions, and taken to screen upload; receiving upload screen, and forwards the screenshots remote control terminal; receives and displays the screen shots; which wherein the received input events into the input step WindowManager event queue, the control receives an input event by the Android mobile device into the associated input WindowManager input event queue.
  2. 2.根据权利要求1所述的实现Android手机远程交互的控制方法,其特征在于,所述输入事件为键盘事件时,所述控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括:收到键盘事件后,将键盘事件转换成Android手机键盘输入事件序列码,找到并打开支持该键盘输入事件序列码的设备,向该设备写入转换后的键盘输入事件序列码。 The realization method of controlling Android mobile remote interaction claim, wherein, when the input event is a keyboard event, the control will receive input events into the input device by an associated WindowManager Android phone step input event queue comprises: after receiving keyboard events, keyboard events converting input events into a sequence of keyboard Android phone code, locate and open the keyboard input device supports the event code sequence, writing the converted keyboard to the device enter the code sequence of events.
  3. 3.根据权利要求1所述的实现Android手机远程交互的控制方法,其特征在于,所述输入事件为触屏事件时,所述控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括:收到触屏事件后,将触屏事件转换成Android手机触屏输入事件序列码,找到并打开支持该触屏输入事件序列码的设备,向该设备写入转换后的触屏输入事件序列码。 The realization method of controlling Android mobile remote interaction claim, wherein, when the input event is a touch event, the control receives an input event by an associated input device is inserted into the phone Android step WindowManager input event queue includes: after receiving the touch event, to convert the event into a touch-screen Android phone touch screen input code sequence of events, find and open the device supports touch screen input code sequence of events, write to the device after conversion into the touch input event sequence code.
  4. 4.根据权利要求1所述的实现Android手机远程交互的控制方法,其特征在于,所述输入事件为轨迹球事件时,所述控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括:收到轨迹球事件后,将轨迹球事件转换成Android手机轨迹球输入事件序列码,找到并打开支持该轨迹球输入事件序列码的设备,向该设备写入转换后的轨迹球输入事件序列码。 The realization method of controlling Android mobile remote interaction claim, characterized in that the input event is an event trackball, the control input event received by the associated input device is inserted into the phone Android step WindowManager input event queue include: event after receiving a trackball, the trackball will convert the event into Android trackball input code sequence of events, find and open the trackball device supports input code sequence of events, write to the device trackball converted into the serial code input events.
  5. 5. 一种实现Android手机远程交互的控制系统,包括:远程控制终端:向Android手机下发输入事件,接收并显示从远程控制代理转发来的Android手机的截屏画面;远程控制代理:接收远程控制终端下发的输入事件且向Android手机转发该输入事件,并向远程控制终端转发从Android手机上传的截屏画面;所述远程控制终端或远程控制代理定时向Android手机下达截屏指令; 其特征在于,还包括:Android手机:响应截屏指令,并将截取到的屏幕画面上传给远程控制代理,另外,控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中。 A control system implemented Android mobile remote interaction, comprising: a remote control terminal: the input event is sent to the Android mobile phone, to receive and display the Android phone forwarded from the remote control proxy screenshots; Remote Control Agent: receiving a remote control delivered by the terminal input event and forwards the Android mobile phone of the input event, and forward the remote control terminal a screen shot uploaded from Android phone; the remote terminal or the remote control agent the timing issued screenshots instruction to Android phone; wherein, further comprising: Android mobile phone: in response to an instruction screenshots, and upload the intercepted screen to the remote control agent, further, the control will receive input events into the event queue WindowManager input by an associated input device Android phone.
  6. 6.根据权利要求5所述的实现Android手机远程交互的控制系统,其特征在于,所述输入事件为键盘事件时,所述Android手机控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的过程为:所述Android收到键盘事件后,将键盘事件转换成Android手机键盘输入事件序列码, 找到并打开支持该键盘输入事件序列码的设备,向该设备写入转换后的键盘输入事件序列码。 The realization of the control system 5 Android mobile remote interaction claim, wherein, when the input event is a keyboard event, the Android mobile phone will receive control input event into an associated input device by the Android mobile phone WindowManager to input event queue process is: after receiving the Android keyboard events, keyboard events will be converted into a sequence of events Android phone keypad to enter the code, find and open the keyboard input device supports event-sequence code, write to the device after conversion into the keyboard input code sequence of events.
  7. 7.根据权利要求5所述的实现Android手机远程交互的控制系统,其特征在于,所述输入事件为触屏事件时,所述Android手机控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括:所述Android手机收到触屏事件后,将触屏事件转换成Android手机触屏输入事件序列码,找到并打开支持该触屏输入事件序列码的设备,向该设备写入转换后的触屏输入事件序列码。 7. A control system according to realize Android mobile remote interaction claim, wherein said input event when the event is a touch event, the Android mobile control device to receive input from the associated phone Android the step of inserting WindowManager input event queue comprises: after receiving the Android mobile phone touch event, the touch event converting input events into a sequence of touch Android phone code, locate and support the open touch input event sequence code device to convert a touch screen input device writes the event code sequence.
  8. 8.根据权利要求5所述的实现Android手机远程交互的控制系统,其特征在于,所述输入事件为轨迹球事件时,所述Android手机控制将收到的输入事件由Android手机的相关输入设备插入到WindowManager的输入事件队列中的步骤包括:所述Android手机收到轨迹球事件后,将轨迹球事件转换成Android手机轨迹球输入事件序列码,找到并打开支持该轨迹球输入事件序列码的设备,向该设备写入转换后的轨迹球输入事件序列码。 8. The control system 5 to achieve the Android mobile remote interaction claim, wherein said input event when the event is an event trackball, the Android mobile control device to receive input from the associated phone Android WindowManager inserted into the input event queue comprises the step of: after the Android mobile trackball received event, converts the event into Android trackball trackball input event sequence code, locate and support the open event sequence code input trackball device, the trackball to the input sequence of events to write code conversion apparatus.
CN 201010296659 2010-09-29 2010-09-29 Control method and system for realizing remote interaction of Android cell phones CN102438029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010296659 CN102438029B (en) 2010-09-29 2010-09-29 Control method and system for realizing remote interaction of Android cell phones

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010296659 CN102438029B (en) 2010-09-29 2010-09-29 Control method and system for realizing remote interaction of Android cell phones

Publications (2)

Publication Number Publication Date
CN102438029A true true CN102438029A (en) 2012-05-02
CN102438029B CN102438029B (en) 2015-01-14

Family

ID=45985901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010296659 CN102438029B (en) 2010-09-29 2010-09-29 Control method and system for realizing remote interaction of Android cell phones

Country Status (1)

Country Link
CN (1) CN102438029B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999386A (en) * 2012-11-08 2013-03-27 山东大学 Method for achieving multi-message queue mechanism to improve performance in single process
CN104714634A (en) * 2013-12-13 2015-06-17 奇点新源国际技术开发(北京)有限公司 Remote input method and system
CN105391832A (en) * 2015-11-24 2016-03-09 湖北大学 Hardware information detection system used for detecting hardware state of smartphone
CN105657551A (en) * 2014-12-05 2016-06-08 北京奇虎科技有限公司 Method and apparatus used by smart television to respond to analog key
WO2017092315A1 (en) * 2015-12-01 2017-06-08 乐视控股(北京)有限公司 Method and device for controlling television

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291488A (en) * 2008-03-24 2008-10-22 中兴通讯股份有限公司 Screen printing method on mobile terminal
CN101610544A (en) * 2009-07-20 2009-12-23 中兴通讯股份有限公司 Remote control method and device
US20100227605A1 (en) * 2009-03-09 2010-09-09 Aymon Patrick Fournier Control Of A Remote Mobile Device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291488A (en) * 2008-03-24 2008-10-22 中兴通讯股份有限公司 Screen printing method on mobile terminal
US20100227605A1 (en) * 2009-03-09 2010-09-09 Aymon Patrick Fournier Control Of A Remote Mobile Device
CN101610544A (en) * 2009-07-20 2009-12-23 中兴通讯股份有限公司 Remote control method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JANLA: "《Android事件处理》", 13 June 2009, article "Android事件处理" *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999386A (en) * 2012-11-08 2013-03-27 山东大学 Method for achieving multi-message queue mechanism to improve performance in single process
CN102999386B (en) * 2012-11-08 2015-05-27 山东大学 Method for achieving multi-message queue mechanism to improve performance in single process
CN104714634A (en) * 2013-12-13 2015-06-17 奇点新源国际技术开发(北京)有限公司 Remote input method and system
CN104714634B (en) * 2013-12-13 2017-12-26 奇点新源国际技术开发(北京)有限公司 A remote input method and system
CN105657551A (en) * 2014-12-05 2016-06-08 北京奇虎科技有限公司 Method and apparatus used by smart television to respond to analog key
CN105391832A (en) * 2015-11-24 2016-03-09 湖北大学 Hardware information detection system used for detecting hardware state of smartphone
WO2017092315A1 (en) * 2015-12-01 2017-06-08 乐视控股(北京)有限公司 Method and device for controlling television

Also Published As

Publication number Publication date Type
CN102438029B (en) 2015-01-14 grant

Similar Documents

Publication Publication Date Title
US20090235281A1 (en) Handheld electronic device, input device and method thereof, and display device and method thereof
CN1867012A (en) Method for remote controlling computer based on intelligent mobile phone platform
US20140089487A1 (en) Control of a remote computer device
CN102802068A (en) Remote control method and system smart television
US20050186913A1 (en) Remote user interface
US20110265009A1 (en) Terminal services view toolbox
CN102215041A (en) Intelligent data sending tool and receiving tool relevant to touch screen
CN102215426A (en) Smart television set-top box controlled by tablet personal computer or smart phone
US20120146884A1 (en) Control transfer apparatus, control transfer system and method thereof
US20130273853A1 (en) Mobile device monitoring and testing
CN104898952A (en) Terminal screen splitting implementing method and terminal
CN103744763A (en) Mobile terminal synchronous control method of PC (personal computer) end in automated testing
US20110307571A1 (en) Hierarchical display-server system and method
CN101477432A (en) Electronic device, its application program opening method and function image display method
US20140337748A1 (en) Method and apparatus for displaying user interface through sub device that is connectable with portable electronic device
US20120235924A1 (en) Display systems, methods, and apparatus
US20150067536A1 (en) Gesture-based Content Sharing Between Devices
WO2012169157A1 (en) Supported device, support device, inter-equipment guide system, recording medium, and integrated circuit
CN103150132A (en) Screen transmission method and electronic equipment
CN102033838A (en) Terminal control method, terminal and computer
CN102520899A (en) Universal cockpit display management system and method for developing corresponding display and control systems
CN102707894A (en) Input method and device applied to multi-display interaction
US20140298226A1 (en) Display apparatus displaying user interface and method of providing the user interface
CN102722337A (en) Folding display method and device of rolling operation
CN103813202A (en) Smart television with interactive function, handheld device with interactive function and interactive method of smart television and handheld device

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model