CN103970601B - Execute operational order method and apparatus - Google Patents

Execute operational order method and apparatus Download PDF

Info

Publication number
CN103970601B
CN103970601B CN201310047482.1A CN201310047482A CN103970601B CN 103970601 B CN103970601 B CN 103970601B CN 201310047482 A CN201310047482 A CN 201310047482A CN 103970601 B CN103970601 B CN 103970601B
Authority
CN
China
Prior art keywords
functional component
service part
agent operation
operation instruction
message
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.)
Active
Application number
CN201310047482.1A
Other languages
Chinese (zh)
Other versions
CN103970601A (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 Eren Eben Information Technology Co Ltd
Original Assignee
Beijing Eren Eben Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eren Eben Information Technology Co Ltd filed Critical Beijing Eren Eben Information Technology Co Ltd
Priority to CN201310047482.1A priority Critical patent/CN103970601B/en
Publication of CN103970601A publication Critical patent/CN103970601A/en
Application granted granted Critical
Publication of CN103970601B publication Critical patent/CN103970601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of methods for executing operational order, comprising: the functional component being preset in the first process sends agent operation instruction to the Service Part of the second process by interprocess communication interface;The Service Part of second process receives and executes the agent operation instruction, and implementing result is fed back to the functional component of the first process by the interprocess communication interface.The invention also discloses a kind of devices for executing operational order.The present invention can allow the process with common permission to have the ability for executing the operation with common permission and the operation with system permission simultaneously.

Description

Execute operational order method and apparatus
Technical field
The present invention relates to computer technology more particularly to a kind of execution operational order method and apparatus.
Background technique
Computer operating system platform is safe and stable in order to system, is provided with different operating rights for different processes Rank.Wherein, system permission is a Permission Levels in operating system platform, and the process with system permission is in addition to that can grasp Make outside the function of common process, some more advanced operations can also be handled, these operations will produce whole system platform It is raw to influence.Correspondingly, common permission is another Permission Levels in operating system platform, is common process (application process) institute The permission having, in order to guarantee the safe and stable of system, system platform all does access ability, the operational capacity of common process Certain limitation.
Android (Android) system platform is to develop a open system platform based on linux kernel, therefore Android system inherits the stringent authority classification system of Linux, wherein comprising the process with system permission and having common The process of permission.Process with system permission can substantially execute such as system setting of android system, interface calls Etc. most of operation, and it is all that there is the process of common permission then to receive in terms of such as data access, system More limitations.As it can be seen that the operation that the process only with common permission could be executed due to that cannot execute the process with system permission, Very big inconvenience is brought to user's use.
It is existing generally to distinguish each process using user identifier (user id) in android system, have identical The process of user identifier is considered as the same process, they can share mutual data, in addition, android system is general Issued application program is protected using digital signature technology, if multiple processes with same subscriber mark have difference Signature, then the application program installed afterwards will be unable in the system of being installed to.So will to have common permission into Journey is considered as the process with system permission by system, other than needing user identifier having the same, it is also necessary to having the same Digital signature has above-mentioned two condition, and executable file, the application generated in this way can be compiled out under identical environment Program can then coexist with peacefully on same system platform, and when operation is considered as the same process.As it can be seen that the existing method In, in the application program of above-mentioned generation, although the process with common permission can be changed to one has system permission Process, but this method cannot make this process be provided simultaneously with again common permission process executive capability.
For example, existing in android system, the process with system permission also has limitation, and certain operations are determined Adopted is the operation that the process with system permission cannot execute and the process with common permission can execute, for example, with being The process of system permission cannot access SD card (such as reading and writing SD card), be only capable of being managed SD card equipment (such as carry, unloading, Format etc.).However, with common permission process by statement SD card access permission, can be obtained access SD card (such as Reading and writing SD card) permission, still, with common permission process SD card equipment cannot be managed (such as carry, unloading, Format etc.).
Although the process with common permission can be changed to the process with system permission by this method, so that its Ability with management SD card still when it is while managing SD card, can not access SD card.As it can be seen that existing method is not This process can be made to be provided simultaneously with access and manage the ability of SD card equipment.
To sum up, in the existing above method, although the process with common permission can be changed to one has system permission Process when it being made to have the executive capability of the process of system permission once be changed, cannot still be provided simultaneously with again common The executive capability of the process of permission.
Summary of the invention
It is an object of the invention to propose a kind of execution operational order method and apparatus, same process is had simultaneously There is the executive capability for executing different rights operation.
The invention discloses a kind of methods for executing operational order, comprising:
The functional component being preset in the first process is sent by interprocess communication interface to the Service Part of the second process Agent operation instruction;
The Service Part of second process receives and executes the agent operation instruction, and passes through the interprocess communication Implementing result is fed back to the functional component of the first process by interface.
Preferably, first process is the process with common permission, and second process is with system permission Process.
Preferably, the method also includes:
The functional component of first process the first process need to handle the agent operation instruction when, starting second into The Service Part of journey;And
After the completion of all agent operation instruction executions, the clothes of the second process of turning off unused system units of first process Business component.
Preferably, the functional component being preset in the first process passes through clothes of the interprocess communication interface to the second process Business component sends agent operation instruction
The functional component obtains agent operation instruction;
The functional component is based on agent operation instruction and generates inter-process communication message;
The functional component sends the inter-process communication message to the Service Part.
Preferably, the Service Part of second process, which receives and executes the agent operation instruction, includes:
It parses the inter-process communication message received and obtains the agent operation instruction;
Execute the agent operation instruction.
Preferably, implementing result is fed back to by the interprocess communication interface by the Service Part of second process The functional component of one process includes:
According to feedback message between the implementing result generation process;
To feedback message between the functional component of first process transmission process.
Preferably, the interprocess communication interface is sockets interface (Socket);
The agent operation instruction is sent by Socket request message;
The implementing result is sent by Socket response message.
Preferably, worker thread is monitored in the Service Part creation, passes through the monitoring worker thread and the function part Part establishes communication connection;
The Service Part is after establishing communication connection with the functional component, creation communication work thread and the function Component communication.
The invention also discloses a kind of device for executing operational order, including the functional component that is preset in the first process and It is preset at the Service Part of the second process;
The functional component is used to send by interprocess communication interface to the Service Part for second process that is preset at and act on behalf of Operational order;
The Service Part is instructed for receiving and executing the agent operation, and will by the interprocess communication interface Implementing result feeds back to the functional component of the first process;
The agent operation instruction is the operation that the first process does not have operating right and the second process has operating right Instruction.
Preferably, first process is the process with common permission, and second process is with system permission Process.
Preferably, the functional component further include:
Promoter unit is serviced, for starting the second process when the first process needs to handle agent operation instruction Service Part;
Subelement is closed in service, for closing the clothes of second process after the completion of all agent operation instruction executions Business component.
Preferably, the functional component includes:
Instruction obtains subelement, for obtaining agent operation instruction;
Message generates subelement, for generating inter-process communication message based on agent operation instruction;
Message transmission sub-unit, for sending the inter-process communication message to the Service Part.
Preferably, the Service Part includes:
Parsing subunit obtains the agent operation instruction for parsing the inter-process communication message received;
Subelement is executed, for executing the agent operation instruction.
Preferably, the Service Part includes:
Feedback message generates subelement, for according to feedback message between the implementing result generation process;
Subelement is fed back, for feedback message between sending the process to the functional component of first process.
Preferably, the interprocess communication interface is sockets interface (Socket);
The agent operation instruction is sent by Socket request message;
The implementing result is sent by Socket response message.
Preferably, worker thread is monitored in the Service Part creation, passes through the monitoring worker thread and the function part Part establishes communication connection;
The Service Part is after establishing communication connection with the functional component, creation communication work thread and the function Component communication.
The present invention is passed through operational order by the way that Service Part, the functional component in the first process are arranged in the second process Interprocess communication interface is sent to the second process, executed by the second process return result to after the operational order first into Journey allows the first process to have simultaneously so that the first process can execute the operation that the second process could execute The executive capability of one process and the second process.
Further, if the second process has higher execution permission compared to the first process, the functional component of the first process will Operational order with higher-rights is sent to the Service Part of the second process by the communication interface between process, by the second process Service Part after acting on behalf of and executing the operational order, result is fed back into the first process so that the first process can be with There is the executive capability executed compared with low rights operation and higher-rights operation simultaneously.
By using the present invention, not only avoid operating system it is original will be changed into compared with low rights process higher-rights into The harsh step of journey, moreover it is possible to solve the problems, such as that part is unable to simultaneously perform compared with low rights operation and higher-rights operation, for answering Solves limitation limitation with program function design, exploitation.
Detailed description of the invention
Fig. 1 is the flow chart of the method for the execution operational order of first embodiment of the invention;
Fig. 2 is the flow chart of the method for the execution operational order of second embodiment of the invention;
Fig. 3 is the work flow diagram of functional component in the method for the execution operational order of third embodiment of the invention;
Fig. 4 is the flow chart of Service Part in the method for the execution operational order of third embodiment of the invention;
Fig. 5 is the work flow diagram of the communication work thread of third embodiment of the invention creation;
Fig. 6 is the structural block diagram of the device of the execution operational order of fourth embodiment of the invention.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.
Fig. 1 is the flow chart of the method for the execution operational order of first embodiment of the invention.As shown in Figure 1, the method Include:
Step 110, the functional component being preset in the first process are by interprocess communication interface to being preset in the second process Service Part send agent operation instruction.
In the present invention, process refers to a running example of program, i.e. a program being carrying out.The agency behaviour Making instruction is the operational order that the first process does not have operating right and the second process has operating right.
Step 120, second process Service Part receive and execute agent operation instruction, and by it is described into Implementing result is fed back to the functional component of the first process by communication interface between journey;
Wherein it is preferred to which this method can be applied in android system, first process is with common permission Process, second process be the process with system permission.
Moreover, interprocess communication interface described in the present embodiment is for information to be propagated or exchanged between different processes Interface, those skilled in the art, which can choose, carries out interprocess communication by sockets interface (Socket), also can choose base Inter-Process Communication is carried out in Binder class, it is also an option that lead between process by shared file mode or shared drive mode News, it is also an option that the Inter-Process Communication by broadcast mode or the Inter-Process Communication by self-defined message mode.
The present embodiment is by being arranged Service Part in the second process with higher-rights, by having compared with low rights The operational order that functional component in first process will exceed its permission is sent to by interprocess communication interface to be had compared with Gao Quan Second process of limit, returns result to the first process after the operational order is executed by the second process, so that having The first process compared with low rights can execute the operation that only higher-rights process could execute, allow the first process simultaneously With the ability executed compared with low rights operation and higher-rights operation.
Fig. 2 is the flow chart of the method for the execution operational order of second embodiment of the invention.As shown in Fig. 2, second implements Method include:
Step 210, the first process functional component start the when the first process needs to handle agent operation instruction The Service Part of two processes.
It should be further noted that functional component is a built-in module of the first process, it is responsible for specially and service department Part is communicated, it by have compared with low rights the power and energy for needing to have system permission could execute to be realized of process at Instruction request, be then sent to Service Part agency execute, and receive Service Part feedback implementing result, by result report to First process.Service Part is a built-in module of the second process, and the corresponding program of the second process can be by by service department The code of part is added in original process with system permission and is compiled acquisition.
In a preferred embodiment of the present embodiment, for certain operating systems, such as android system, process Standard API(Application Programming Interface, application programming interface can be passed through) call starting its The service (Service) of its process, thus, it is possible to which the Service Part of the second process is preset at the second process in the form of services In, that is, finding the second process source code with system permission under system source code environment, one is added in its process It services (Service), then realizes the code, such as communication function, command function of various functions etc. of this service, thus make It obtains the second process and is added to a Service Part, it will be present in the program generated after compiling, may be in response to the first process Functional component calling and start and close.Thus, it is possible to which avoiding the occurrence of Service Part needs the case where running always, save System resource.
Step 220, functional component and Service Part establish the connection of interprocess communication interface.
Step 230, the functional component being preset in the first process are by interprocess communication interface to being preset at the second process Service Part send agent operation instruction.
The agent operation instruction is the operation that the first process does not have operating right and the second process has operating right Instruction.Wherein, step 230 specifically includes:
Step 231 obtains agent operation instruction.
Step 232 generates inter-process communication message based on agent operation instruction.
Step 233, Xiang Suoshu Service Part send the inter-process communication message.
The interprocess communication interface can be Socket interface, Binder class interface or other means.
Step 240, second process Service Part receive and execute agent operation instruction, and by it is described into Implementing result is fed back to the functional component of the first process by communication interface between journey.
Wherein, step 240 specifically includes:
The inter-process communication message that step 241, parsing receive obtains the agent operation instruction.
Step 242 executes the agent operation instruction.
Step 243, according to feedback message between the implementing result generation process;
Feedback message between step 244, the functional component transmission process of the first process of Xiang Suoshu.
Wherein, between inter-process communication message and process the form of feedback message according to selected interprocess communication interface Type determines.For example, inter-process communication message is Socket Request message under Socket interface mode, and between process Feedback message is Socket Respond message.
Step 250, judge whether all agent operation instructions it is processed at, if it is not, then follow the steps 230, if Then follow the steps 260.
In the present embodiment, multiple agent operation instructions needed to be implemented are executed by recycling.
Step 260, the first process functional component pass through after the completion of all agent operation instruction executions disconnect and clothes The communication connection of business component.
Step 270, the Service Part for closing second process.
It is similar with step 210, the Service Part of the second process is closed by system API.It is achieved in and system is provided The saving in source.
The present embodiment opens and closes the Service Part of the second process by the functional component triggering of the first process, thus only It keeps Service Part to open when needing to be implemented agent operation instruction, has the first process compared with low rights can be simultaneously realizing While executing low rights operation and the operation of high permission, system resource is further saved.
Fig. 3 is the work flow diagram of functional component in the method for the execution operational order of third embodiment of the invention.This reality Apply example select Socket interface as the first process (being in the present embodiment the process with common permission) and the second process ( Be the process with system permission in the present embodiment) between communication interface, Service Part is preset with second in the form of services In process, Service Part and functional component have been pre-configured with the communication port to match and the instruction type to support one another.Such as Fig. 3 Shown, the workflow of the functional component of the first process includes:
Step 310, starting have the Service Part of the process of system permission.
One step 320, creation Socket are initiated the connection by predetermined port to server end as client.
Step 330 judges whether connection succeeds, if so, 340 are thened follow the steps, if not, terminating client operation stream It journey and/or reports an error.
The agent operation total number of instructions that step 340, acquisition need to be implemented, is initialized as 0 for current task serial number.
This step calculates agent operation instruction to be treated by setting task number and subsequent cumulative mode Actual treatment situation.
Step 350 judges whether current task serial number is less than the agent operation total number of instructions, if it is, executing step Rapid 360, if not, thening follow the steps 3D0.
When task number is not less than agent operation total number of instructions, illustrate agent operation instruction processing to be processed complete or Person's process goes wrong, and at this moment jumps to the shutoff operation that step 3D0 starts thread.
Step 360 takes out current agent operational order, generates Request information according to current agent operational order.
Step 370 sends the Request information generated to Socket service device end by Socket client.
Step 380 waits Socket service device end to return to Response information.
Step 390, the implementing result for receiving and parsing through Response information acquisition current agent operational order.
After obtaining implementing result, the functional component of the first process carries out corresponding processing to implementing result.
Step 3A0, judge whether implementing result handles success, if so, 3C0 is thened follow the steps, if it is not, then executing step Rapid 3B0.
Step 3B0, judge whether to need to handle next agent operation instruction, if so, 3C0 is thened follow the steps, if not, Then follow the steps 3D0.
Step 3C0, current task serial number adds 1, jump procedure 350.
Step 3D0, it disconnects, closes Socket client.
Step 3E0, the Service Part with the process of system permission is closed.
Fig. 4 is the flow chart of Service Part in the method for the execution operational order of third embodiment of the invention.Such as Fig. 4 institute Show, the workflow of Service Part includes:
Worker thread is monitored in step 410, Service Part starting, creation.
When Service Part starts, a monitoring worker thread will create, monitor worker thread and be responsible for receiving from extraneous visitor The linking request at family end, and the worker thread being specifically used for client communication is established according to connection request.
One step 420, the creation port Socket chained list being used for client communication.
One step 430, wound Socket service, configure listening port, and time-out time is monitored in initialization.
It is False that step 440, initialization, which terminate monitor sign,.
Step 450 judges to terminate whether monitor sign is True, if so, 4A0 is thened follow the steps, if it is not, then executing Step 460.
Service Part can by will terminate monitor sign be set as True triggering monitor worker thread voluntarily start closing Process.Worker thread is monitored in cyclic process, detects that terminating monitor sign is True i.e. jump procedure 4A0 in step 450 Start closing flow path.
Step 460 monitors scheduled port and judges whether monitoring is overtime, if it times out, execution step 450, if The connection request for listening to Socket client, thens follow the steps 470.
Step 470 generates one and the port Socket of corresponding Socket client communication.
Socket chained list is added in the port Socket by step 480.
The dedicated thread of step 490, creation communication work thread as this port Socket and Socket user client communication, Return step 450.
In the present embodiment, a Service Part can be multiple client service, achieve the purpose that share, respectively solely It is vertical, it does not influence each other.Multiple Socket can be generated according to the connection request of the Socket client listened to by monitoring worker thread Port, and the multiple communication work threads of correspondence establishment respectively from different Socket client communications.
Step 4A0, Socket chained list is traversed, the port Socket all in chained list is closed.
Step 4B0, Socket service device end is closed.
Step 4C0, worker thread end of run is monitored.
When Service Part, which is triggered, closes, Service Part is set to True for monitor sign is terminated, and waits monitoring work Process terminates.The progress of work is monitored after step 450 judges that terminating monitor sign is set to True, jumps to step 4A0 starting Process terminates process.After the monitoring progress of work is moved to end, Service Part is closed.
Fig. 5 is the work flow diagram of the communication work thread created in step 490.As shown in figure 5, communication work thread Workflow includes:
The Request information that step 510, reading socket client are sent.
Step 520 judges whether read operation is abnormal (Exception), if so, step 590 is executed, if It is no, execute step 530.
Step 530, parsing Request information obtain agent operation instruction.
Step 540 judges whether the second process supports the agent operation to instruct, if supported, thens follow the steps 550, If it does not, then return step 510, handle next Request message.
Step 550 executes the agent operation instruction, obtains implementing result.
Step 560 generates Response information according to implementing result.
Step 570 sends Response information to Socket client.
Step 580 judges to send whether operation is abnormal, if so, step 590 is executed, if not, return step 510, next Request message is handled.
Step 590 judges whether Socket service device end or Socket client are turned off, if it is, executing step Rapid 5A0, otherwise return step 510.
Step 5A0, communication work thread terminates to run.
When Service Part is closed, Socket service device end is closed, when turning off unused system units, Socket client meeting It is closed, at this moment will appear exception in read operation or transmission operation, provide the closing machine of communication work thread as a result, System.
In the present embodiment, pass through service (Service) side by Service Part can start and close from external trigger Formula insertion has in the process of system permission, is established by the service and monitors worker thread the Socket client with functional component End establish connection, meanwhile, further established upon establishment of a connection by monitoring worker thread individual communication work thread with it is corresponding Socket client communication, obtain, execute and feedback agent operational order.The present embodiment not only avoids operation system as a result, Unite original harsh step for higher-rights process being changed into compared with low rights process, moreover it is possible to solve part compared with low rights operation and The problem of higher-rights operation is unable to simultaneously perform solves limitation limitation for function of application design, exploitation.
Fig. 6 is the structural block diagram of the device of the execution operational order of fourth embodiment of the invention.As shown in fig. 6, the dress It sets the functional component 62 including being preset in the first process 61 and is preset at the Service Part 64 of the second process 63.Wherein, first Process 61 has lower permission, and the permission with higher of the second process 63.
Functional component 62 is used to send generation to the Service Part 64 for second process 63 that is preset at by interprocess communication interface Manage operational order.
Service Part 64 is for receiving and executing agent operation instruction, and it is anti-by implementing result to pass through interprocess communication interface The functional component 62 for first process 61 of feeding.
Agent operation instruction is that the first process 61 does not have operating right and the second process 63 has operating right Operational order.
In a preferred embodiment of the present embodiment, the first process 61 be the process with common permission, second into Journey 63 is the process with system permission.
Specifically, functional component 62 includes:
Promoter unit 621 is serviced, for starting second when the first process 61 needs to handle agent operation instruction The Service Part 64 of process 63.
Subelement 622 is closed in service, for closing second process after the completion of all agent operation instruction executions 63 Service Part 64.
Instruction obtains subelement 623, for obtaining agent operation instruction.
Message generates subelement 624, for generating inter-process communication message based on agent operation instruction.
Message transmission sub-unit 625, for sending the inter-process communication message to Service Part 64.
Meanwhile Service Part 64 includes:
Parsing subunit 641 obtains the agent operation instruction for parsing the inter-process communication message received;
Subelement 642 is executed, for executing the agent operation instruction.
Feedback message generates subelement 643, for according to feedback message between the implementing result generation process.
Subelement 644 is fed back, for feedback message between sending the process to the functional component 62 of first process 61.
The present embodiment is by being arranged Service Part in the second process with higher-rights, by having compared with low rights The operational order that functional component in first process will exceed its permission is sent to by interprocess communication interface to be had compared with Gao Quan Second process of limit, returns result to the first process after the operational order is executed by the second process, so that having The first process compared with low rights can execute the operation that only higher-rights process could execute, allow the first process simultaneously With the ability executed compared with low rights operation and higher-rights operation.By not only avoiding operating system original using the present invention Some will change into the harsh step of higher-rights process compared with low rights process, moreover it is possible to solve part compared with low rights operation and it is higher The problem of permission operation is unable to simultaneously perform solves limitation limitation for function of application design, exploitation.
Obviously, it will be understood by those skilled in the art that each module of the above invention or each step can be with general Computing device realizes that they can be concentrated on single computing device, or be distributed in net constituted by multiple computing devices On network, optionally, they can be realized with the program code that computer installation can be performed, and be deposited so as to be stored in It is performed by computing device in storage device, perhaps they are fabricated to each integrated circuit modules or will be in them Multiple modules or step are fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware With the combination of software.
The above description is only a preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art For, the invention can have various changes and changes.All any modifications made within the spirit and principles of the present invention are equal Replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of method for executing operational order, comprising:
The functional component being preset in the first process, which is sent by interprocess communication interface to the Service Part of the second process, to be acted on behalf of Operational order;
The Service Part of second process receives and executes the agent operation instruction, and passes through the interprocess communication interface Implementing result is fed back to the functional component of the first process;
Wherein, first process is the process with common permission, and second process is the process with system permission;
Wherein, it is sent out by interprocess communication interface to the Service Part of the second process in the functional component being preset in the first process Before sending agent operation to instruct, further includes:
The functional component starts the Service Part when first process needs to handle agent operation instruction;
It is received in the Service Part of second process and executes the agent operation instruction, and connect by the interprocess communication Mouth feeds back to implementing result after the functional component of the first process, further includes:
The functional component after the completion of all agent operation instruction executions by disconnecting the communication company with the Service Part It connects, and closes the Service Part.
2. the method according to claim 1, wherein the functional component being preset in the first process by into Communication interface sends agent operation and instruct to the Service Part of the second process between journey includes:
The functional component obtains agent operation instruction;
The functional component is based on agent operation instruction and generates inter-process communication message;
The functional component sends the inter-process communication message to the Service Part.
3. according to the method described in claim 2, it is characterized in that, the Service Part of second process is received and is executed described Agent operation instructs
It parses the inter-process communication message received and obtains the agent operation instruction;
Execute the agent operation instruction.
4. according to the method described in claim 2, it is characterized in that, the Service Part of second process passes through between the process The functional component that implementing result feeds back to the first process includes: by communication interface
According to feedback message between the implementing result generation process;
To feedback message between the functional component of first process transmission process.
5. the method according to claim 1, wherein the interprocess communication interface is sockets interface (Socket);
The agent operation instruction is sent by Socket request message;
The implementing result is sent by Socket response message.
6. method according to claim 1-5, which is characterized in that active line is monitored in the Service Part creation Journey is established by the monitoring worker thread and the functional component and is communicated to connect;
The Service Part is after establishing communication connection with the functional component, creation communication work thread and the functional component Communication.
7. a kind of device for executing operational order, including the functional component being preset in the first process and is preset at the second process Service Part;
The functional component is used to send agent operation to the Service Part for second process that is preset at by interprocess communication interface Instruction;
The Service Part will be executed for receiving and executing the agent operation instruction, and by the interprocess communication interface As a result the functional component of the first process is fed back to;
Wherein, first process is the process with common permission, and second process is the process with system permission;
Promoter unit is serviced, for starting the clothes of the second process when the first process needs to handle agent operation instruction Business component;
Subelement is closed in service, for closing the service department of second process after the completion of all agent operation instruction executions Part.
8. the device according to claim 7 for executing operational order, which is characterized in that the functional component further include:
Instruction obtains subelement, for obtaining agent operation instruction;
Message generates subelement, for generating inter-process communication message based on agent operation instruction;
Message transmission sub-unit, for sending the inter-process communication message to the Service Part.
9. the device according to claim 8 for executing operational order, which is characterized in that the Service Part includes:
Parsing subunit obtains the agent operation instruction for parsing the inter-process communication message received;
Subelement is executed, for executing the agent operation instruction.
10. the device according to claim 8 for executing operational order, which is characterized in that the Service Part includes:
Feedback message generates subelement, for according to feedback message between the implementing result generation process;
Subelement is fed back, for feedback message between sending the process to the functional component of first process.
CN201310047482.1A 2013-02-06 2013-02-06 Execute operational order method and apparatus Active CN103970601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310047482.1A CN103970601B (en) 2013-02-06 2013-02-06 Execute operational order method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310047482.1A CN103970601B (en) 2013-02-06 2013-02-06 Execute operational order method and apparatus

Publications (2)

Publication Number Publication Date
CN103970601A CN103970601A (en) 2014-08-06
CN103970601B true CN103970601B (en) 2019-03-05

Family

ID=51240136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310047482.1A Active CN103970601B (en) 2013-02-06 2013-02-06 Execute operational order method and apparatus

Country Status (1)

Country Link
CN (1) CN103970601B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016106510A1 (en) * 2014-12-29 2016-07-07 华为技术有限公司 Security protection method and device
CN108279855B (en) * 2015-03-05 2021-07-06 青岛海信宽带多媒体技术有限公司 Method for reading and writing storage device
CN106469089A (en) * 2015-08-21 2017-03-01 百度在线网络技术(北京)有限公司 For making the nonsystematic in terminal apply method and device, the terminal realizing system level interface interchange
CN107861798B (en) * 2016-09-22 2019-06-14 北京小熊博望科技有限公司 The system-level operations method and device of application
CN106547631B (en) * 2016-09-26 2021-04-20 腾讯科技(深圳)有限公司 Cross-process communication method and device based on android platform
CN106598756B (en) * 2016-12-13 2020-06-16 重庆川仪自动化股份有限公司 Data interaction method between different application programs
CN107071051A (en) * 2017-05-16 2017-08-18 上海上讯信息技术股份有限公司 For ordering the method and apparatus performed
CN107766162A (en) * 2017-10-30 2018-03-06 北京明华联盟科技有限公司 The execution method, apparatus and terminal device of a kind of operational order
CN113326067B (en) * 2021-05-11 2024-02-06 深圳市捷视飞通科技股份有限公司 Command execution method, system, computer device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087314A (en) * 2007-05-15 2007-12-12 华为技术有限公司 A system and method for application to use socket interface across processes
CN101226577A (en) * 2008-01-28 2008-07-23 南京大学 Method for protecting microkernel OS integrality based on reliable hardware and virtual machine
CN101359355A (en) * 2007-08-02 2009-02-04 芯微技术(深圳)有限公司 Method for raising user's authority for limitation account under Windows system
CN101751287A (en) * 2008-12-03 2010-06-23 北京天融信科技有限公司 Method for executing operation under Windows without limitation of user right

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8220004B2 (en) * 2009-04-17 2012-07-10 Nokia Corporation Method, apparatus and computer program product for sharing resources via an interprocess communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087314A (en) * 2007-05-15 2007-12-12 华为技术有限公司 A system and method for application to use socket interface across processes
CN101359355A (en) * 2007-08-02 2009-02-04 芯微技术(深圳)有限公司 Method for raising user's authority for limitation account under Windows system
CN101226577A (en) * 2008-01-28 2008-07-23 南京大学 Method for protecting microkernel OS integrality based on reliable hardware and virtual machine
CN101751287A (en) * 2008-12-03 2010-06-23 北京天融信科技有限公司 Method for executing operation under Windows without limitation of user right

Also Published As

Publication number Publication date
CN103970601A (en) 2014-08-06

Similar Documents

Publication Publication Date Title
CN103970601B (en) Execute operational order method and apparatus
CN1470989B (en) Drive model independent of process mode
CN107766145B (en) Memory management method and device under dual systems
KR20170118165A (en) Method and apparatus for updating a network service technician
EP3989613A1 (en) Sim card resource management scheduling apparatus, communication terminal, and system
EP3635547B1 (en) Systems and methods for preventing service disruption during software updates
CN110650503B (en) Network access method, device, system and computer readable storage medium
CN112491980B (en) Cloud host service management method, system, terminal and storage medium
CN103731328A (en) System and method for achieving home gateway data communication based on Linux shared memory
CN105955784B (en) The upgrading of elevator program and backup method, mobile terminal and system
CN105357664A (en) Wireless control system and data communication method thereof
WO2019062066A1 (en) On-line task execution method for terminal device, server, and readable storage medium
CN105262604A (en) Virtual machine migration method and equipment
CN104486149B (en) A kind of finite state machine method for ground test
CN112312400B (en) Access control method, access controller and storage medium
CN103501298B (en) A kind of non-interrupting service escalation process ensures the method and apparatus that link does not stop
CN108875355A (en) A kind of control method and device of access authority
CN107547362B (en) Laboratory equipment management control method and system based on WeChat public platform
CN105608774A (en) Intelligent entrance guard control system and control method thereof
CN103516864A (en) A method and an apparatus for monitoring preset operations in a mobile terminal
CN110008092A (en) A kind of secure virtual machine monitoring method, device, equipment and readable storage medium storing program for executing
CN108566322A (en) Call method and device, storage medium and electronic device
CN114490134A (en) Event processing method, system, device, computer equipment and storage medium
CN105162641A (en) Monitoring method and device for cloud desktop
CN108089917A (en) A kind of application process control method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant