CN104572158B - One kind running application program method and device with power user's identity - Google Patents
One kind running application program method and device with power user's identity Download PDFInfo
- Publication number
- CN104572158B CN104572158B CN201310522465.9A CN201310522465A CN104572158B CN 104572158 B CN104572158 B CN 104572158B CN 201310522465 A CN201310522465 A CN 201310522465A CN 104572158 B CN104572158 B CN 104572158B
- Authority
- CN
- China
- Prior art keywords
- superuser right
- application program
- superuser
- business
- processes
- 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
Links
Landscapes
- Stored Programmes (AREA)
- Power Sources (AREA)
Abstract
One kind running application program method with power user's identity, it include: to create superuser right process in the application, the superuser right process obtains superuser right and continuous service, the business datum that the superuser right need to be used to handle is sent to the superuser right process to handle, and receives the processing result data of power user's process transmission.It is above-mentioned that data processing speed can be improved with power user's identity operation application program method and device.
Description
Technical field
The present invention relates to fields of communication technology, more particularly to one kind to run application program method and dress with power user's identity
It sets.
Background technique
In unix system (such as AIX, BSD) and (each distribution of such as Debian, Redhat, Ubuntu of class unix system
The Linux of version) and android system in, power user has all permission in system, such as start or stop one into
User is deleted or increased to journey, increase or disable hardware etc..
In the prior art, a SuperUser application program is installed in android system, other applications need
Superuser right can be obtained to SuperUser application.But with Shen after application program to superuser right
Please exiting for process and lose, next time is when needing again using superuser right, it is necessary to apply again, this reduces places
The speed of data is managed,
Summary of the invention
In view of this, the present invention, which provides one kind, runs application program method and device with power user's identity, to improve number
According to processing speed.
It is provided in an embodiment of the present invention that application program method is run with power user's identity, comprising:
Superuser right process is created in the application;
The superuser right process obtains superuser right and continuous service;
The business datum that the superuser right need to be used to handle is sent to the superuser right process to carry out
Processing, and receive the processing result data that power user's process is sent.
It is provided in an embodiment of the present invention that application programmer is run with power user's identity, comprising:
Creation module, for creating superuser right process in the application;
Obtain module, for the creation module creation the superuser right process obtain superuser right and
Continuous service;
Sending module, for the business datum of the superuser right processing obtained using the acquisition module will to be needed
The superuser right process is sent to be handled;
Receiving module, the processing result data sent for receiving power user's process.
It is provided in an embodiment of the present invention that application program method and device is run with power user's identity, it creates in the application
Superuser right process is built, which obtains root authority and continuous service, need to use the super use
The business datum of family permission processing is sent to the superuser right process and is handled, and receives power user's process transmission
Processing result data, as long as all may be used in this way, the process in application program has the business that could be handled after obtaining root authority
Handled with giving the superuser right process, and the superuser right process is always maintained at operating status, avoid because
For process exits and loses and frequently applies for root authority caused by root authority again, saves and obtain root authority to handle number
According to when data processing time, accelerate data processing speed.
For above and other objects, features and advantages of the invention can be clearer and more comprehensible, preferred embodiment is cited below particularly,
And cooperate institute's accompanying drawings, it is described in detail below.
Detailed description of the invention
Fig. 1 is one embodiment schematic diagram for running application program method in the embodiment of the present invention with power user's identity;
Fig. 2 is another embodiment signal for running application program method in the embodiment of the present invention with power user's identity
Figure;
Fig. 3 is one embodiment schematic diagram for running application programmer in the embodiment of the present invention with power user's identity;
Fig. 4 is another embodiment signal for running application programmer in the embodiment of the present invention with power user's identity
Figure.
Specific embodiment
Further to illustrate that the present invention is the technical means and efficacy realizing predetermined goal of the invention and being taken, below in conjunction with
Attached drawing and preferred embodiment, to specific embodiment, structure, feature and its effect according to the present invention, detailed description is as follows.
Application program method is run with power user's identity provided by the embodiment of the present invention, it can be in operation application program
Shi Chixu keeps preset permission, improves the efficiency of processing data.
Fig. 1 is please referred to, runs one embodiment packet of application program method in the embodiment of the present invention with power user's identity
It includes:
101, superuser right process is created in the application;
Process is primary operation activity of the program with standalone feature about some data acquisition system.It can apply
With possess system resource, be a dynamic concept, be a movable entity.It is more than the code of program, further includes working as
Preceding activity is indicated by the value of program counter and the content of processing register.
System creates one or more superuser right processes in the application, which is used for
Obtain superuser right.
102, the superuser right process obtains superuser right and continuous service;
Power user, i.e. root, unix system (such as AIX, BSD) and class unix system (such as Debian, Redhat,
The Linux of each release such as Ubuntu) and android system in, power user is generally designated as root.Root is system
In unique power user with all permissions in system such as start or stop a process, delete or increase user, increase
Add or disable hardware etc..
The superuser right process of creation to system application and obtains superuser right, that is, obtains root authority.
The superuser right process does not exit always after obtaining root authority but continuous service, other processes to be received is waited to send
Business datum.
103, the business datum that the superuser right need to be used to handle the superuser right process is sent to carry out
Processing, and receive the processing result data of power user's process transmission.
There is also other processes for the application program, if there is process needs to obtain the business that root authority can be handled,
The business datum is then sent to the superuser right process processing for having root authority, be disposed power user power
By treated, business datum is sent to the process to limit process, which receives the processing result number of power user's process transmission
According to.The superuser right process continues to run, wait receive again other processes transmission need root authority that could handle
Business datum.
In the embodiment of the present invention, superuser right process is created in the application, which obtains
Root authority and continuous service are taken, the business datum that the superuser right need to be used to handle is sent to the superuser right
Process is handled, and receives the processing result data of power user's process transmission, as long as in this way, process in application program
There is the business that could be handled after obtaining root authority, the superuser right process can be given and handled, and this is super
Grade user right process is always maintained at operating status, avoids losing frequent Shen again caused by root authority because process exits
Please root authority, save and obtain root authority to handle data processing time when data, accelerate data processing speed.
Referring to Fig. 2, Fig. 2 be the embodiment of the present invention in power user's identity run application program method another
Embodiment, the difference is that, superuser right process described in step 102 obtains power user with embodiment illustrated in fig. 1
Permission specifically may is that
202, it sends and applies to superuser right management program, obtained after the authorization of the superuser right management program
Obtain the superuser right.
Process will obtain root authority, then send and apply to root authority management program, which awards
After weighing the process root authority, then the process obtains root authority.
Further, if creating multiple superuser right processes in application program, when the application program have it is multiple
When the business that the superuser right need to be used to handle, the data of multiple business are sent to multiple be somebody's turn to do according to preset rule
Superuser right process is handled.For example, if 4 superuser right processes are created in application program, when the application
When multiple processes share the business that 8 need are handled using root authority in program, by the data of 8 business according to preset rule
It is then sent to 3 superuser right processes to be handled, which can be tandem temporally for 8
The data of a business are averagely allocated to 4 superuser right processes and are handled, and are also possible to the type according to business for 8
The data classification of business is distributed to 4 superuser right processes and is handled.
When receiving multiple business that the superuser right need to be used to handle simultaneously, power user's process is according to pre-
The service priority sequential processes business set.For example, using the super use when power user's process receives 5 need simultaneously
When the business of family permission processing, according to preset service priority sequential processes 5 business, the setting of service priority and tool
Body application program is related, is not especially limited herein.
In the embodiment of the present invention, if there is multiple superuser right processes in application program, when the application program has
When multiple business that root authority need to be used to handle, the data of multiple business are sent to multiple this according to preset rule and are surpassed
Grade user right process is handled, so that multiple superuser right processes handle the more efficient of multiple business, when simultaneously
When receiving multiple business that the superuser right need to be used to handle, power user's process is according to preset service priority
Sequential processes business improves the treatment effeciency of the business so that the higher business of priority-level is preferentially handled.
Referring to Fig. 3, one embodiment with power user's identity operation application programmer in the embodiment of the present invention
Include:
Creation module 301, for creating superuser right process in the application;
Obtain module 302, for creation module 301 create the superuser right process obtain superuser right and
Continuous service;
Sending module 303, for that will need using the business datum for obtaining the superuser right processing that module 302 obtains
The superuser right process for being sent to the creation of creation module 301 is handled;
Receiving module 304, for receiving the processing result data of power user's process transmission.
The mistake of respective function is realized in the embodiment of the present invention with each module in power user's identity operation application programmer
Journey refers to the specific descriptions of aforementioned embodiment illustrated in fig. 1, and details are not described herein again.
In the embodiment of the present invention, creation module 301 creates superuser right process in the application, obtains module
302 obtain superuser right and continuous service, the business datum that sending module 303 will need to use the superuser right to handle
It is sent to the superuser right process to be handled, receiving module 304 receives the processing result that power user's process is sent
Data, as long as it is super that this can be given in this way, the process in application program has the business that could be handled after obtaining root authority
Grade user right process is handled, and the superuser right process is always maintained at operating status, avoids because process exits
And lose and frequently apply for root authority caused by root authority again, it saves and obtains root authority to handle at data when data
The time is managed, data processing speed is accelerated.
Referring to Fig. 4, Fig. 4 be the embodiment of the present invention in power user's identity run application programmer another
Embodiment, with embodiment illustrated in fig. 3 the difference is that,
Creation module 301 is also used to create one or more superuser right processes in the application program.
Sending module 303, if for creating multiple superuser right processes in the application program, when this applies journey
When sequence there are multiple business that the superuser right need to be used to handle, the data of multiple business are sent according to preset rule
It is handled to multiple superuser right processes.
Can further include with power user's identity operation application programmer in the embodiment of the present invention:
Processing module, for when receiving multiple business that the superuser right need to be used to handle simultaneously, this to be super
Consumer process is according to preset service priority sequential processes business.
Further, module 302 is obtained can include:
Application module 3021 is sent, is applied for being sent to superuser right management program;
Authority module 3022 is obtained, for obtaining power user power after the authorization of the superuser right management program
Limit.
The mistake of respective function is realized in the embodiment of the present invention with each module in power user's identity operation application programmer
Journey refers to the specific descriptions of earlier figures 1 and embodiment illustrated in fig. 2, and details are not described herein again.
In the embodiment of the present invention, if there is multiple superuser right processes in application program, when the application program has
When multiple business that root authority need to be used to handle, sending module 303 sends out the data of multiple business according to preset rule
It gives multiple superuser right processes to be handled, so that multiple superuser right processes handle the efficiency of multiple business
Higher, when receiving multiple business that the superuser right need to be used to handle simultaneously, processing module 305 is according to preset industry
Priority orders processing business of being engaged in improves the processing effect of the business so that the higher business of priority-level is preferentially handled
Rate.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that process, method, article or device including a series of elements are not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or device
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or device including the element.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, though
So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention, any technology people for being familiar with this profession
Member, without departing from the scope of the present invention, when the technology contents using the disclosure above are modified or are modified
It is right according to the technical essence of the invention for the equivalent embodiment of equivalent variations, but without departing from the technical solutions of the present invention
Any simple modification, equivalent change and modification made by above embodiments, all of which are still within the scope of the technical scheme of the invention.
Claims (10)
1. a kind of run application program method with power user's identity characterized by comprising
Superuser right process is created in the application;
The superuser right process obtains superuser right and continuous service to wait other in the application program
Process send business datum, other described processes be the application program in addition to the superuser right process into
Journey;
When other processes described in the application program are needed using the superuser right processing business, will need using
The business datum of the superuser right processing is sent to the superuser right process and is handled, and receives described super
The processing result data that user right process is sent;
The superuser right process continues to run, and receives what other processes in the application program were sent again to wait
Business datum.
2. the method according to claim 1, wherein described create superuser right process in the application
Include:
One or more superuser right processes are created in the application program.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
If creating multiple superuser right processes in the application program, then when the application program have it is multiple need using
When the business of superuser right processing, the data of the multiple business are sent to according to preset rule multiple described
Superuser right process is handled.
4. method according to any one of claims 1 to 3, which is characterized in that the method also includes:
When receiving multiple business that the superuser right need to be used to handle simultaneously, the superuser right process is pressed
According to preset service priority sequential processes business.
5. the method according to claim 1, wherein the superuser right process obtains superuser right
Include:
It sends and applies to superuser right management program;
The superuser right is obtained after the authorization of the superuser right management program.
6. a kind of run application programmer with power user's identity characterized by comprising
Creation module, for creating superuser right process in the application;
Module is obtained, the superuser right process for creation module creation obtains superuser right and continues
The business datum to wait other processes in the application program to send is run, other described processes are in the application program
Process in addition to the superuser right process;
Sending module needs to handle industry using the superuser right for other processes described in the application program
When business, the business datum for the superuser right processing that the acquisition module need to be used to obtain is sent to the super use
Family permission process is handled;
Receiving module, the processing result data sent for receiving the superuser right process;
The acquisition module, the superuser right process for being also used to the creation module creation continues to run, to wait
The business datum that other processes in the application program are sent is received again.
7. device according to claim 6, which is characterized in that
The creation module is also used to create one or more superuser right processes in the application program.
8. device according to claim 6, which is characterized in that
The sending module, if being answered for creating multiple superuser right processes in the application program when described
When having multiple business that the superuser right need to be used to handle with program, by the data of the multiple business according to preset
Rule is sent to multiple superuser right processes and is handled.
9. according to the described in any item devices of claim 6 to 8, which is characterized in that described device further include:
Processing module, for when simultaneously receive it is multiple need to use the superuser right handle business when, it is described super
User right process is according to preset service priority sequential processes business.
10. device according to claim 6, which is characterized in that the acquisition module includes:
Application module is sent, is applied for being sent to superuser right management program;
Authority module is obtained, for obtaining the superuser right after the authorization of the superuser right management program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310522465.9A CN104572158B (en) | 2013-10-29 | 2013-10-29 | One kind running application program method and device with power user's identity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310522465.9A CN104572158B (en) | 2013-10-29 | 2013-10-29 | One kind running application program method and device with power user's identity |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104572158A CN104572158A (en) | 2015-04-29 |
CN104572158B true CN104572158B (en) | 2019-01-04 |
Family
ID=53088320
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310522465.9A Active CN104572158B (en) | 2013-10-29 | 2013-10-29 | One kind running application program method and device with power user's identity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572158B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106559546B (en) * | 2015-09-28 | 2020-09-04 | 腾讯科技(深圳)有限公司 | Method and device for controlling software to use network networking |
CN105243325A (en) * | 2015-09-29 | 2016-01-13 | 北京奇虎科技有限公司 | Method for residual process file in mobile terminal, mobile terminal and server |
WO2016045647A2 (en) * | 2015-11-26 | 2016-03-31 | 华为技术有限公司 | Red envelope data processing method and terminal |
CN106503570B (en) * | 2016-11-17 | 2020-01-14 | 深圳Tcl数字技术有限公司 | Method and device for protecting Root authority |
CN117807568B (en) * | 2024-01-03 | 2024-06-28 | 深圳云达腾华信息技术有限公司 | Installation permission control method and device based on Linux operating system, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080216175A1 (en) * | 2006-05-18 | 2008-09-04 | Vmware, Inc. | Computational system including mechanisms for tracking taint |
CN102542200A (en) * | 2011-12-21 | 2012-07-04 | 北京握奇数据系统有限公司 | Method and device for processing digital authentication terminal |
CN102981835A (en) * | 2012-11-02 | 2013-03-20 | 福州博远无线网络科技有限公司 | Android application program permanent Root permission acquiring method |
CN103324887A (en) * | 2013-07-05 | 2013-09-25 | 百度在线网络技术(北京)有限公司 | Mobile terminal, security defense device thereof and security defense method thereof |
-
2013
- 2013-10-29 CN CN201310522465.9A patent/CN104572158B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080216175A1 (en) * | 2006-05-18 | 2008-09-04 | Vmware, Inc. | Computational system including mechanisms for tracking taint |
CN102542200A (en) * | 2011-12-21 | 2012-07-04 | 北京握奇数据系统有限公司 | Method and device for processing digital authentication terminal |
CN102981835A (en) * | 2012-11-02 | 2013-03-20 | 福州博远无线网络科技有限公司 | Android application program permanent Root permission acquiring method |
CN103324887A (en) * | 2013-07-05 | 2013-09-25 | 百度在线网络技术(北京)有限公司 | Mobile terminal, security defense device thereof and security defense method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104572158A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104572158B (en) | One kind running application program method and device with power user's identity | |
US11184151B2 (en) | Devices for providing a set of cryptographically secured and filtered and sorted transaction data sets of a block of a blockchain | |
EP3296913A8 (en) | Method and system for secure communication of a token and aggregation of the same | |
WO2004023335A3 (en) | Central master data management | |
WO2005062571A3 (en) | System and method for allocating server resources | |
CN105740332A (en) | Data sorting method and device | |
WO2013189442A3 (en) | Memory management method and device | |
Jangiti et al. | Scalable and direct vector bin-packing heuristic based on residual resource ratios for virtual machine placement in cloud data centers | |
CN105491150A (en) | Load balance processing method based on time sequence and system | |
EP1341114A3 (en) | Management method based on stream management in supply chain product management | |
PH12017000312B1 (en) | Virtual currency system | |
CN102685266B (en) | Zone file signature method and system | |
CN109428735A (en) | Charging method and charge system | |
CN106133691A (en) | Dummy machine system and control method thereof and control program recorded medium | |
CN112905223B (en) | Upgrade package generation method, device and equipment | |
US20130205024A1 (en) | Server system, management device, server management method, and program | |
GB2592143A (en) | Stream allocation using stream credits | |
CN106484689B (en) | Data processing method and device | |
WO2015039146A3 (en) | A system αnd a method for depletable, natural asset management, accounting and analysis | |
MX2017017191A (en) | Denomination distribution and reallocation systems and methods. | |
CN114374652B (en) | Data transmission speed limiting method and device between thermomagnetic storage and blue light storage | |
CN110175078A (en) | Method for processing business and device | |
CN103530742A (en) | Method and device for increasing scheduling operation speed | |
CN105518617B (en) | Data cached processing method and processing device | |
WO2004059493A3 (en) | Method of securing computer systems by means of software containment |
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 |