CN103970601A - Operational order execution method and operational order execution device - Google Patents

Operational order execution method and operational order execution device Download PDF

Info

Publication number
CN103970601A
CN103970601A CN201310047482.1A CN201310047482A CN103970601A CN 103970601 A CN103970601 A CN 103970601A CN 201310047482 A CN201310047482 A CN 201310047482A CN 103970601 A CN103970601 A CN 103970601A
Authority
CN
China
Prior art keywords
operation instruction
agent operation
functional part
service
service part
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
CN201310047482.1A
Other languages
Chinese (zh)
Other versions
CN103970601B (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 an operational order execution method. The operational order execution method includes: sending an agent operational order to a service part of a second process via an inter-process communication interface by a functional part preset in a first process; by the aid of the service part of the second process, receiving and executing the agent operational order, and feeding an execution result to the functional part of the first process via the inter-process communication interface. The invention further discloses an operational order execution device. The operational order execution method and the operational order execution device has the advantages that a process with normal privileges can be enabled to be capable of executing operation with the privileges and operating system privileges at the same time.

Description

Executable operations instruction method and device
Technical field
The present invention relates to computer technology, relate in particular to a kind of executable operations instruction method and device.
Background technology
Computer operating system platform is safe, stable for system, for different processes are provided with different operating right ranks.Wherein, System Privileges is Permission Levels in operating system platform, has the process of System Privileges except operating the function of common process, can also process some more senior operations, and these operations will exert an influence to whole system platform.Correspondingly, common authority is another Permission Levels in operating system platform, be the authority that common process (application process) has, in order to ensure the safe, stable of system, access ability, the functipnal capability of system platform to common process all done certain restriction.
Android (Android) system platform is to develop a open system platform based on linux kernel, therefore Android system inherited the strict authority classification system of Linux, wherein comprise the process with System Privileges and the process with common authority.The process with System Privileges can be carried out most operation such as the setting of such as system, interface interchange of Android system substantially, and the process with common authority has been subject to many restrictions at aspects such as such as data access, system arrange.Visible, the process only with common authority has owing to not carrying out the operation that the process of System Privileges could be carried out, and uses and brings very big inconvenience to user.
Existing in Android system; general user's mark (user id) is distinguished each process; the process with same subscriber mark is considered to same process; they can share mutual data; in addition; Android system is generally protected issued application program with digital signature technology, has different signatures if having multiple processes of same subscriber mark, and the application program of installing afterwards cannot be installed in system.So make the process with common authority to be considered as having by system the process of System Privileges, except having identical user ID, also need to there is identical digital signature, possess above-mentioned two conditions, can under identical environment, compile out executable file, the application program generating so can be coexisted with peacefully in same system platform, is considered to same process when operation.Visible, in this existing method, in the application program of above-mentioned generation, although the process with common authority can be changed to a process with System Privileges, the method can not make this process possess the executive capability of the process of common authority simultaneously again.
For example, existing in Android system, the process with System Privileges also has limitation, the process that some operation is defined as System Privileges can not be carried out and have the operation that the process of common authority can be carried out, for example, the process with System Privileges can not be accessed SD card (for example reading and writing SD card), only can manage to SD card apparatus (for example carry, unloading, format etc.).But, there is the process of common authority by statement SD card access permission, the authority that can obtain access SD card (for example reading and writing SD card), still, the process with common authority can not manage to SD card apparatus (for example carry, unloading, format etc.).
Although this method can be changed to the process with common authority a process with System Privileges, to make its ability with management SD card,, when it is in the time managing SD card, can not access SD card.Visible, existing method can not make this process possess the ability of access and management SD card apparatus simultaneously.
To sum up, in existing said method, although the process with common authority can be changed to a process with System Privileges,, after being changed, make its executive capability that possesses the process of System Privileges, can not possess again the executive capability of the process of common authority simultaneously.
Summary of the invention
The object of the invention is to propose a kind of executable operations instruction method and device, make same process can there is the executive capability of carrying out different rights operation simultaneously.
A kind of method that the invention discloses executable operations instruction, comprising:
The functional part being preset in the first process sends agent operation instruction by interprocess communication interface to the Service Part of the second process;
The Service Part of described the second process receives and carries out described agent operation instruction, and by described interprocess communication interface, execution result is fed back to the functional part of the first process.
Preferably, described the first process is the process with common authority, and described the second process is the process with System Privileges.
Preferably, described method also comprises:
When the functional part of described the first process need to be processed described agent operation instruction in the first process, start the Service Part of the second process; And
After all agent operation instructions are complete, the functional part of described the first process is closed the Service Part of the second process.
Preferably, the functional part being preset at described in the first process comprises to the Service Part transmission agent operation instruction of the second process by interprocess communication interface:
Described functional part obtains agent operation instruction;
Described functional part generates inter-process communication message based on described agent operation instruction;
Described functional part sends described inter-process communication message to described Service Part.
Preferably, the Service Part of described the second process receives and carries out described agent operation instruction and comprises:
The inter-process communication message that parsing receives obtains described agent operation instruction;
Carry out described agent operation instruction.
Preferably, the functional part that the Service Part of described the second process feeds back to the first process by described interprocess communication interface by execution result comprises:
According to feedback message between described execution result generation process;
Send feedback message between described process to the functional part of described the first process.
Preferably, described interprocess communication interface is sockets interface (Socket);
Described agent operation instruction sends by Socket request message;
Described execution result sends by Socket response message.
Preferably, described Service Part creates monitors worker thread, establishes a communications link by described monitoring worker thread and described functional part;
Described Service Part, after establishing a communications link with described functional part, creates communication work thread and communicates by letter with described functional part.
The invention also discloses a kind of device of executable operations instruction, comprise the functional part being preset in the first process and the Service Part that is preset at the second process;
Described functional part is for sending agent operation instruction by interprocess communication interface to the Service Part that is preset at the second process;
Described Service Part is used for receiving and carry out described agent operation instruction, and by described interprocess communication interface, execution result is fed back to the functional part of the first process;
Described agent operation instruction is that the first process does not have operating right and the second process has the operational order of operating right.
Preferably, described the first process is the process with common authority, and described the second process is the process with System Privileges.
Preferably, described functional part also comprises:
Service promoter unit, for starting the Service Part of the second process in the time that the first process need to be processed described agent operation instruction;
Subelement is closed in service, closes the Service Part of described the second process after complete for the agent operation instruction all.
Preferably, described functional part comprises:
Subelement is obtained in instruction, for obtaining agent operation instruction;
Message generation subelement, for generating inter-process communication message based on described agent operation instruction;
Message sends subelement, for sending described inter-process communication message to described Service Part.
Preferably, described Service Part comprises:
Resolve subelement, obtain described agent operation instruction for resolving the inter-process communication message receiving;
Carry out subelement, for carrying out described agent operation instruction.
Preferably, described Service Part comprises:
Feedback message generates subelement, for according to feedback message between described execution result generation process;
Feedback subelement, for sending feedback message between described process to the functional part of described the first process.
Preferably, described interprocess communication interface is sockets interface (Socket);
Described agent operation instruction sends by Socket request message;
Described execution result sends by Socket response message.
Preferably, described Service Part creates monitors worker thread, establishes a communications link by described monitoring worker thread and described functional part;
Described Service Part, after establishing a communications link with described functional part, creates communication work thread and communicates by letter with described functional part.
The present invention by arranging Service Part in the second process, functional part in the first process sends to the second process by operational order by interprocess communication interface, after carrying out described operational order by the second process, result is returned to the first process, thereby make the first process can carry out the operation that the second process could be carried out, make the first process can there is the executive capability of the first process and the second process simultaneously.
Further, if comparing the first process, the second process there is higher execution authority, the functional part of the first process sends to the operational order with higher-rights the Service Part of the second process by the communication interface between process, act on behalf of and carry out after described operational order by the Service Part of the second process, give the first process by result feedback, carry out compared with the executive capability of low rights operation and higher-rights operation thereby the first process can be had simultaneously.
By utilizing the present invention, not only avoid that operating system is original will change into the harsh step of higher-rights process compared with low rights process, can also solve part and operate compared with low rights operation and higher-rights the problem that can not simultaneously carry out, solve limitations restrict for function of application design, exploitation.
Brief description of the drawings
Fig. 1 is the process flow diagram of the method for the executable operations instruction of first embodiment of the invention;
Fig. 2 is the process flow diagram of the method for the executable operations instruction of second embodiment of the invention;
Fig. 3 is the workflow diagram of functional part in the method for executable operations instruction of third embodiment of the invention;
Fig. 4 is the process flow diagram of Service Part in the method for executable operations instruction of third embodiment of the invention;
Fig. 5 is the workflow diagram of the communication work thread of third embodiment of the invention establishment;
Fig. 6 is the structured flowchart of the device of the executable operations instruction of fourth embodiment of the invention.
Embodiment
Further illustrate technical scheme of the present invention below in conjunction with accompanying drawing and by embodiment.
Fig. 1 is the process flow diagram of the method for the executable operations instruction of first embodiment of the invention.As shown in Figure 1, described method comprises:
Step 110, the functional part being preset in the first process send agent operation instruction by interprocess communication interface to the Service Part that is preset in the second process.
In the present invention, process refers to a running example of program, i.e. a program of carrying out.Described agent operation instruction is that the first process does not have operating right and the second process has the operational order of operating right.
The Service Part of step 120, described the second process receives and carries out described agent operation instruction, and by described interprocess communication interface, execution result is fed back to the functional part of the first process;
Wherein, preferably, the method can be applied in Android system, and described the first process is the process with common authority, and described the second process is the process with System Privileges.
And, interprocess communication interface described in the present embodiment is the interface for propagation or exchange message between different processes, those skilled in the art can select to carry out interprocess communication by sockets interface (Socket), also can select to carry out Inter-Process Communication based on Binder class, can also select to carry out Inter-Process Communication by shared file mode or shared drive mode, can also select by the Inter-Process Communication of broadcast mode or by the Inter-Process Communication of self-defined message mode.
The present embodiment by arranging Service Part in second process with higher-rights, by having compared with the functional part in the first process of low rights, the operational order that exceeds its authority is sent to second process with higher-rights by interprocess communication interface, after carrying out described operational order by the second process, result is returned to the first process, thereby make the first process having compared with low rights can carry out the operation of only having higher-rights process to carry out, the first process can be had simultaneously and carry out compared with the ability of low rights operation and higher-rights operation.
Fig. 2 is the process flow diagram of the method for the executable operations instruction of second embodiment of the invention.As shown in Figure 2, the second method of implementing comprises:
The functional part of step 210, the first process starts the Service Part of the second process in the time that the first process need to be processed described agent operation instruction.
What need to further illustrate is, functional part is a built-in module of the first process, be responsible for specially with Service Part and carry out communication, it converts instruction request to by having the function that System Privileges could carry out that need to have that will realize compared with the process of low rights, then send to Service Part agency to carry out, and receive the execution result that Service Part feeds back, give the first process by report the test.Service Part is a built-in module of the second process, and program corresponding to the second process can be by adding the code of Service Part in original process with System Privileges and compile acquisition.
In a preferred implementation of the present embodiment, for some operating system, for example Android system, process can be passed through standard A PI(Application Programming Interface, application programming interface) call and start the service (Service) of other process, thus, the Service Part of the second process can be preset in the second process with the form of service, also be, under system source code environment, find the second process source code with System Privileges, in its process, add a service (Service), then realize the code of the various functions of this service, for example communication function, command function etc., so just make the second process add a Service Part, it will be present in the program generating after compiling, it can start and close in response to the calling of functional part of the first process.Thus, can avoid the situation that occurs that Service Part need to move all the time, save system resource.
Step 220, functional part are set up interprocess communication interface with Service Part and are connected.
Step 230, the functional part being preset in the first process send agent operation instruction by interprocess communication interface to the Service Part that is preset at the second process.
Described agent operation instruction is that the first process does not have operating right and the second process has the operational order of operating right.Wherein, step 230 specifically comprises:
Step 231, obtain agent operation instruction.
Step 232, generate inter-process communication message based on described agent operation instruction.
Step 233, send described inter-process communication message to described Service Part.
Described interprocess communication interface can be Socket interface, Binder class interface or alternate manner.
The Service Part of step 240, described the second process receives and carries out described agent operation instruction, and by described interprocess communication interface, execution result is fed back to the functional part of the first process.
Wherein, step 240 specifically comprises:
The inter-process communication message that step 241, parsing receive obtains described agent operation instruction.
Step 242, carry out described agent operation instruction.
Step 243, according to feedback message between described execution result generation process;
Step 244, send feedback message between described process to the functional part of described the first process.
Wherein, between inter-process communication message and process, the form of feedback message is determined according to the type of selected interprocess communication interface.For example, under Socket interface mode, inter-process communication message is Socket Request message, and between process, feedback message is Socket Respond message.
Step 250, judge whether all processed completing of agent operation instruction, if not, perform step 230, if perform step 260.
In the present embodiment, carry out multiple agent operation instructions that need execution by circulation.
The functional part of step 260, the first process is by being connected with the communication of Service Part in the complete rear disconnection of all agent operation instructions.
Step 270, close the Service Part of described the second process.
Similar with step 210, close the Service Part of the second process by system API.Realize thus the saving for system resource.
The present embodiment triggers the Service Part of opening and closing the second process by the functional part of the first process, thereby only in the time of needs agents operational order, keep Service Part to open, when realization has and can carry out low rights operation and high limiting operation compared with the first process of low rights simultaneously, further save system resource.
Fig. 3 is the workflow diagram of functional part in the method for executable operations instruction of third embodiment of the invention.The present embodiment selects Socket interface as the communication interface between the first process (in the present embodiment for having the process of common authority) and the second process (in the present embodiment for having the process of System Privileges), Service Part with the form of service preset with the second process in, the communication port that Service Part and functional part are pre-configured matches and the instruction type supporting one another.As shown in Figure 3, the workflow of the functional part of the first process comprises:
Step 310, startup have the Service Part of the process of System Privileges.
Step 320, a Socket of establishment, as client, initiate to connect to server end by predetermined port.
Step 330, judge and connect whether success, if so, perform step 340, if not, finish client workflow and/or report an error.
Step 340, obtain need carry out agent operation total number of instructions, current task sequence number is initialized as to 0.
This step calculates by task number follow-up cumulative mode are set the actual treatment situation that needs agent operation instruction to be processed.
Step 350, judge whether current task sequence number is less than described agent operation total number of instructions, if so, performs step 360, if not, performs step 3D0.
In the time that task number is not less than agent operation total number of instructions, illustrate that pending agent operation instruction process completes or process goes wrong, at this moment jump to step 3D0 and start the shutoff operation of thread.
Step 360, take out current agent operation instruction, generate Request information according to current agent operation instruction.
Step 370, the Request information generating to the transmission of Socket server end by Socket client.
Step 380, wait Socket server end return to Response information.
Step 390, receive and resolve the execution result of the current agent operation instruction of Response information acquisition.
Obtaining after execution result, the functional part of the first process carries out corresponding processing to execution result.
Step 3A0, judge whether execution result is processed successfully, if so, perform step 3C0, if not, perform step 3B0.
Step 3B0, judge whether to process next agent operation instruction, if so, perform step 3C0, if not, perform step 3D0.
Step 3C0, current task sequence number add 1, jump procedure 350.
Step 3D0, disconnect, close Socket client.
Step 3E0, close the Service Part of the process with System Privileges.
Fig. 4 is the process flow diagram of Service Part in the method for executable operations instruction of third embodiment of the invention.As shown in Figure 4, the workflow of Service Part comprises:
Step 410, Service Part start, and create and monitor worker thread.
When Service Part starts, can create one and monitor worker thread, monitor worker thread and be responsible for receiving from the linking request of extraneous client, and according to connection request set up specifically for the worker thread of client communication.
Step 420, create one for the Socket port chained list of client communication.
Step 430, Socket service of wound, configuration listening port, initialization listen timeout time.
It is False that step 440, initialization finish monitor sign.
Step 450, judge finish monitor sign whether be True, if so, perform step 4A0, if not, perform step 460.
Service Part can be set to True triggering monitoring worker thread by end monitor sign and start voluntarily closing flow path.Monitor worker thread in cyclic process, detect that in step 450 finishing monitor sign is that True is that jump procedure 4A0 starts closing flow path.
Step 460, monitor predetermined port and judge monitoring whether overtime, if overtime, perform step 450, if listen to the connection request of Socket client, perform step 470.
Step 470, generate one with the Socket port of corresponding Socket client communication.
Step 480, this Socket port is added to Socket chained list.
Step 490, create the communication work thread dedicated thread as this Socket port and the communication of Socket client, return to step 450.
In the present embodiment, a Service Part can be multiple client service, has reached shared object, independent separately, does not influence each other.Monitor worker thread and can generate multiple Socket ports according to the Socket client's who listens to connection request, and the multiple communication work threads of correspondence establishment respectively from different Socket client communication.
Step 4A0, traversal Socket chained list, close Socket ports all in chained list.
Step 4B0, close Socket server end.
Step 4C0, monitoring worker thread end of run.
When Service Part is triggered while closing, end monitor sign is set to True by Service Part, and wait for that monitoring the progress of work finishes.Monitor the progress of work and be set to after True at step 450 judgement end monitor sign, jump to step 4A0 and start process process ends.After the monitoring progress of work is moved to end, Service Part is closed.
Fig. 5 is the workflow diagram of the communication work thread of establishment in step 490.As shown in Figure 5, the workflow of communication work thread comprises:
The Request information that step 510, reading socket client send.
Step 520, judge whether read operation (Exception) extremely occurs, if so, execution step 590, if not, execution step 530.
Step 530, parsing Request information obtain agent operation instruction.
Step 540, judge whether the second process supports described agent operation instruction, if supported, perform step 550, if do not supported, return to step 510, next Request message is processed.
Step 550, carry out described agent operation instruction, obtain execution result.
Step 560, generate Response information according to execution result.
Step 570, send Response information to Socket client.
Step 580, judge whether transmit operation occurs extremely, if so, execution step 590, if not, returns to step 510, and next Request message is processed.
Step 590, judge that whether Socket server end or Socket client close, if so, perform step 5A0, otherwise return to step 510.
Step 5A0, communication worker thread finish operation.
In the time that Service Part is closed, Socket server end is closed, and in the time that functional part is closed, Socket client can be closed, and at this moment in the time of read operation or transmit operation, there will be extremely, thus, provides the shutdown mechanism of communication work thread.
In the present embodiment, by by Service Part starting and service (Service) mode of closing embed the process with System Privileges from external trigger, setting up monitoring worker thread by described service connects with the Socket client of functional part, simultaneously, after connecting, further set up independent communication work thread and corresponding Socket client communication by monitoring worker thread, obtain, carry out and feed back agent operation instruction.Thus, the present embodiment has not only avoided that operating system is original will change into the harsh step of higher-rights process compared with low rights process, can also solve part and operate compared with low rights operation and higher-rights the problem that can not simultaneously carry out, solve limitations restrict for function of application design, exploitation.
Fig. 6 is the structured flowchart of the device of the executable operations instruction of fourth embodiment of the invention.As shown in Figure 6, described device comprises the functional part 62 being preset in the first process 61 and the Service Part 64 that is preset at the second process 63.Wherein, the first process 61 has lower authority, and the second process 63 has higher authority.
Functional part 62 is for sending agent operation instruction by interprocess communication interface to the Service Part 64 that is preset at the second process 63.
Service Part 64 is for receiving and agents operational order, and by interprocess communication interface, execution result fed back to the functional part 62 of the first process 61.
Described agent operation instruction is that the first process 61 does not have operating right and the second process 63 has the operational order of operating right.
In a preferred implementation of the present embodiment, the first process 61 is for having the process of common authority, and the second process 63 is for having the process of System Privileges.
Particularly, functional part 62 comprises:
Service promoter unit 621, in the time that the first process 61 need to be processed described agent operation instruction, starts the Service Part 64 of the second process 63.
Subelement 622 is closed in service, closes the Service Part 64 of described the second process 63 after complete for the agent operation instruction all.
Subelement 623 is obtained in instruction, for obtaining agent operation instruction.
Message generation subelement 624, for generating inter-process communication message based on described agent operation instruction.
Message sends subelement 625, for sending described inter-process communication message to Service Part 64.
Meanwhile, Service Part 64 comprises:
Resolve subelement 641, obtain described agent operation instruction for resolving the inter-process communication message receiving;
Carry out subelement 642, for carrying out described agent operation instruction.
Feedback message generates subelement 643, for according to feedback message between described execution result generation process.
Feedback subelement 644, sends feedback message between described process for the functional part 62 to described the first process 61.
The present embodiment by arranging Service Part in second process with higher-rights, by having compared with the functional part in the first process of low rights, the operational order that exceeds its authority is sent to second process with higher-rights by interprocess communication interface, after carrying out described operational order by the second process, result is returned to the first process, thereby make the first process having compared with low rights can carry out the operation of only having higher-rights process to carry out, the first process can be had simultaneously and carry out compared with the ability of low rights operation and higher-rights operation.By utilizing the present invention, not only avoid that operating system is original will change into the harsh step of higher-rights process compared with low rights process, can also solve part and operate compared with low rights operation and higher-rights the problem that can not simultaneously carry out, solve limitations restrict for function of application design, exploitation.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can realize with the executable program code of computer installation, thereby they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to the combination of any specific hardware and software.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, to those skilled in the art, the present invention can have various changes and variation.All any amendments of doing, be equal to replacement, improvement etc., within protection scope of the present invention all should be included within spirit of the present invention and principle.

Claims (14)

1. a method for executable operations instruction, comprising:
The functional part being preset in the first process sends agent operation instruction by interprocess communication interface to the Service Part of the second process;
The Service Part of described the second process receives and carries out described agent operation instruction, and by described interprocess communication interface, execution result is fed back to the functional part of the first process.
2. method according to claim 1, is characterized in that, described the first process is the process with common authority, and described the second process is the process with System Privileges.
3. method according to claim 1, is characterized in that, described method also comprises:
When the functional part of described the first process need to be processed described agent operation instruction in the first process, start the Service Part of the second process; And after all agent operation instructions are complete, the functional part of described the first process is closed the Service Part of the second process.
4. method according to claim 1, is characterized in that, described in be preset at functional part in the first process and send agent operation instruction by interprocess communication interface to the Service Part of the second process and comprise:
Described functional part obtains agent operation instruction;
Described functional part generates inter-process communication message based on described agent operation instruction;
Described functional part sends described inter-process communication message to described Service Part.
5. method according to claim 4, is characterized in that, the Service Part of described the second process receives and carries out described agent operation instruction and comprises:
The inter-process communication message that parsing receives obtains described agent operation instruction;
Carry out described agent operation instruction.
6. method according to claim 4, is characterized in that, the functional part that the Service Part of described the second process feeds back to the first process by described interprocess communication interface by execution result comprises:
According to feedback message between described execution result generation process;
Send feedback message between described process to the functional part of described the first process.
7. method according to claim 1, is characterized in that, described interprocess communication interface is sockets interface (Socket);
Described agent operation instruction sends by Socket request message;
Described execution result sends by Socket response message.
8. according to the method described in claim 1-7 any one, it is characterized in that, described Service Part creates monitors worker thread, establishes a communications link by described monitoring worker thread and described functional part;
Described Service Part, after establishing a communications link with described functional part, creates communication work thread and communicates by letter with described functional part.
9. a device for executable operations instruction, comprises the functional part being preset in the first process and the Service Part that is preset at the second process;
Described functional part is for sending agent operation instruction by interprocess communication interface to the Service Part that is preset at the second process;
Described Service Part is used for receiving and carry out described agent operation instruction, and by described interprocess communication interface, execution result is fed back to the functional part of the first process.
10. the device of executable operations instruction according to claim 9, is characterized in that, described the first process is the process with common authority, and described the second process is the process with System Privileges.
The device of 11. executable operations instructions according to claim 9, is characterized in that, described functional part also comprises:
Service promoter unit, in the time that the first process need to be processed described agent operation instruction, starts the Service Part of the second process;
Subelement is closed in service, closes the Service Part of described the second process after complete for the agent operation instruction all.
The device of 12. executable operations instructions according to claim 9, is characterized in that, described functional part also comprises:
Subelement is obtained in instruction, for obtaining agent operation instruction;
Message generation subelement, for generating inter-process communication message based on described agent operation instruction;
Message sends subelement, for sending described inter-process communication message to described Service Part.
The device of 13. executable operations instructions according to claim 12, is characterized in that, described Service Part comprises:
Resolve subelement, obtain described agent operation instruction for resolving the inter-process communication message receiving;
Carry out subelement, for carrying out described agent operation instruction.
The device of 14. executable operations instructions according to claim 12, is characterized in that, described Service Part comprises:
Feedback message generates subelement, for according to feedback message between described execution result generation process;
Feedback subelement, for sending feedback message between described process to the functional part of described the 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 true CN103970601A (en) 2014-08-06
CN103970601B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714760A (en) * 2015-03-05 2015-06-17 青岛海信宽带多媒体技术有限公司 Method and device for read and write storage device
CN105518693A (en) * 2014-12-29 2016-04-20 华为技术有限公司 Safety protection method and 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
CN106547631A (en) * 2016-09-26 2017-03-29 腾讯科技(深圳)有限公司 Striding course communication means and device based on Android platform
CN106598756A (en) * 2016-12-13 2017-04-26 重庆川仪自动化股份有限公司 Data interaction method among 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
CN107861798A (en) * 2016-09-22 2018-03-30 百度在线网络技术(北京)有限公司 The system-level operations method and device of application
CN113326067A (en) * 2021-05-11 2021-08-31 深圳市捷视飞通科技股份有限公司 Command execution method, system, computer device and storage medium

Citations (5)

* 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
US20100269120A1 (en) * 2009-04-17 2010-10-21 Nokia Corporation Method, apparatus and computer program product for sharing resources via an interprocess communication

Patent Citations (5)

* 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
US20100269120A1 (en) * 2009-04-17 2010-10-21 Nokia Corporation Method, apparatus and computer program product for sharing resources via an interprocess communication

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105518693A (en) * 2014-12-29 2016-04-20 华为技术有限公司 Safety protection method and device
CN105518693B (en) * 2014-12-29 2018-12-07 华为技术有限公司 A kind of safety protecting method and device
CN104714760A (en) * 2015-03-05 2015-06-17 青岛海信宽带多媒体技术有限公司 Method and device for read and write storage device
CN104714760B (en) * 2015-03-05 2018-05-15 青岛海信宽带多媒体技术有限公司 A kind of method and device 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
CN107861798A (en) * 2016-09-22 2018-03-30 百度在线网络技术(北京)有限公司 The system-level operations method and device of application
CN107861798B (en) * 2016-09-22 2019-06-14 北京小熊博望科技有限公司 The system-level operations method and device of application
CN106547631A (en) * 2016-09-26 2017-03-29 腾讯科技(深圳)有限公司 Striding course communication means and device based on Android platform
CN106547631B (en) * 2016-09-26 2021-04-20 腾讯科技(深圳)有限公司 Cross-process communication method and device based on android platform
CN106598756A (en) * 2016-12-13 2017-04-26 重庆川仪自动化股份有限公司 Data interaction method among different application programs
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
CN113326067A (en) * 2021-05-11 2021-08-31 深圳市捷视飞通科技股份有限公司 Command execution method, system, computer device and storage medium
CN113326067B (en) * 2021-05-11 2024-02-06 深圳市捷视飞通科技股份有限公司 Command execution method, system, computer device and storage medium

Also Published As

Publication number Publication date
CN103970601B (en) 2019-03-05

Similar Documents

Publication Publication Date Title
CN103970601A (en) Operational order execution method and operational order execution device
CN1470989B (en) Drive model independent of process mode
CN103455352B (en) The method of application deployment software and application software dispose device
CN112653618B (en) Gateway registration method and device of micro-service application API (application program interface) endpoint
US20060174225A1 (en) Debugging a High Level Language Program Operating Through a Runtime Engine
CN102609279A (en) Application execution in a restricted application execution environment
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
US10656676B2 (en) Docking device, electrical device, and MAC address cloning method
CN101373433A (en) Method for updating BIOS and computer and system using the same
CN102043645B (en) Plug-in loading method and device
CN109445841B (en) Interface document management method, device, server and storage medium
CN101025698A (en) Apparatus for forcibly terminating thread blocked on input/output operation and method for the same
US20140215012A1 (en) Method and apparatus for executing application of mobile device
CN103019941A (en) Program debugging method and device
US10049029B1 (en) Networked multi-interface host debugger
CN110708366A (en) Plug-in process management method, related method and related device
CN1678995B (en) Method and apparatus for identifying hardware compatibility and enabling stable software images
CN110275701B (en) Data processing method, device, medium and computing equipment
CN1983195A (en) Mounting device, electronic device, method of controlling mounting device, controlling program, and recording medium
US7975029B2 (en) Terminal equipment
CN103198257B (en) Security under mixed information treatment facility environment is reused
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN102075646B (en) Call center equipment control system and method
US7926092B2 (en) Facilitating the delivery of security credentials to a network device
CN110096281A (en) Code analysis method, resolution server, storage medium 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