CN113342448A - Method for realizing remote control of mobile phone based on non-root permission - Google Patents

Method for realizing remote control of mobile phone based on non-root permission Download PDF

Info

Publication number
CN113342448A
CN113342448A CN202110720614.7A CN202110720614A CN113342448A CN 113342448 A CN113342448 A CN 113342448A CN 202110720614 A CN202110720614 A CN 202110720614A CN 113342448 A CN113342448 A CN 113342448A
Authority
CN
China
Prior art keywords
event
mobile phone
party
screen
controlled party
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110720614.7A
Other languages
Chinese (zh)
Inventor
林涛睿
王剑峰
林鹏程
赖如金
刘斌
李宏明
王文斌
王优
邹想中
李梦艳
朱霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen compuchip Information Technology Co.,Ltd.
Original Assignee
Shenzhen Vclusters Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Vclusters Information Technology Co ltd filed Critical Shenzhen Vclusters Information Technology Co ltd
Priority to CN202110720614.7A priority Critical patent/CN113342448A/en
Publication of CN113342448A publication Critical patent/CN113342448A/en
Pending legal-status Critical Current

Links

Images

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/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a method for realizing remote control of a mobile phone based on non-root authority, which comprises the following steps: the control party encapsulates the gesture operation content of the screen of the control party into an event and sends the event to the controlled party, the controlled party receives the event information, the event information is analyzed and converted and then sent to the screen of the control party, and the screen of the controlled party completes the gesture operation instruction contained in the event information; by the method, the other mobile phone can be remotely controlled by the mobile phone conveniently under the condition that the root authority of the mobile phone is not required to be acquired, so that the remote assistance threshold of the mobile terminal is reduced, and the safety and the stability of the data of the mobile phone are not influenced.

Description

Method for realizing remote control of mobile phone based on non-root permission
Technical Field
The invention relates to the technical field of remote control of mobile phones, in particular to a method for realizing remote control of a mobile phone based on non-root authority.
Background
The mobile phone is one of the essential and portable electronic products of modern people, and has been deeply integrated into the work and life of people. However, many people encounter various problems that cannot be solved by themselves in the process of using the mobile phone, which is particularly obvious for mobile phone users with higher ages. Remote control is a convenient mode, and the problem can be solved by installing the app in the mobile phones of the two parties in a mode that one mobile phone remotely controls the other mobile phone, which is similar to a remote assistance function of a pc end.
The remote control of the mobile phone end can help people to solve problems anytime and anywhere, reduces the cost for people to learn to use the mobile phone and solve problems when using the mobile phone, and brings convenience and benefits to life of people.
When the remote control function is used at present, the mobile phone of the controlled party is required to acquire root authority to achieve the control function, so that the problems brought about are as follows:
(1) remotely controlling the mobile phone by using the mobile phone, wherein a root authority of the mobile phone needs to be acquired;
(2) the data and system security of the mobile phone of the controlled party are reduced;
(3) the difficulty and the cost of using the remote control function by the user are improved.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a method for realizing remote control of a mobile phone based on non-root authority. The problems in the prior art are solved by transmitting the screen gesture operation data through a protocol and calling through barrier-free service.
In order to achieve the purpose, the invention adopts the following specific scheme:
the invention provides a method for realizing remote control of a mobile phone based on non-root authority, which comprises the following steps:
s1, the control party packages the gesture operation content of the screen into an event and sends the event to the controlled party; the control and controlled party is in a communication connection state, and data such as WeChat, qq and the like are transmitted through communication software;
s2, the controlled party receives the event information, analyzes and converts the event information and then sends the event information to the screen of the controlled party;
and S3, finishing the gesture operation instruction contained in the event information by the screen of the controlled party.
Further, step S1 specifically includes: the method comprises the steps that a control party creates a self-defined event, a processor collects a touch event of a screen, packages the type, the duration (duration) of the event, the number (id) of the event, the coordinates (x and y) of the last event and the coordinates (x 'and y') of the current event according to a control protocol, and then transmits the packaged data to a controlled party.
Further, the type of the event includes any one or more of the following actions: click, double click, long press, slide, lift.
The control protocol defines each data in the event, and then the packaged data is sent through a protocol such as TCP/IP.
Further, step S2 specifically includes:
the controlled party self-defines the Android barrier-free service, analyzes the event data transmitted by the controlled party and re-encapsulates the event data into the event type required by the self-defined barrier-free service, and sends the event to the screen of the controlled party through the self-defined barrier-free service DispatcGesture function, so that the purpose of control is achieved.
Further, step S2 further includes the following steps:
s21, analyzing the event data transmitted by the controlled party;
s22, encapsulating the analyzed data into GesturreDescription.
S23, storing the GesturDescription.Stroke Description data into a Queue;
s24, creating a self-defined service component inherited from the Android accessitiveService;
s25, acquiring GesturDescription.Stroke Description event data from the Queue in the self-defined service;
s26, calling DispatchGesture (GesturgeDescription. Stroke Description, GesturgeResultCallback) in the customized service and sending GesturgeDescription. Stroke Description data to the Android system to trigger an event on the mobile phone screen of the controlled party;
s27, get the next event from Queue in the onCompleted function of GestureResultCallback and execute the operation of S26.
Through the steps, the operation gesture data of the control party is continuously sent to the mobile phone screen of the controlled party and executed, and therefore remote control of the mobile phone is achieved.
By adopting the technical scheme of the invention, the invention has the following beneficial effects:
the invention provides a method for realizing remote control of a mobile phone based on non-root authority, which comprises the following steps: the control party collects the pressing, sliding and lifting events of a user on a screen, packages the events according to a protocol and then transmits the events to the controlled party; the controlled party self-defines the Android barrier-free service, analyzes the event data transmitted by the control party and re-encapsulates the event data into the event type required by the self-defined barrier-free service, and sends the event to the screen through the self-defined dispatch Gesture function of the barrier-free service to achieve the purpose of control; by the method, the other mobile phone can be remotely controlled by the mobile phone conveniently under the condition that the root authority of the mobile phone is not required to be acquired, so that the remote assistance threshold of the mobile terminal is reduced, and the safety and the stability of the data of the mobile phone are not influenced.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention;
FIG. 2 is a flowchart of event information execution at a controlled party in accordance with an embodiment of the present invention;
fig. 3 is a basic flowchart for implementing remote control.
Detailed Description
The invention is further described below with reference to the following figures and specific examples.
The present invention will be described in detail with reference to FIGS. 1 to 3
The invention provides a method for realizing remote control of a mobile phone based on non-root authority, which comprises the following specific implementation scheme:
the method comprises the steps that a controller collects events of pressing, sliding and lifting of a screen of a user and packages the events according to a protocol and then transmits the events to a controlled party, the controlled party self-defines Android barrier-free service, analyzes event data transmitted by the controller and packages the event data into event types required by the self-defined barrier-free service again, and the events are transmitted to the screen through a self-defined dispatch Gesture function of the barrier-free service, so that the purpose of control is achieved. The method comprises the following steps:
the control method comprises the following steps:
1. and creating a self-defined touch event of the screen acquired by the event processor, packaging the type (clicking, double clicking, long pressing, sliding and lifting) of the event, the event duration, the event id, the coordinates x and y of the last event and the coordinates x 'and y' of the event according to a control protocol, and transmitting the packaged data to the controlled party.
The controlled party:
1. analyzing the event data transmitted by the controlled party;
2. encapsulating the analyzed data into GesturreDescription.
3. Storing GestureDescription, Stroke Description data in a Queue;
4. creating a self-defined service component inheriting from the Android, of the accessitivetService;
5. acquiring GesturDescription.Stroke Description event data from a Queue in the self-defined service;
6. calling in a custom service
dispatchGesture(GestureDescription.StrokeDescription,GestureResultCallback)
The method sends GesturDescription.Stroke Description data to an Android system trigger event;
7. the next event is fetched from the Queue in the onCompleted function of getureresultcallback and the operation of step 6 is performed.
Through the steps, the operation gesture data of the control party is continuously sent to the mobile phone screen of the controlled party and executed, and therefore remote control of the mobile phone is achieved.
The technical scheme realizes the control flow of fig. 3 through event information:
the control party sends information to the controlled party, the controlled party receives the information and confirms that the controlled party agrees to be controlled, and the control party obtains control authority to carry out remote operation.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (5)

1. A method for realizing remote control of a mobile phone based on non-root authority is characterized by comprising the following steps:
s1, the control party packages the gesture operation content of the screen into an event and sends the event to the controlled party;
s2, the controlled party receives the event information, analyzes and converts the event information and then sends the event information to the screen of the controlled party;
and S3, finishing the gesture operation instruction contained in the event information by the screen of the controlled party.
2. The method for realizing remote control of a mobile phone based on non-root permission of claim 1, wherein the step S1 specifically comprises: the method comprises the steps that a control party creates a self-defined event, a processor collects a touch event of a screen, packages the type, the duration, the number, the coordinate of the last event and the coordinate of the event according to a control protocol, and then transmits packaged data to a controlled party.
3. The method for realizing remote control of the mobile phone based on the non-root authority as claimed in claim 2, wherein the type of the event is any one of the following actions: click, double click, long press, slide, lift.
4. The method for realizing remote control of a mobile phone based on non-root permission of claim 1, wherein the step S2 specifically comprises:
the controlled party self-defines the Android barrier-free service, analyzes the event data transmitted by the controlled party and re-encapsulates the event data into the event type required by the self-defined barrier-free service, and sends the event to the self screen of the controlled party through the self-defined barrier-free service DispatcGesture function.
5. The method for realizing remote control of a mobile phone based on non-root permission of claim 4, wherein the step S2 further comprises the following steps:
s21, analyzing the event data transmitted by the controlled party;
s22, encapsulating the analyzed data into GesturreDescription.
S23, storing the GesturDescription.Stroke Description data into a Queue;
s24, creating a self-defined service component inherited from the Android accessitiveService;
s25, acquiring GesturDescription.Stroke Description event data from the Queue in the self-defined service;
s26, calling in the customized service
The method comprises the following steps of (1) dispatch Gesture (GesturreDescription. Stroke Description, GesturreResultCallback) and sending GesturreDescription. Stroke Description data to a mobile phone screen trigger event of an Android system at a controlled party;
s27, get the next event from Queue in the onCompleted function of GestureResultCallback and execute the operation of S26.
CN202110720614.7A 2021-06-28 2021-06-28 Method for realizing remote control of mobile phone based on non-root permission Pending CN113342448A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110720614.7A CN113342448A (en) 2021-06-28 2021-06-28 Method for realizing remote control of mobile phone based on non-root permission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110720614.7A CN113342448A (en) 2021-06-28 2021-06-28 Method for realizing remote control of mobile phone based on non-root permission

Publications (1)

Publication Number Publication Date
CN113342448A true CN113342448A (en) 2021-09-03

Family

ID=77479265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110720614.7A Pending CN113342448A (en) 2021-06-28 2021-06-28 Method for realizing remote control of mobile phone based on non-root permission

Country Status (1)

Country Link
CN (1) CN113342448A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120157076A1 (en) * 2010-12-15 2012-06-21 Samsung Electronics Co., Ltd. Apparatus and method for remotely controlling in mobile communication terminal
CN105007377A (en) * 2015-07-22 2015-10-28 上海斐讯数据通信技术有限公司 Cellphone remote control device, system and method
CN109165062A (en) * 2018-07-24 2019-01-08 苏宁易购集团股份有限公司 A kind of terminal remote assists control method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120157076A1 (en) * 2010-12-15 2012-06-21 Samsung Electronics Co., Ltd. Apparatus and method for remotely controlling in mobile communication terminal
CN105007377A (en) * 2015-07-22 2015-10-28 上海斐讯数据通信技术有限公司 Cellphone remote control device, system and method
CN109165062A (en) * 2018-07-24 2019-01-08 苏宁易购集团股份有限公司 A kind of terminal remote assists control method and system

Similar Documents

Publication Publication Date Title
CN104992538B (en) Exchange method and terminal between a kind of terminal and remote controler
CN102750146B (en) Based on the method and the IPTV that realize in the IPTV of Android system that analog mouse controls
CN105302364B (en) It is remotely controlled the method and system of Android device
CN104609271A (en) Non-contact elevator call system and implementation method thereof
CN105404385B (en) A kind of method and device of intelligent display terminal and somatosensory device realization data interaction
JP2012123591A5 (en)
WO2020103680A1 (en) Data communication method, and human-machine interaction system
WO2015144067A1 (en) Method for controlling smart television based on android system
CN108008992A (en) One kind input operation processing method, processing unit and computer-readable recording medium
CN103957319A (en) Method for remotely controlling target equipment through user equipment and user equipment
KR20150074375A (en) Smart device for controlling robot of various type in robot platform configuration and method thereof
CN105100488A (en) Smart phone and control method for starting Bluetooth function of smart phone by shaking
CN109885236B (en) Method for realizing interactive operation with remote system desktop based on mobile equipment
CN105100487A (en) Smart phone and control method for starting WIFI function of smart phone by shaking
CN113342448A (en) Method for realizing remote control of mobile phone based on non-root permission
CN103354619A (en) Method and system for remotely controlling digital television terminal through mobile terminal
KR100548368B1 (en) A method and a apparatus of dynamic java push for mobile phone
WO2019218830A1 (en) General management method and system for smart device
WO2006080306A1 (en) Linkage operation method and communication terminal apparatus
CN104202638A (en) Key remote control and method for controlling electronic device through same
CN105207747B (en) A kind of data transmission method based on HID protocol
CN104469657B (en) Audio communication system and equipment based on WINDOWS operating systems
WO2018196413A1 (en) Method and apparatus for operating mobile terminal, electronic device, and computer readable storage medium
CN114490134A (en) Event processing method, system, device, computer equipment and storage medium
CN204046595U (en) Wearable device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211215

Address after: 518000 B901, Shenzhen national engineering laboratory building, No. 20, Gaoxin South seventh Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Applicant after: Shenzhen compuchip Information Technology Co.,Ltd.

Address before: 518000 Building 201, No. 1, Qianwan Road, Qianhai Shenzhen-Hong Kong Cooperation Zone, Shenzhen, Guangdong Province (Admitted to Shenzhen Qianhai Business Secretary Co., Ltd.)

Applicant before: SHENZHEN VCLUSTERS INFORMATION TECHNOLOGY Co.,Ltd.