CN106780240A - Monitor the method and device of trip - Google Patents

Monitor the method and device of trip Download PDF

Info

Publication number
CN106780240A
CN106780240A CN201611042234.8A CN201611042234A CN106780240A CN 106780240 A CN106780240 A CN 106780240A CN 201611042234 A CN201611042234 A CN 201611042234A CN 106780240 A CN106780240 A CN 106780240A
Authority
CN
China
Prior art keywords
terminal equipment
application program
event
order
monitoring
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.)
Granted
Application number
CN201611042234.8A
Other languages
Chinese (zh)
Other versions
CN106780240B (en
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.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201611042234.8A priority Critical patent/CN106780240B/en
Publication of CN106780240A publication Critical patent/CN106780240A/en
Application granted granted Critical
Publication of CN106780240B publication Critical patent/CN106780240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • G06Q50/265Personal security, identity or safety
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72418User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services
    • H04M1/72421User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services with automatic activation of emergency service functions, e.g. upon sensing an alarm
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72418User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services
    • H04M1/72424User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services with manual activation of emergency-service functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides the method and device of monitoring trip, the method includes:When the first application program launching in monitoring first terminal equipment, whether the order event for monitoring the first application program generates;When obtaining order relevant information when monitoring that order event is generated, order relevant information is sent to server by the second application program, for order relevant information to be issued to the second terminal equipment being associated with first terminal equipment;The geographical location information of first terminal equipment is obtained with preset frequency by the second application program, and geographical location information is sent to server, for geographical location information to be issued to the second terminal equipment being associated with first terminal equipment.By the present invention, user can be improved ride to go on a journey the probability of timely and effective rescue is provided when causing danger situation, greatly ensure that the safety of user.

Description

Monitor the method and device of trip
Technical field
The present invention relates to field of computer technology, specifically, the present invention relates to a kind of method for monitoring trip, and one kind Monitor the device of trip.
Background technology
With the development in epoch, various terminal equipment has turned into instrument essential during people live, and various functions are strong Big terminal operating system and end application is continued to bring out, and is that user brings and more easily experiences, due to user's Use demand is more and more diversified, therefore, the function of each end application is also involved in the every aspect of user's life. User is ridden in the case of trip, and such as night overtime work is gone home in the way called a taxi by software, taken the vehicle of chauffeur software cooperation Way it is medium in the case of, user need when trip faces a danger, rescue can be in time got by terminal device so that Reduce the loss of the person and property.
In the prior art, means cannot be sent by existing information when user runs into crisis situations and sends emergency in time Information, such as makes a phone call, sends short messages and instant communication message, therefore cannot timely be rescued.Therefore, do not have in the prior art The technical solution of strong rescue guarantee is provided for the safety trip of user, is led to not to meet user and safety is compeled It is essential and asks.
The content of the invention
To overcome above-mentioned technical problem or solving above-mentioned technical problem at least in part, spy proposes following technical scheme:
Embodiments of the invention propose a kind of method for monitoring trip, including:
When the first application program launching in monitoring first terminal equipment, monitoring the order event of the first application program is No generation;
When obtaining order relevant information when monitoring that order event is generated, order correlation is believed by the second application program Breath is sent to server, for order relevant information to be issued to the second terminal equipment being associated with first terminal equipment;
The geographical location information of first terminal equipment is obtained with preset frequency by the second application program, and by geographical position Information is sent to server, is set for geographical location information is issued into the second terminal being associated with first terminal equipment It is standby.
Preferably, the mode of order event generation, including:
Order event is generated into request by the first application program to send to server, and the response that the reception server is returned Message is generated in the order of order event generation request.
Alternatively, the method also includes:
The embedded event monitor in the first application program;
Wherein, when the first application program launching in monitoring first terminal equipment, the order of the first application program is monitored Whether event generates, including:
When the first application program launching in monitoring first terminal equipment, run case watch-dog;
Implementation procedure to the first application program is monitored, with ordering of being determined to that trigger event watch-dog acted Single generation event;
Wherein, order relevant information is obtained when monitoring that order event is generated, including:
Order generation event is notified to event monitor, and order relevant information is obtained by event monitor.
Preferably, event monitor is embedded in the code in system framework layer, is managed by system framework layer.
Preferably, after embedded event monitor in the first application program, also include:
When predetermined triggering command is detected, event monitor is disabled;
Wherein, predetermined triggering command includes the triggering command arrived by predetermined triggering interface and by event-monitoring Any one of triggering command of device self-generating.
Alternatively, the method also includes:
According to the geographical location information of the first terminal equipment got with preset frequency, in the map of the second application program Geographical position where updating mark first terminal equipment with preset frequency in display interface, and geographical position is sent to service Device, for the geographical position where updating mark first terminal equipment in the map denotation interface of second terminal equipment.
Alternatively, the method also includes:
According to the geographical location information of the first terminal equipment got with preset frequency, the fortune of first terminal equipment is determined Dynamic rail mark;
In the movement locus of the map denotation interface display first terminal equipment of the second application program, and movement locus is sent out Server is delivered to, for showing the movement locus of first terminal equipment in the map denotation interface of second terminal equipment.
Alternatively, the method also includes:
According to the movement locus of first terminal equipment, the displacement of first terminal equipment in the given time is calculated;
When displacement is less than predetermined distance threshold, corresponding prompt message to server is generated and sent, for Corresponding prompt message is generated in second terminal equipment.
Alternatively, the method also includes:
When detecting predetermined trigger action by the second application program, the audio frequency apparatus for starting first terminal equipment is carried out Record to obtain audio-frequency information;
Audio-frequency information is sent to server, for audio-frequency information to be issued to be associated with first terminal equipment Two terminal devices.
Alternatively, after getting audio-frequency information, also include:
The annotated audio information at first terminal equipment current geographic position in the map denotation interface of the second application program Prompting mark, and the prompting of current geographic position and audio-frequency information mark is sent to server, in second terminal The prompting of annotated audio information is identified at the current geographic position of first terminal equipment in the map denotation interface of equipment.
Preferably, when first terminal equipment is in screen activation state, predetermined trigger action includes the pre- earnest of triggering Manage the operation of button, trigger any one of predetermined operation of screen virtual button;
When first terminal equipment is in lock state of screen, predetermined trigger action is included on screen with desired trajectory Perform any one of the operation slided, the operation for triggering predetermined physical button.
Alternatively, the method also includes:
When monitoring that first terminal equipment cannot be by server and during second terminal equipment communication, the corresponding prompting of generation Text message;
Text message is will be prompted to be sent to second terminal equipment as short message.
Preferably, second terminal equipment is the associate device by first terminal selection of equipment, and association is based on first terminal Equipment user produces with the relation of second terminal user.
Another embodiment of the present invention proposes a kind of device for monitoring trip, including:
Monitoring modular, for when the first application program launching in monitoring first terminal equipment, journey to be applied in monitoring first Whether the order event of sequence generates;
First sending module, during for obtaining order relevant information when monitoring that order event is generated, should by second Order relevant information is sent to server with program, it is related to first terminal equipment for order relevant information is issued to The second terminal equipment of connection;
Obtain and sending module, the geographical position for obtaining first terminal equipment with preset frequency by the second application program Confidence is ceased, and geographical location information is sent to server, for geographical location information is issued to and first terminal equipment Associated second terminal equipment.
Preferably, monitoring modular, including:
Transmitting and receiving unit, sends to server for order event to be generated into request by the first application program, and The order in response to the generation request of order event that the reception server is returned generates message.
Alternatively, the device also includes:
Embedded module, for the embedded event monitor in the first application program;
Wherein, monitoring modular, including:
Running unit, for when the first application program launching in monitoring first terminal equipment, run case watch-dog;
Monitoring unit, monitors for the implementation procedure to the first application program, to be determined to trigger event monitoring The order generation event that device is acted;
Wherein, the first sending module is used for
Order generation event is notified to event monitor, and order relevant information is obtained by event monitor.
Preferably, event monitor is embedded in the code in system framework layer, is managed by system framework layer.
Preferably, embedded module, also includes:
Detection unit, for when predetermined triggering command is detected, disabling event monitor;
Wherein, predetermined triggering command includes the triggering command arrived by predetermined triggering interface and by event-monitoring Any one of triggering command of device self-generating.
Alternatively, the device also includes:
First mark and sending module, the geographical position letter of the first terminal equipment got with preset frequency for basis Breath, the geographical position where mark first terminal equipment is updated with preset frequency in the map denotation interface of the second application program Put, and geographical position is sent to server, for updating mark first in the map denotation interface of second terminal equipment Geographical position where terminal device.
Alternatively, the device also includes:
Determining module, the geographical location information of the first terminal equipment got with preset frequency for basis determines The movement locus of one terminal device;
Display and sending module, for the motion of the map denotation interface display first terminal equipment in the second application program Track, and movement locus is sent to server, for the display first in the map denotation interface of second terminal equipment eventually The movement locus of end equipment.
Alternatively, the device also includes:
Computing module, for the movement locus according to first terminal equipment, calculates first terminal equipment in the given time Displacement;
Generation and sending module, for when displacement is less than predetermined distance threshold, generating and sending corresponding prompting Information to server, for generating corresponding prompt message in second terminal equipment.
Alternatively, the device also includes:
First starting module, during for detecting predetermined trigger action by the second application program, starts first terminal The audio frequency apparatus of equipment is recorded to obtain audio-frequency information;
Second sending module, for audio-frequency information to be sent to server, for audio-frequency information is issued to and first The associated second terminal equipment of terminal device.
Alternatively, after getting audio-frequency information, also include:
Second mark and sending module, in the map denotation interface of the second application program first terminal equipment it is current The prompting mark of geographical location annotated audio information, and the prompting mark of current geographic position and audio-frequency information is sent to clothes Business device, for annotated audio at the current geographic position of the first terminal equipment in the map denotation interface of second terminal equipment The prompting mark of information.
Preferably, when first terminal equipment is in screen activation state, predetermined trigger action includes the pre- earnest of triggering Manage the operation of button, trigger any one of predetermined operation of screen virtual button;
When first terminal equipment is in lock state of screen, predetermined trigger action is included on screen with desired trajectory Perform any one of the operation slided, the operation for triggering predetermined physical button.
Alternatively, the device also includes:
Monitoring and generation module, monitor that first terminal equipment cannot be led to by server and second terminal equipment for working as During letter, the corresponding prompting text message of generation;
3rd sending module, sends to second terminal equipment for will be prompted to text message as short message.
Preferably, second terminal equipment is the associate device by first terminal selection of equipment, and association is based on first terminal Equipment user produces with the relation of second terminal user.
Still another embodiment of the invention proposes a kind of terminal device, including the device that above-mentioned monitoring is gone on a journey.
In embodiments of the invention, it is proposed that a kind of scheme for monitoring trip, first in first terminal equipment is monitored During application program launching, whether the order event for monitoring the first application program generates, and can in time obtain the life of the first application program Into order event, in time obtain order relevant information provide necessary premise guarantee;When monitor order event generate When obtaining order relevant information, order relevant information is sent to server by the second application program, for by order Relevant information is issued to the second terminal equipment being associated with first terminal equipment, is that first terminal equipment is running into emergency When can send distress signals there is provided necessary clue of suing and labouring to programmed emergency;By the second application program with preset frequency The geographical location information of first terminal equipment is obtained, and geographical location information is sent to server, for by geographical position Information is issued to the second terminal equipment being associated with first terminal equipment, realizes the geographical position for determining first terminal equipment Information, for whether the motion state for judging first terminal equipment in normal condition provides necessary premise guarantee, meanwhile, lead to Cross server and the geographical location information of first terminal equipment be issued to the second terminal equipment being associated with first terminal equipment, Second terminal equipment user can be allowed to grasp the geographical location information of first terminal equipment, be that first terminal equipment is running into promptly During situation distress signals can be sent there is provided necessary premise guarantee to programmed emergency;Further, user can be improved to multiply Car is gone on a journey and the probability of timely and effective rescue is provided when causing danger situation, greatly ensure that the safety of user
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description Obtain substantially, or recognized by practice of the invention.
Brief description of the drawings
The above-mentioned and/or additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments Substantially and be readily appreciated that, wherein:
Fig. 1 is the flow chart of the method for the monitoring trip of one embodiment in the present invention;
Fig. 2 is the sequence information exemplary plot of the sequence information got in a preferred embodiment in the present invention;
Fig. 3 is the structural representation of the device of the monitoring trip of another embodiment in the present invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached It is exemplary to scheme the embodiment of description, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " " used herein, " one It is individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that what is used in specification of the invention arranges Diction " including " refer to the presence of the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition One or more other features, integer, step, operation, element, component and/or their group.It should be understood that when we claim unit Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange Diction "and/or" includes one or more associated wholes or any cell of listing item and all combines.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also Understand, those terms defined in such as general dictionary, it should be understood that with the context with prior art The consistent meaning of meaning, and unless by specific definitions as here, will not otherwise use idealization or excessively formal implication To explain.
Fig. 1 is the flow chart of the method for the monitoring trip of one embodiment in the present invention.
In embodiments of the invention, the Description of content performed by each step is as follows:Step S1010:When monitor first eventually In end equipment during the first application program launching, whether the order event for monitoring the first application program generates;Step S1020:Work as prison When measuring acquisition order relevant information when order event is generated, order relevant information is sent to service by the second application program Device, for order relevant information to be issued to the second terminal equipment being associated with first terminal equipment;Step S1030:It is logical Cross the second application program with preset frequency obtain first terminal equipment geographical location information, and by geographical location information send to Server, for geographical location information to be issued to the second terminal equipment being associated with first terminal equipment.
In embodiments of the invention, it is proposed that a kind of method for monitoring trip, first in first terminal equipment is monitored During application program launching, whether the order event for monitoring the first application program generates, and can in time obtain the life of the first application program Into order event, in time obtain order relevant information provide necessary premise guarantee;When monitor order event generate When obtaining order relevant information, order relevant information is sent to server by the second application program, for by order Relevant information is issued to the second terminal equipment being associated with first terminal equipment, is that first terminal equipment is running into emergency When can send distress signals there is provided necessary clue of suing and labouring to programmed emergency;By the second application program with preset frequency The geographical location information of first terminal equipment is obtained, and geographical location information is sent to server, for by geographical position Information is issued to the second terminal equipment being associated with first terminal equipment, realizes the geographical position for determining first terminal equipment Information, for whether the motion state for judging first terminal equipment in normal condition provides necessary premise guarantee, meanwhile, lead to Cross server and the geographical location information of first terminal equipment be issued to the second terminal equipment being associated with first terminal equipment, Second terminal equipment user can be allowed to grasp the geographical location information of first terminal equipment, be that first terminal equipment is running into promptly During situation distress signals can be sent there is provided necessary premise guarantee to programmed emergency;Further, user can be improved to multiply Car is gone on a journey and the probability of timely and effective rescue is provided when causing danger situation, greatly ensure that the safety of user.Following pin Implementing for each step is described further:
Step S1010:When the first application program launching in monitoring first terminal equipment, the first application program of monitoring Whether order event generates.
For example, user User1 starts the application program App1 in terminal device A, in the system layer of terminal device A, such as eventually Android Framework (framework) layer in end equipment A, and/or Java virtual machine layer, end can be monitored by related Hook Function App1 starts in end equipment A, then, starts the process process1 whether the order event in monitoring App1 generates, for Whether the order event in monitoring App1 generates.
It should be noted that term " hook " is covered for being adjusted by intercepting the function transmitted between component software Changed with, message or event or increase operating system, the technology of the behavior of application program or other software component.And process The code of this intercepted function call, event or message is thus referred to as hook hook functions.Hook is generally used for various mesh Mark, including function is debugged and function is extended.Its example can be included in keyboard or mouse event is delivered to and answers Them are intercepted with before program, or hooking system service call (system call) or system function behavior, function perform knot Fruit etc., to monitor or change the function etc. of application program or other assemblies.The present embodiment can be supervised using hook hook functions Whether the order event surveyed in the first application program generates and obtains the relevant information of order.
Preferably, the mode that order event is generated in step S1010, including step S1011 (not shown)s;Step S1011:Order event is generated into request by the first application program to send to server, and the reception server return in response to The order generation message of order event generation request.
For example, in terminal device A, App1 sends to App1 corresponding servers the generation request of order event, when entering When journey process1 monitors that the order in response to the generation request of order event that the corresponding servers of App1 are returned generates message, Can determine that the order event in App1 has been generated.
Step S1020:Will by the second application program when obtaining order relevant information when monitoring that order event is generated Order relevant information is sent to server, for order relevant information is issued into be associated with first terminal equipment second Terminal device.
Preferably, second terminal equipment is the associate device by first terminal selection of equipment, and association is based on first terminal Equipment user produces with the relation of second terminal user.
It should be noted that in embodiments of the invention, in second with the associate device of first terminal selection of equipment eventually In end equipment, also it is provided with and mounted same application domain in first terminal equipment.Such as, being provided with terminal device A should Use program App2, terminal device B that identical application program App2 is also installed.
For example, user User1 pre-sets the second terminal equipment being associated with terminal device A for eventually in terminal device A End equipment B, when it is determined that the order event of App1 has been generated in terminal device A, obtains order related by process process1 Information, as shown in Figure 2 in order relevant information, including mode of riding, name driver, license plate number, driver's phone, trip when Between, departure place be the sequence information detailed with destination etc., and start the second application program App2, by the second application program The order relevant information that App2 will get sends server corresponding to App2, for the corresponding servers of App2 by order Relevant information is issued to terminal device B, then during mounted application program App2 can get terminal device A in terminal device B The order relevant information of generation.App2 is trip bodyguard.
In a preferred embodiment, the method also includes step 1040 (not shown);Step 1040:In the first application Embedded event monitor in program.
Wherein, step S1010 further includes step S1011 (not shown)s and step S1012 (not shown)s; Step S1011:When the first application program launching in monitoring first terminal equipment, run case watch-dog;Step S1012: Implementation procedure to the first application program is monitored, and the order acted with being determined to trigger event watch-dog generates thing Part.
Wherein, the step of order relevant information is obtained when monitoring that order event is generated in step S1020 specifically includes:Will Order generation event is notified to event monitor, and obtains order relevant information by event monitor.
Wherein, event monitor is embedded in the code in system framework layer, is managed by system framework layer.
It should be noted that those skilled in the art are it can be appreciated that Xposed frameworks are a can not change APK In the case of influence program operation, including modification system framework services, the powerful mould of various functions can be produced based on it Block, and operated simultaneously in the case where function does not conflict.Xposed frameworks can be that need not edit the feelings of any APK file The system framework of the functions such as beautification/optimization/modification to Android system is realized under condition.By Xposed frameworks, various work( The Xposed modules of energy go for different system versions, and ROM will not be made to produce any change.On the other hand, think Cancel and be also easy to using the function of module, because the change of all changes is stored within the middle of internal storage space, only Disabling application module and restarting equipment are needed, system originally just can be reduced.
Xposed frameworks are directed to the dynamic abduction technology of Android system, and it passes through replacement/system/bin/app_ Process programs control zygote processes (being responsible for the process of the new process of hatching in Android) so that app_process is being opened XposedBridge.jar bags can be loaded during dynamic, so as to complete the abduction of the virtual machine to Zygote processes and its establishment. Xposed completes the abduction to all of Hook functions when system boot, plus self-defined before and after the execution of former function Code.The means played a major role in Xposed frameworks are to carry out Hook to API or method.To sum up, Xposed frameworks pass through hook Sub (Hook) and replacement function, realize the renewal to user's application and/or system application, modification or customize.Specifically, Xposed Framework by hook obtain user to be modified apply and/or system application API, and replacement portion is pointed into routine call Point, wherein code, the content of modification that part can be reparation etc. is replaced, so as to realize the modification to applying.
The method being customized to application program in embodiments of the invention is based on BM frameworks.BM is based on to for application Kidnap to realize the modification to applying, i.e., application is customized.The operational efficiency that BM frameworks solve Xposed frameworks is low And the problem of system crash is easily caused, BM frameworks include four layer architectures:Virtual machine, framework, APK and plug-in unit.
BM frameworks are not modified to virtual machine, and wherein virtual machine is responsible for method monitoring and is replaced.BM frameworks provide BM Activity thread, and Hook methods are come by BM activity thread.Generally, should only what is be customized BM activity thread are just performed during with startup.BM APK are used to provide BM frameworks ability and this ability belongs to system Using.BM plug-in units are according to the developed plug-in unit of the different customizations of different application, the purpose is to be used to realize different functions.
A BM plug-in unit is just performed due to only having during application program launching, BM plug-in units are not performed when starting virtual machine, when should When being broken down with program, application program is closed.This mode will not cause to cause system to collapse due to the failure of BM frameworks Burst.And due to just performing a BM plug-in unit only in application program launching, therefore system running speed is not significantly affected.
A kind of improved procedure, delay loading can make the startup time of the application for being mounted with plug-in unit and the startup of normal use Time approaches.Delay loading is:When main program starts, delay loading plug-in unit receives plug-in unit to ensure the response time of main program Influence for minimum.
For example, in the embodiment of the present invention, the Android in application program App1 by BM frameworks in terminal device A Framework (framework) layer, and/or Java virtual machine layer insertion BM plug-in units, BM plug-in units include event monitor, work as user User1 runs the event monitor when App1 is started, while the implementation procedure of App1 is monitored by BM plug-in units, with true Surely the event that the event monitor of insertion in App1 is acted can be triggered, the thing of action such as obtains sequence information, works as BM When the order event that plug-in unit listens to App1 is generated, the event of the acquisition sequence information is notified to the event-monitoring in App1 Device, to promote to the event monitor in App1 obtain the action of App1 sequence informations, subsequent event monitor hook is obtained The order relevant information in App1 is taken, such as name driver, license plate number, driver's phone, travel time, departure place and destination is ordered Single information.Meanwhile, in system framework layer, Android Framework (framework) layer in such as terminal device A, and/or Java Virtual Machine Layer, manages calling for one or more Hook Functions in BM plug-in units, to realize that the event monitor in BM plug-in units is called accordingly Hook Function monitoring App1 in order event whether generate and call corresponding Hook Function to obtain order phase in App1 The function of pass information.App1 is chauffeur software, and drop drop is called a taxi, excellent step, easily arrive with car etc..
Preferably, in step S1010 after embedded event monitor in the first application program, also including step S1013;Step Rapid S1013:When predetermined triggering command is detected, event monitor is disabled;
Wherein, predetermined triggering command includes the triggering command arrived by predetermined triggering interface and by event-monitoring Any one of triggering command of device self-generating.
For example, Android Framework (framework) layer in application program App1 in terminal device A, and/or Java is empty The embedded BM plug-in units of plan machine layer, BM plug-in units include event monitor, and user User1 runs the event-monitoring when App1 is started Device, when terminal device A detects user by clicking on what the disabling BM plug-in units button of the human-computer interaction interface of terminal device A sent When disabling the triggering command of the BM plug-in units, the event monitor of BM plug-in units is disabled in terminal device A.
Again for example, Android Framework (framework) layer in application program App1 in terminal device A, and/or Java Virtual machine layer is embedded in BM plug-in units, and BM plug-in units include event monitor, and user User1 runs the event-monitoring when App1 is started Device, when terminal device A detects the abnormal conditions that the BM plug-in units occur in the process of running and the exception feelings such as throw exception information During condition, the BM plug-in units generate the triggering command of abnormal conditions, and the event monitor of BM plug-in units is then disabled in terminal device A.
By the present embodiment, can be according to the self-demand of user, under any circumstance, the control that user can be autonomous is in terminal Whether the first application program in first terminal equipment is monitored in equipment, further, improve the personalized of user needs Ask;Meanwhile, when in first terminal equipment the first application program be monitored during occur abnormal conditions when, can be timely automated Forbid being monitored the first application program in first terminal equipment, so as to ensure that the normal operation of the first application program, carry The experience of user high.
It should be noted that in embodiments of the invention, embedded BM in a certain application program that can be in terminal device Plug-in unit, in the case of BM plug-in units are had been inserted into a certain application program in terminal device, can also in the terminal device other Embedded BM plug-in units in application program, to realize being monitored other application programs simultaneously, do not limit herein.
Step S1030:The geographical location information of first terminal equipment is obtained with preset frequency by the second application program, and Geographical location information is sent to server, for geographical location information to be issued to be associated with first terminal equipment Two terminal devices.
Specifically, the geographical location information of first terminal equipment is obtained with preset frequency by the second application program, and will Geographical location information sends server corresponding to the second application program, for the corresponding server of the second application program by ground Reason positional information is issued to the second terminal equipment being associated with first terminal equipment.
For example, by the second application program App2 in terminal device A with preset frequency, such as every five seconds for example once, obtains terminal and sets The geographical location information of standby A, and the geographical location information of terminal device A is sent into server corresponding to App2, for The geographical location information of terminal device A is issued to App2 corresponding servers the terminal device being associated with terminal device A B。
In a preferred embodiment, the method also includes step S1050 (not shown)s;Step S1050:According to pre- The geographical location information of the first terminal equipment that frequency acquisition is arrived is determined, with predetermined in the map denotation interface of the second application program Frequency updates the geographical position where marking first terminal equipment, and geographical position is sent to server, for second Geographical position where mark first terminal equipment is updated in the map denotation interface of terminal device.
For example, in terminal device A, user User1 is associated by the second application program App2, setting with terminal device A Terminal device B, the related letter of order is obtained when the order event of the first application program App1 in monitoring terminal device A is generated Breath, and start App2, then, App2 once, can be obtained with preset frequency, such as every five seconds for example by the GPS chip in such as terminal device The geographical location information of terminal device A, then at the map denotation interface of App2 with 5 seconds frequency marking terminal device A once Geographical position, and the geographical location information is sent into server address corresponding to App2, terminal is set for server The geographical location information of standby A is issued to terminal device B, and terminal device B believes according to the geographical position of the terminal device A for receiving Breath, updates the geographical position of mark terminal device A in terminal device B map denotations interface.
In a preferred embodiment, the method also includes step S1060 (not shown)s and step S1070 (in figure not Show);Step S1060:According to the geographical location information of the first terminal equipment got with preset frequency, first terminal is determined The movement locus of equipment;Step S1070:In the motion rail of the map denotation interface display first terminal equipment of the second application program Mark, and movement locus is sent to server, for showing first terminal in the map denotation interface of second terminal equipment The movement locus of equipment.
For example, in terminal device A, user User1 is associated by the second application program App2, setting with terminal device A Terminal device B, the related letter of order is obtained when the order event of the first application program App1 in monitoring terminal device A is generated Breath, and start App2, then, App2 once, can be obtained with preset frequency, such as every five seconds for example by the GPS chip in such as terminal device The geographical location information of terminal device A, according to the geographical location information of the terminal device A for getting, with every five seconds for example frequency once Determine the movement locus of terminal device A, then App2 map denotation interface display terminal device A movement locus, and will The movement locus sends server address corresponding to App2, is issued to the movement locus of terminal device A for server Terminal device B, terminal device B according to the movement locus of the terminal device A for receiving, in terminal device B map denotations interface The movement locus of display terminal A.
Again for example, in terminal device A, user User1 is set and closed with terminal device A by the second application program App2 The terminal device B of connection, order is obtained when the order event of the first application program App1 in monitoring terminal device A is generated related Information, and start App2, then, App2 once, can be obtained with preset frequency, such as every five seconds for example by the GPS chip in such as terminal device Take the geographical location information of terminal device A, when terminal device A geographical position with get order relevant information in destination Less than distance is destined to, at such as 500 meters, the audio frequency apparatus for starting terminal device A reports predetermined audio to geographical position distance Prompt tone, such as " trip bodyguard App2 escorts for you!" etc., while corresponding text prompt information is generated, such as " user User1 will be arrived at once!" and text prompt message is sent into server address corresponding to App2, for clothes Text prompt message is issued to terminal device B by business device, and terminal is displayed in the map denotation interface of the App2 of terminal device B The movement locus side display text prompt message of device A, while also the text can be reported by the audio frequency apparatus of terminal device B Information.
In a preferred embodiment, the method also includes step S1080 (not shown)s and step S1090 (in figure not Show);Step S1080:According to the movement locus of first terminal equipment, the movement of first terminal equipment in the given time is calculated Distance;Step S1090:When displacement is less than predetermined distance threshold, corresponding prompt message is generated and sent to server, For generating corresponding prompt message in second terminal equipment.
If for example, the scheduled time is 5 minutes, according to the movement locus of terminal device A, obtaining current geographic position Location1, after 5 minutes, obtains terminal device A current geographic position Location2, the movement locus of computing terminal device A Displacement between middle Location1 and Location2, when displacement is less than predetermined distance threshold, at such as 300 meters, The corresponding emergency data message of App2 generations, such as " displacements of the user User1 in 5 minutes is less than 300 meters, moving process In may be obstructed!" and the emergency data message is sent into server address corresponding to App2, this is cried for help for server Data message is issued to the terminal device B being associated with terminal device A, and terminal device B is according to the emergency data letter for receiving Breath, generates corresponding prompt message in terminal device B, such as sends the information of voice prompt of " drop drop ", and user can set in terminal The emergency data message is checked in App2 in standby B.
In a preferred embodiment, the method also includes step S1100 (not shown)s and step S1110 (in figure not Show);Step S1100:When detecting predetermined trigger action by the second application program, start the audio of first terminal equipment Equipment is recorded to obtain audio-frequency information;Step S1110:Audio-frequency information is sent to server, for by audio-frequency information It is issued to the second terminal equipment being associated with first terminal equipment.
Preferably, when first terminal equipment is in screen activation state, predetermined trigger action includes the pre- earnest of triggering Manage the operation of button, trigger any one of predetermined operation of screen virtual button.
For example, when terminal device A is in screen activation state, predetermined trigger action includes the behaviour of triggering predetermined key Make or trigger predetermined operation of screen virtual button etc..
When first terminal equipment is in lock state of screen, predetermined trigger action is included on screen with desired trajectory Perform any one of the operation slided, the operation for triggering predetermined physical button.
For example, when terminal device A is in lock state of screen, predetermined trigger action is included on screen with pre- orbit determination Mark such as " Z " word sliding trace performs the operation slided or the operation for triggering predetermined volume increment key.
For example, when terminal device A is in lock state of screen, desired trajectory is detected by the second application program App2 When performing the operation slided such as " Z " word sliding trace, the audio frequency apparatus for starting terminal device A by App2 is recorded to obtain The audio distress signals and are sent server address corresponding to App2 by the audio distress signals of user User1 exhalation, with The audio distress signals are issued to the terminal device B being associated with terminal device A in server.
In a preferred embodiment, the method also includes step S1120 (not shown)s;Step S1120:Should second Identified with the prompting of annotated audio information at first terminal equipment current geographic position in the map denotation interface of program, and ought The prompting mark of preceding geographical position and audio-frequency information is sent to server, at the map denotation interface of second terminal equipment The prompting mark of annotated audio information at the current geographic position of middle first terminal equipment.
For example, after the audio frequency apparatus of terminal device A gets the audio distress signals of user User1, terminal device A's In map denotation interface in App2, the prompting mark of annotated audio information, such as one at terminal device A current geographic positions The prompting icon that toy trumpet is combined for such as 7 seconds with audio time length, and by terminal device A current geographical position, get use The audio-frequency information of family User1 and prompting icon send server address corresponding to App2, for server by terminal device A Current geographic position, audio-frequency information and prompting icon are issued to the terminal device B being associated with terminal device A;As terminal device B After receiving the above- mentioned information that server is issued, the user User2 of terminal device B can be checked in the App2 in its terminal device The related figure of residing geographical location when sending audio-frequency information to the current geographic position information and user User1 of terminal device A Mark, user User2 can listen to user User1 by the audio prompt icon in the map denotation interface for clicking on its terminal device Audio distress signals.
In a preferred embodiment, the method also includes step S1130 (not shown)s and step S1140 (in figure not Show);Step S1130:When monitoring that first terminal equipment cannot generate phase by server and during second terminal equipment communication The prompting text message answered;Step S1140:Text message is will be prompted to be sent to second terminal equipment as short message.
For example, cannot be carried out data transmission by network connection between terminal device A and terminal device B, or terminal sets When App2 is not installed in standby B, monitor that terminal device A cannot be by the corresponding servers of App2 and terminal by App2 Equipment B communicates, the corresponding prompting text message of App2 generations, and such as " user User1 has deviateed predetermined mobile 300 meters of route, exists The risk of improper movement!" or " user User1 this be engraved in trip during face a danger, ask emergency aid!" etc., and will ask Short message is rescued to be sent by way of the mobile network of common carrier is with short message to the terminal device being associated with terminal device A B。
Fig. 3 is the structural representation of the device of the monitoring trip of another embodiment in the present invention.
In embodiments of the invention, the Description of content performed by each module is as follows:Monitoring modular 310 ought monitor first eventually In end equipment during the first application program launching, whether the order event for monitoring the first application program generates;First sending module 320 When monitor order event generate when obtain order relevant information when, by the second application program by order relevant information send to Server, for order relevant information to be issued to the second terminal equipment being associated with first terminal equipment;Obtain and send out Module 330 is sent to pass through the geographical location information that the second application program obtains first terminal equipment with preset frequency, and by geographical position Confidence breath is sent to server, is set for geographical location information is issued into the second terminal being associated with first terminal equipment It is standby.
In embodiments of the invention, it is proposed that a kind of device for monitoring trip, first in first terminal equipment is monitored During application program launching, whether the order event for monitoring the first application program generates, and can in time obtain the life of the first application program Into order event, in time obtain order relevant information provide necessary premise guarantee;When monitor order event generate When obtaining order relevant information, order relevant information is sent to server by the second application program, for by order Relevant information is issued to the second terminal equipment being associated with first terminal equipment, is that first terminal equipment is running into emergency When can send distress signals there is provided necessary clue of suing and labouring to programmed emergency;By the second application program with preset frequency The geographical location information of first terminal equipment is obtained, and geographical location information is sent to server, for by geographical position Information is issued to the second terminal equipment being associated with first terminal equipment, realizes the geographical position for determining first terminal equipment Information, for whether the motion state for judging first terminal equipment in normal condition provides necessary premise guarantee, meanwhile, lead to Cross server and the geographical location information of first terminal equipment be issued to the second terminal equipment being associated with first terminal equipment, Second terminal equipment user can be allowed to grasp the geographical location information of first terminal equipment, be that first terminal equipment is running into promptly During situation distress signals can be sent there is provided necessary premise guarantee to programmed emergency;Further, user can be improved to multiply Car is gone on a journey and the probability of timely and effective rescue is provided when causing danger situation, greatly ensure that the safety of user.Following pin Implementing for modules is described further:
Monitoring modular 310 monitors the first application program when the first application program launching in monitoring first terminal equipment Order event whether generate.
For example, user User1 starts the application program App1 in terminal device A, in the system layer of terminal device A, such as eventually Android Framework (framework) layer in end equipment A, and/or Java virtual machine layer, end can be monitored by related Hook Function App1 starts in end equipment A, then, starts the process process1 whether the order event in monitoring App1 generates, for Whether the order event in monitoring App1 generates.
It should be noted that term " hook " is covered for being adjusted by intercepting the function transmitted between component software Changed with, message or event or increase operating system, the technology of the behavior of application program or other software component.And process The code of this intercepted function call, event or message is thus referred to as hook hook functions.Hook is generally used for various mesh Mark, including function is debugged and function is extended.Its example can be included in keyboard or mouse event is delivered to and answers Them are intercepted with before program, or hooking system service call (system call) or system function behavior, function perform knot Fruit etc., to monitor or change the function etc. of application program or other assemblies.The present embodiment can be supervised using hook hook functions Whether the order event surveyed in the first application program generates and obtains the relevant information of order.
Preferably, monitoring modular 310 includes transmitting and receiving unit (not shown);Transmitting and receiving unit is by the One application program sends to server the generation request of order event, and the reception server return in response to the generation of order event The order generation message of request.
For example, in terminal device A, App1 sends to App1 corresponding servers the generation request of order event, when entering When journey process1 monitors that the order in response to the generation request of order event that the corresponding servers of App1 are returned generates message, Can determine that the order event in App1 has been generated.First sending module 320 obtains order phase when monitoring that order event is generated During the information of pass, order relevant information is sent to server by the second application program, for order relevant information is issued To the second terminal equipment being associated with first terminal equipment.Preferably, second terminal equipment is to be selected by first terminal equipment Fixed associate device, association is produced based on first terminal equipment user and the relation of second terminal user.
It should be noted that in embodiments of the invention, in second with the associate device of first terminal selection of equipment eventually In end equipment, also it is provided with and mounted same application domain in first terminal equipment.Such as, being provided with terminal device A should Use program App2, terminal device B that identical application program App2 is also installed.
For example, user User1 pre-sets the second terminal equipment being associated with terminal device A for eventually in terminal device A End equipment B, when it is determined that the order event of App1 has been generated in terminal device A, obtains order related by process process1 Information, as shown in Figure 2 in order relevant information, including mode of riding, name driver, license plate number, driver's phone, trip when Between, departure place be the sequence information detailed with destination etc., and start the second application program App2, by the second application program The order relevant information that App2 will get sends server corresponding to App2, for the corresponding servers of App2 by order Relevant information is issued to terminal device B, then during mounted application program App2 can get terminal device A in terminal device B The order relevant information of generation.App2 is trip bodyguard.
In a preferred embodiment, the device also includes embedded module (not shown);Embedded module is in the first application Embedded event monitor in program.
Wherein, monitoring modular 310 further includes running unit (not shown) and monitoring unit (not shown); Running unit when the first application program launching in monitoring first terminal equipment, run case watch-dog;Monitoring unit is to The implementation procedure of one application program is monitored, and the order acted with being determined to trigger event watch-dog generates event.
Wherein, the first sending module 320 is used to notify order generation event to event monitor, and by event-monitoring Device obtains order relevant information.
Wherein, event monitor is embedded in the code in system framework layer, is managed by system framework layer.
It should be noted that those skilled in the art are it can be appreciated that Xposed frameworks are a can not change APK In the case of influence program operation, including modification system framework services, the powerful mould of various functions can be produced based on it Block, and operated simultaneously in the case where function does not conflict.Xposed frameworks can be that need not edit the feelings of any APK file The system framework of the functions such as beautification/optimization/modification to Android system is realized under condition.By Xposed frameworks, various work( The Xposed modules of energy go for different system versions, and ROM will not be made to produce any change.On the other hand, think Cancel and be also easy to using the function of module, because the change of all changes is stored within the middle of internal storage space, only Disabling application module and restarting equipment are needed, system originally just can be reduced.
Xposed frameworks are directed to the dynamic abduction technology of Android system, and it passes through replacement/system/bin/app_ Process programs control zygote processes (being responsible for the process of the new process of hatching in Android) so that app_process is being opened XposedBridge.jar bags can be loaded during dynamic, so as to complete the abduction of the virtual machine to Zygote processes and its establishment. Xposed completes the abduction to all of Hook functions when system boot, plus self-defined before and after the execution of former function Code.The means played a major role in Xposed frameworks are to carry out Hook to API or method.To sum up, Xposed frameworks pass through hook Sub (Hook) and replacement function, realize the renewal to user's application and/or system application, modification or customize.Specifically, Xposed Framework by hook obtain user to be modified apply and/or system application API, and replacement portion is pointed into routine call Point, wherein code, the content of modification that part can be reparation etc. is replaced, so as to realize the modification to applying.
The method being customized to application program in embodiments of the invention is based on BM frameworks.BM is based on to for application Kidnap to realize the modification to applying, i.e., application is customized.The operational efficiency that BM frameworks solve Xposed frameworks is low And the problem of system crash is easily caused, BM frameworks include four layer architectures:Virtual machine, framework, APK and plug-in unit.
BM frameworks are not modified to virtual machine, and wherein virtual machine is responsible for method monitoring and is replaced.BM frameworks provide BM Activity thread, and Hook methods are come by BM activity thread.Generally, should only what is be customized BM activity thread are just performed during with startup.BM APK are used to provide BM frameworks ability and this ability belongs to system Using.BM plug-in units are according to the developed plug-in unit of the different customizations of different application, the purpose is to be used to realize different functions.
A BM plug-in unit is just performed due to only having during application program launching, BM plug-in units are not performed when starting virtual machine, when should When being broken down with program, application program is closed.This mode will not cause to cause system to collapse due to the failure of BM frameworks Burst.And due to just performing a BM plug-in unit only in application program launching, therefore system running speed is not significantly affected.
A kind of improved procedure, delay loading can make the startup time of the application for being mounted with plug-in unit and the startup of normal use Time approaches.Delay loading is:When main program starts, delay loading plug-in unit receives plug-in unit to ensure the response time of main program Influence for minimum.
For example, in the embodiment of the present invention, the Android in application program App1 by BM frameworks in terminal device A Framework (framework) layer, and/or Java virtual machine layer insertion BM plug-in units, BM plug-in units include event monitor, work as user User1 runs the event monitor when App1 is started, while the implementation procedure of App1 is monitored by BM plug-in units, with true Surely the event that the event monitor of insertion in App1 is acted can be triggered, the thing of action such as obtains sequence information, works as BM When the order event that plug-in unit listens to App1 is generated, the event of the acquisition sequence information is notified to the event-monitoring in App1 Device, to promote to the event monitor in App1 obtain the action of App1 sequence informations, subsequent event monitor hook is obtained The order relevant information in App1 is taken, such as name driver, license plate number, driver's phone, travel time, departure place and destination is ordered Single information.Meanwhile, in system framework layer, Android Framework (framework) layer in such as terminal device A, and/or Java Virtual Machine Layer, manages calling for one or more Hook Functions in BM plug-in units, to realize that the event monitor in BM plug-in units is called accordingly Hook Function monitoring App1 in order event whether generate and call corresponding Hook Function to obtain order phase in App1 The function of pass information.App1 is chauffeur software, and drop drop is called a taxi, excellent step, easily arrive with car etc..
Preferably, in monitoring modular 310 after embedded event monitor in the first application program, also including detection unit; Detection unit disables event monitor when predetermined triggering command is detected;
Wherein, predetermined triggering command includes the triggering command arrived by predetermined triggering interface and by event-monitoring Any one of triggering command of device self-generating.
For example, Android Framework (framework) layer in application program App1 in terminal device A, and/or Java is empty The embedded BM plug-in units of plan machine layer, BM plug-in units include event monitor, and user User1 runs the event-monitoring when App1 is started Device, when terminal device A detects user by clicking on what the disabling BM plug-in units button of the human-computer interaction interface of terminal device A sent When disabling the triggering command of the BM plug-in units, the event monitor of BM plug-in units is disabled in terminal device A.
Again for example, Android Framework (framework) layer in application program App1 in terminal device A, and/or Java Virtual machine layer is embedded in BM plug-in units, and BM plug-in units include event monitor, and user User1 runs the event-monitoring when App1 is started Device, when terminal device A detects the abnormal conditions that the BM plug-in units occur in the process of running and the exception feelings such as throw exception information During condition, the BM plug-in units generate the triggering command of abnormal conditions, and the event monitor of BM plug-in units is then disabled in terminal device A.
By the present embodiment, can be according to the self-demand of user, under any circumstance, the control that user can be autonomous is in terminal Whether the first application program in first terminal equipment is monitored in equipment, further, improve the personalized of user needs Ask;Meanwhile, when in first terminal equipment the first application program be monitored during occur abnormal conditions when, can be timely automated Forbid being monitored the first application program in first terminal equipment, so as to ensure that the normal operation of the first application program, carry The experience of user high.
It should be noted that in embodiments of the invention, embedded BM in a certain application program that can be in terminal device Plug-in unit, in the case of BM plug-in units are had been inserted into a certain application program in terminal device, can also in the terminal device other Embedded BM plug-in units in application program, to realize being monitored other application programs simultaneously, do not limit herein.
Obtain and sending module 330 passes through the geographical position that the second application program obtains first terminal equipment with preset frequency Information, and geographical location information is sent to server, for geographical location information is issued to and first terminal equipment phase The second terminal equipment of association.
Specifically, the geographical location information of first terminal equipment is obtained with preset frequency by the second application program, and will Geographical location information sends server corresponding to the second application program, for the corresponding server of the second application program by ground Reason positional information is issued to the second terminal equipment being associated with first terminal equipment.
For example, by the second application program App2 in terminal device A with preset frequency, such as every five seconds for example once, obtains terminal and sets The geographical location information of standby A, and the geographical location information of terminal device A is sent into server corresponding to App2, for The geographical location information of terminal device A is issued to App2 corresponding servers the terminal device being associated with terminal device A B。
In a preferred embodiment, the device also includes the first mark and sending module (not shown);First mark And sending module is according to the geographical location information of the first terminal equipment got with preset frequency, on the ground of the second application program Geographical position where updating mark first terminal equipment with preset frequency in figure display interface, and geographical position is sent to clothes Business device, for the geographical position where updating mark first terminal equipment in the map denotation interface of second terminal equipment.
For example, in terminal device A, user User1 is associated by the second application program App2, setting with terminal device A Terminal device B, the related letter of order is obtained when the order event of the first application program App1 in monitoring terminal device A is generated Breath, and start App2, then, App2 once, can be obtained with preset frequency, such as every five seconds for example by the GPS chip in such as terminal device The geographical location information of terminal device A, then at the map denotation interface of App2 with 5 seconds frequency marking terminal device A once Geographical position, and the geographical location information is sent into server address corresponding to App2, terminal is set for server The geographical location information of standby A is issued to terminal device B, and terminal device B believes according to the geographical position of the terminal device A for receiving Breath, updates the geographical position of mark terminal device A in terminal device B map denotations interface.
In a preferred embodiment, the device also includes determining module (not shown) and display and sending module (figure Not shown in);Determining module determines first eventually according to the geographical location information of the first terminal equipment got with preset frequency The movement locus of end equipment;The map denotation interface display first terminal equipment of display and sending module in the second application program Movement locus, and movement locus is sent to server, for showing in the map denotation interface of second terminal equipment The movement locus of one terminal device.
For example, in terminal device A, user User1 is associated by the second application program App2, setting with terminal device A Terminal device B, the related letter of order is obtained when the order event of the first application program App1 in monitoring terminal device A is generated Breath, and start App2, then, App2 once, can be obtained with preset frequency, such as every five seconds for example by the GPS chip in such as terminal device The geographical location information of terminal device A, according to the geographical location information of the terminal device A for getting, with every five seconds for example frequency once Determine the movement locus of terminal device A, then App2 map denotation interface display terminal device A movement locus, and will The movement locus sends server address corresponding to App2, is issued to the movement locus of terminal device A for server Terminal device B, terminal device B according to the movement locus of the terminal device A for receiving, in terminal device B map denotations interface The movement locus of display terminal A.
Again for example, in terminal device A, user User1 is set and closed with terminal device A by the second application program App2 The terminal device B of connection, order is obtained when the order event of the first application program App1 in monitoring terminal device A is generated related Information, and start App2, then, App2 once, can be obtained with preset frequency, such as every five seconds for example by the GPS chip in such as terminal device Take the geographical location information of terminal device A, when terminal device A geographical position with get order relevant information in destination Less than distance is destined to, at such as 500 meters, the audio frequency apparatus for starting terminal device A reports predetermined audio to geographical position distance Prompt tone, such as " trip bodyguard App2 escorts for you!" etc., while corresponding text prompt information is generated, such as " user User1 will be arrived at once!" and text prompt message is sent into server address corresponding to App2, for clothes Text prompt message is issued to terminal device B by business device, and terminal is displayed in the map denotation interface of the App2 of terminal device B The movement locus side display text prompt message of device A, while also the text can be reported by the audio frequency apparatus of terminal device B Information.
In a preferred embodiment, the device also includes computing module (not shown) and generation and sending module (figure Not shown in);Computing module calculates the shifting of first terminal equipment in the given time according to the movement locus of first terminal equipment Dynamic distance;Generation and sending module generate and send corresponding prompt message extremely when displacement is less than predetermined distance threshold Server, for generating corresponding prompt message in second terminal equipment.
If for example, the scheduled time is 5 minutes, according to the movement locus of terminal device A, obtaining current geographic position Location1, after 5 minutes, obtains terminal device A current geographic position Location2, the movement locus of computing terminal device A Displacement between middle Location1 and Location2, when displacement is less than predetermined distance threshold, at such as 300 meters, The corresponding emergency data message of App2 generations, such as " displacements of the user User1 in 5 minutes is less than 300 meters, moving process In may be obstructed!" and the emergency data message is sent into server address corresponding to App2, this is cried for help for server Data message is issued to the terminal device B being associated with terminal device A, and terminal device B is according to the emergency data letter for receiving Breath, generates corresponding prompt message in terminal device B, such as sends the information of voice prompt of " drop drop ", and user can set in terminal The emergency data message is checked in App2 in standby B.
In a preferred embodiment, the device also includes the first starting module (not shown) and the second sending module (not shown);When first starting module detects predetermined trigger action by the second application program, start first terminal The audio frequency apparatus of equipment is recorded to obtain audio-frequency information;Second sending module sends to server audio-frequency information, with In audio-frequency information to be issued to the second terminal equipment that is associated with first terminal equipment.
Preferably, when first terminal equipment is in screen activation state, predetermined trigger action includes the pre- earnest of triggering Manage the operation of button, trigger any one of predetermined operation of screen virtual button.
For example, when terminal device A is in screen activation state, predetermined trigger action includes the behaviour of triggering predetermined key Make or trigger predetermined operation of screen virtual button etc..
When first terminal equipment is in lock state of screen, predetermined trigger action is included on screen with desired trajectory Perform any one of the operation slided, the operation for triggering predetermined physical button.
For example, when terminal device A is in lock state of screen, predetermined trigger action is included on screen with pre- orbit determination Mark such as " Z " word sliding trace performs the operation slided or the operation for triggering predetermined volume increment key.
For example, when terminal device A is in lock state of screen, desired trajectory is detected by the second application program App2 When performing the operation slided such as " Z " word sliding trace, the audio frequency apparatus for starting terminal device A by App2 is recorded to obtain The audio distress signals and are sent server address corresponding to App2 by the audio distress signals of user User1 exhalation, with The audio distress signals are issued to the terminal device B being associated with terminal device A in server.
In a preferred embodiment, the device also includes the second mark and sending module (not shown);Second mark And sending module annotated audio letter at first terminal equipment current geographic position in the map denotation interface of the second application program The prompting mark of breath, and the prompting mark of current geographic position and audio-frequency information is sent to server, for whole second The prompting of annotated audio information is identified at the current geographic position of first terminal equipment in the map denotation interface of end equipment.
For example, after the audio frequency apparatus of terminal device A gets the audio distress signals of user User1, terminal device A's In map denotation interface in App2, the prompting mark of annotated audio information, such as one at terminal device A current geographic positions The prompting icon that toy trumpet is combined for such as 7 seconds with audio time length, and by terminal device A current geographical position, get use The audio-frequency information of family User1 and prompting icon send server address corresponding to App2, for server by terminal device A Current geographic position, audio-frequency information and prompting icon are issued to the terminal device B being associated with terminal device A;As terminal device B After receiving the above- mentioned information that server is issued, the user User2 of terminal device B can be checked in the App2 in its terminal device The related figure of residing geographical location when sending audio-frequency information to the current geographic position information and user User1 of terminal device A Mark, user User2 can listen to user User1 by the audio prompt icon in the map denotation interface for clicking on its terminal device Audio distress signals.
In a preferred embodiment, the device also includes monitoring and generation module (not shown) and the 3rd sending module (not shown);Monitoring and generation module ought monitor that first terminal equipment cannot be led to by server and second terminal equipment During letter, the corresponding prompting text message of generation;3rd sending module will be prompted to text message and be sent to second eventually as short message End equipment.
For example, cannot be carried out data transmission by network connection between terminal device A and terminal device B, or terminal sets When App2 is not installed in standby B, monitor that terminal device A cannot be by the corresponding servers of App2 and terminal by App2 Equipment B communicates, the corresponding prompting text message of App2 generations, and such as " user User1 has deviateed predetermined mobile 300 meters of route, exists The risk of improper movement!" or " user User1 this be engraved in trip during face a danger, ask emergency aid!" etc., and will ask Short message is rescued to be sent by way of the mobile network of common carrier is with short message to the terminal device being associated with terminal device A B。
During those skilled in the art of the present technique are appreciated that the present invention includes being related to for performing operation described herein One or more of equipment.These equipment can be for needed for purpose and specially design and manufacture, or can also include general Known device in computer.These equipment have computer program of the storage in it, and these computer programs are optionally Activation is reconstructed.Such computer program can be stored in equipment (for example, computer) computer-readable recording medium or store It is suitable to storage e-command and to be coupled to respectively in any kind of medium of bus, the computer-readable medium is included but not Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory, magnetic card or light line card Piece.It is, computer-readable recording medium include being stored in the form of it can read by equipment (for example, computer) or transmission information any Jie Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or The combination of the frame in each frame and these structure charts and/or block diagram and/or flow graph in block diagram and/or flow graph.This technology is led Field technique personnel be appreciated that can by these computer program instructions be supplied to all-purpose computer, special purpose computer or other The processor of programmable data processing method is realized, so that by the treatment of computer or other programmable data processing methods Device is come the scheme specified in the frame or multiple frame that perform structure chart disclosed by the invention and/or block diagram and/or flow graph.
Those skilled in the art of the present technique are appreciated that in various operations, method, the flow discussed in the present invention Step, measure, scheme can be replaced, changed, combined or deleted.Further, it is each with what is discussed in the present invention Other steps, measure in kind operation, method, flow, scheme can also be replaced, changed, reset, decomposed, combined or deleted. Further, it is of the prior art with various operations, method, the flow disclosed in the present invention in step, measure, scheme Can also be replaced, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. it is a kind of to monitor the method gone on a journey, it is characterised in that including:
When the first application program launching in monitoring first terminal equipment, monitoring the order event of first application program is No generation;
When obtaining order relevant information when monitoring that order event is generated, order correlation is believed by the second application program Breath is sent to server, for the order relevant information to be issued to be associated with the first terminal equipment second eventually End equipment;
The geographical location information of the first terminal equipment is obtained with preset frequency by second application program, and will be described Geographical location information is sent to server, related to the first terminal equipment for the geographical location information is issued to The second terminal equipment of connection.
2. method according to claim 1, it is characterised in that the mode of the order event generation, including:
Order event is generated into request by first application program to send to server, and the response that the reception server is returned Message is generated in the order of order event generation request.
3. method according to claim 1, it is characterised in that also include:
The embedded event monitor in first application program;
Wherein, when the first application program launching in monitoring first terminal equipment, the order of first application program is monitored Whether event generates, including:
When the first application program launching in monitoring first terminal equipment, the event monitor is run;
Implementation procedure to first application program is monitored, and is acted with being determined to trigger the event monitor Order generation event;
Wherein, order relevant information is obtained when monitoring that order event is generated, including:
Order generation event is notified to the event monitor, and the related letter of order is obtained by the event monitor Breath.
4. method according to claim 3, it is characterised in that the event monitor is embedded in system framework layer Code, is managed by system framework layer.
5. method according to claim 3, it is characterised in that the event monitor embedded in the first application program Afterwards, also include:
When predetermined triggering command is detected, the event monitor is disabled;
Wherein, predetermined triggering command includes the triggering command arrived by predetermined triggering interface and by the event-monitoring Any one of triggering command of device self-generating.
6. method according to claim 1, it is characterised in that also include:
According to the geographical location information of the first terminal equipment got with preset frequency, in the map of the second application program In display interface with preset frequency update mark first terminal equipment where geographical position, and by the geographical position send to Server, for the geographical position where updating mark first terminal equipment in the map denotation interface of second terminal equipment Put.
7. the method according to claim 1 or 6, it is characterised in that also include:
According to the geographical location information of the first terminal equipment got with preset frequency, the fortune of first terminal equipment is determined Dynamic rail mark;
The movement locus of first terminal equipment described in map denotation interface display in the second application program, and by the motion rail Mark is sent to server, for showing the motion of the first terminal equipment in the map denotation interface of second terminal equipment Track.
8. method according to claim 7, it is characterised in that also include:
According to the movement locus of first terminal equipment, the displacement of first terminal equipment in the given time is calculated;
When displacement is less than predetermined distance threshold, corresponding prompt message to server is generated and sent, for the Corresponding prompt message is generated in two terminal devices.
9. it is a kind of to monitor the device gone on a journey, it is characterised in that including:
Monitoring modular, for when the first application program launching in monitoring first terminal equipment, journey to be applied in monitoring described first Whether the order event of sequence generates;
First sending module, during for obtaining order relevant information when monitoring that order event is generated, should by described second The order relevant information is sent to server with program, for the order relevant information is issued to and described first The associated second terminal equipment of terminal device;
Obtain and sending module, the ground for obtaining the first terminal equipment with preset frequency by second application program Reason positional information, and the geographical location information is sent to server, for by the geographical location information be issued to The associated second terminal equipment of the first terminal equipment.
10. a kind of device of terminal device, including the monitoring trip described in claim 9.
CN201611042234.8A 2016-11-22 2016-11-22 Travel monitoring method and device Active CN106780240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611042234.8A CN106780240B (en) 2016-11-22 2016-11-22 Travel monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611042234.8A CN106780240B (en) 2016-11-22 2016-11-22 Travel monitoring method and device

Publications (2)

Publication Number Publication Date
CN106780240A true CN106780240A (en) 2017-05-31
CN106780240B CN106780240B (en) 2022-06-21

Family

ID=58974642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611042234.8A Active CN106780240B (en) 2016-11-22 2016-11-22 Travel monitoring method and device

Country Status (1)

Country Link
CN (1) CN106780240B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608746A (en) * 2017-09-18 2018-01-19 北京奇虎科技有限公司 A kind of optimization method and device for opening application more
CN108876688A (en) * 2018-08-21 2018-11-23 珠海格力电器股份有限公司 A kind of information processing method, device and equipment
CN109584133A (en) * 2018-10-15 2019-04-05 深圳壹账通智能科技有限公司 Net about vehicle method of controlling security, device, computer equipment and storage medium
CN110503522A (en) * 2019-08-23 2019-11-26 北京嘀嘀无限科技发展有限公司 Track order generation method, storage medium and electronic equipment
CN110782061A (en) * 2018-08-01 2020-02-11 北京嘀嘀无限科技发展有限公司 Method and system for predicting malignant event
CN111031488A (en) * 2019-12-17 2020-04-17 支付宝(杭州)信息技术有限公司 Travel information prompting method, device and system based on Near Field Communication (NFC) and terminal
CN111178562A (en) * 2018-11-12 2020-05-19 北京嘀嘀无限科技发展有限公司 Information processing method, device, equipment and computer readable storage medium
CN111953842A (en) * 2019-05-16 2020-11-17 北京小米移动软件有限公司 Electronic equipment, safety protection method and device
CN112330380A (en) * 2019-07-17 2021-02-05 腾讯科技(深圳)有限公司 Order creation method and device, computer equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320761A (en) * 2014-10-21 2015-01-28 吴昊 Personal safety early-warning system based on smart phone
CN105101095A (en) * 2015-09-25 2015-11-25 北京奇虎科技有限公司 Server, alarm method based on position information, and alarm system thereof
CN106131792A (en) * 2016-08-26 2016-11-16 北京小米移动软件有限公司 User movement state monitoring method and device
CN106131343A (en) * 2016-08-25 2016-11-16 北京奇虎科技有限公司 SOS method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320761A (en) * 2014-10-21 2015-01-28 吴昊 Personal safety early-warning system based on smart phone
CN105101095A (en) * 2015-09-25 2015-11-25 北京奇虎科技有限公司 Server, alarm method based on position information, and alarm system thereof
CN106131343A (en) * 2016-08-25 2016-11-16 北京奇虎科技有限公司 SOS method and device
CN106131792A (en) * 2016-08-26 2016-11-16 北京小米移动软件有限公司 User movement state monitoring method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
司宇: "自动分享行程 滴滴出行安全出新招", 《HTTPS://M.ZOL.COM.CN/ARTICLE/5934436_2.HTML》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608746A (en) * 2017-09-18 2018-01-19 北京奇虎科技有限公司 A kind of optimization method and device for opening application more
CN110782061A (en) * 2018-08-01 2020-02-11 北京嘀嘀无限科技发展有限公司 Method and system for predicting malignant event
CN108876688A (en) * 2018-08-21 2018-11-23 珠海格力电器股份有限公司 A kind of information processing method, device and equipment
CN109584133A (en) * 2018-10-15 2019-04-05 深圳壹账通智能科技有限公司 Net about vehicle method of controlling security, device, computer equipment and storage medium
CN111178562B (en) * 2018-11-12 2023-09-29 北京嘀嘀无限科技发展有限公司 Information processing method, apparatus, device and computer readable storage medium
CN111178562A (en) * 2018-11-12 2020-05-19 北京嘀嘀无限科技发展有限公司 Information processing method, device, equipment and computer readable storage medium
CN111953842A (en) * 2019-05-16 2020-11-17 北京小米移动软件有限公司 Electronic equipment, safety protection method and device
CN112330380B (en) * 2019-07-17 2023-12-12 腾讯科技(深圳)有限公司 Order creation method, order creation device, computer equipment and computer readable storage medium
CN112330380A (en) * 2019-07-17 2021-02-05 腾讯科技(深圳)有限公司 Order creation method and device, computer equipment and computer readable storage medium
CN110503522A (en) * 2019-08-23 2019-11-26 北京嘀嘀无限科技发展有限公司 Track order generation method, storage medium and electronic equipment
CN113645570A (en) * 2019-12-17 2021-11-12 支付宝(杭州)信息技术有限公司 Travel information prompting method, device and system based on Near Field Communication (NFC) and terminal
CN111031488B (en) * 2019-12-17 2021-07-27 支付宝(杭州)信息技术有限公司 Travel information prompting method, device and system based on Near Field Communication (NFC) and terminal
CN111031488A (en) * 2019-12-17 2020-04-17 支付宝(杭州)信息技术有限公司 Travel information prompting method, device and system based on Near Field Communication (NFC) and terminal

Also Published As

Publication number Publication date
CN106780240B (en) 2022-06-21

Similar Documents

Publication Publication Date Title
CN106780240A (en) Monitor the method and device of trip
US9290145B2 (en) Detecting a transport emergency event and directly enabling emergency services
US9949101B2 (en) Emergency call system and method
US20230036290A1 (en) Apparatus and method for emergency dispatch
CN106875724A (en) The processing method of car accident, method and rescue system that rescue service is provided
CN109191782A (en) Children's safety early warning system and method
CN107807599A (en) Vehicle safety monitoring system and its traffic accident monitoring method, collision and stolen alarm method
CN107403395A (en) Intelligent tour method and intelligent tour device
CN107633666A (en) Alarm method, alarm processing method, electronic equipment and computer-readable storage medium
KR20070116912A (en) Location-based emergency announcements
US11749094B2 (en) Apparatus, systems and methods for providing alarm and sensor data to emergency networks
CN106650427B (en) The detection method and detection device of sandbox running environment
CN110097740A (en) A kind of earthquake pre-warning emergency action method and information centre
CN100489556C (en) Multifunctional intelligent vehicle-carrying navigation monitoring system
CN110958564A (en) Rescue method, rescue device, server and storage medium
CN106454742A (en) Line safety monitoring method and apparatus
CN107633665A (en) Alarm method, alarm processing method, electronic equipment and computer-readable storage medium
CN107193597A (en) A kind of application program update method and terminal
CN108674352B (en) Communication apparatus and communication system
CN106445708A (en) Response method and response device for multi-system events
CN108216274A (en) A kind of high speed railway vehicle mounted seismic processing terminal and method
CN103167406A (en) Global positioning system monitoring method and monitoring equipment and monitoring system
CN103413025A (en) System and method for monitoring emergency ambulance
CN105308660B (en) Method, apparatus for sending out motorcycle urgent call and the method, apparatus for receiving motorcycle urgent call
CN115038053A (en) Travel reminding method and electronic equipment

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

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant