CN106162612B - Control the method and device of Root authority - Google Patents
Control the method and device of Root authority Download PDFInfo
- Publication number
- CN106162612B CN106162612B CN201610483675.5A CN201610483675A CN106162612B CN 106162612 B CN106162612 B CN 106162612B CN 201610483675 A CN201610483675 A CN 201610483675A CN 106162612 B CN106162612 B CN 106162612B
- Authority
- CN
- China
- Prior art keywords
- version
- root authority
- request
- upgrade package
- root
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
- H04W8/245—Transfer of terminal data from a network towards a terminal
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The disclosure is directed to control the method and device of Root authority.This method comprises: receiving the first request for obtaining Root authority;The version information of first request comprising the current non-Root authority version of terminal;According to the version information of the current non-Root authority, the upgrade package of corresponding Root authority version is obtained;Send the upgrade package obtained.The technical solution not only can guarantee the safety of a part of user terminal, but also can have the user for obtaining Root authority demand to provide convenience for another part.
Description
Technical field
This disclosure relates to Internet technical field, more particularly to the method and device of control Root authority.
Background technique
Root is present in a kind of Linux (operating system) system, a kind of UNIX (operating system) system and class unix system
In, it is unique power user in system, the administrator (pipe being equivalent in a kind of Windows (operating system) system
Reason person) user.It such as starts or stops a process with permission all in system, deletes or increase user, increase or
Disable hardware etc..
Exploitation edition system is to allow some development of user to provide a version periodically upgraded of Root authority, and the version is silent
Offer Root authority is provided, but since exploitation version user base number becomes larger, it, can not be good since default provides Root authority
Guarantee the safety of user mobile phone.
Summary of the invention
The embodiment of the present disclosure provides the method and device of control Root authority.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of method controlling Root authority is provided, server, packet are used for
It includes:
Receive the first request for obtaining Root authority;The version of first request comprising the current non-Root authority version of terminal
This information;
According to the version information of the current non-Root authority, the upgrade package of corresponding Root authority version is obtained;
Send the upgrade package obtained.
In one embodiment, the upgrade package is the identical Root authority version of version number relative to non-Root authority version
This delta package.
In one embodiment, the method may also include that
The second request for carrying out version updating is received, second request includes the version information of current system;
According to the version information of the current system in second request, obtains newest and version information and be higher than described work as
The corresponding installation kit of non-Root authority version of the version information of preceding system;
Send the installation kit.
According to the second aspect of an embodiment of the present disclosure, a kind of method controlling Root authority is provided, terminal is used for, comprising:
The first request for obtaining Root authority is sent to server;First request includes local current non-Root authority
The version information of version;
Receive the upgrade package of server feedback;The upgrade package is the upgrade package of corresponding Root authority version;
The upgrade package is installed, to obtain Root authority.
In one embodiment, the upgrade package is the identical Root authority version of version number relative to non-Root authority version
This delta package.
In one embodiment, the method may also include that
The second request for carrying out version updating is sent to server, second request is believed comprising the version of current system
Breath;
The non-Root for the version information that the newest and version information for receiving server feedback is higher than the current system is weighed
Limited in edition corresponding installation kit;
The installation kit is installed.
In one embodiment, the version of the current system is the version of non-Root authority or the version of Root authority
This.
In one embodiment, the method may also include that
Receive the operation for closing Root authority;
Close Root authority.
According to the third aspect of an embodiment of the present disclosure, a kind of device controlling Root authority is provided, server, packet are used for
It includes:
First receiving module, for receiving the first request for obtaining Root authority;First request is current comprising terminal
The version information of non-Root authority version;
First obtains module, for the version information according to the current non-Root authority, obtains corresponding Root authority
The upgrade package of version;
First sending module, for sending the upgrade package obtained.
In one embodiment, the upgrade package is the identical Root authority version of version number relative to non-Root authority version
This delta package.
In one embodiment, described device may also include that
Second receiving module, for receiving the second request for carrying out version updating, second request includes current system
Version information;
Second obtain module, for according to it is described second request in current system version information, obtain it is newest and
Version information is higher than the corresponding installation kit of non-Root authority version of the version information of the current system;
Second sending module, for sending the installation kit.
According to a fourth aspect of embodiments of the present disclosure, a kind of device controlling Root authority is provided, terminal is used for, comprising:
First sending module, for sending the first request for obtaining Root authority to server;It is described first request include
The version information of local current non-Root authority version;
First receiving module, for receiving the upgrade package of server feedback;The upgrade package is corresponding Root authority version
This upgrade package;
First installation module, for installing the upgrade package, to obtain Root authority.
In one embodiment, the upgrade package is the identical Root authority version of version number relative to non-Root authority version
This delta package.
In one embodiment, described device may also include that
Second sending module, for sending the second request for carrying out version updating to server, second request includes
The version information of current system;
Second receiving module, the newest and version information for receiving server feedback are higher than the version of the current system
The corresponding installation kit of non-Root authority version of this information;
Second installation module, for installing the installation kit.
In one embodiment, the version of the current system is the version of non-Root authority or the version of Root authority
This.
In one embodiment, described device may also include that
Third receiving module, for receiving the operation for closing Root authority;
Closedown module, for closing Root authority.
According to a fifth aspect of the embodiments of the present disclosure, a kind of device controlling Root authority is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the first request for obtaining Root authority;The version of first request comprising the current non-Root authority version of terminal
This information;
According to the version information of the current non-Root authority, the upgrade package of corresponding Root authority version is obtained;
Send the upgrade package obtained.
According to a sixth aspect of an embodiment of the present disclosure, a kind of device controlling Root authority is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The first request for obtaining Root authority is sent to server;First request includes local current non-Root authority
The version information of version;
Receive the upgrade package of server feedback;The upgrade package is the upgrade package of corresponding Root authority version;
The upgrade package is installed, to obtain Root authority.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In one embodiment, it is requested by being sent to server, server is believed according to the version of current non-Root authority
Breath obtains the upgrade package of corresponding Root authority version, and after terminal receives the upgrade package of server feedback, user needs again actively
The upgrade package for installing the Root authority version corresponding with current operation system version information, can just obtain Root authority, this
It is balanced in safety and demand side, not only can guarantee the safety of a part of user terminal, but also can have acquisition for another part
The user of Root authority demand provides convenience.
In another embodiment, regardless of whether operating system currently possesses Root authority, when upgrading next time, all can
It is upgraded to non-Root authority version in server end control, at this point, sending the request for updating system version, server to server
After receiving the request, the upgrade package of non-Root authority version is obtained, and the upgrade package is sent to terminal, updates and grasp for terminal
Make system.Since default updates current system to non-Root authority version, the safety of user terminal ensure that.
In another embodiment, after obtaining Root authority, in order to guarantee the stability and safety of user terminal,
User can also close Root authority at any time.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the flow chart of the method for control Root authority shown according to an exemplary embodiment.
Fig. 2 is the flow chart of the method for another control Root authority shown according to an exemplary embodiment.
Fig. 3 is the flow chart of the method for another control Root authority shown according to an exemplary embodiment.
Fig. 4 is the flow chart of the method for another control Root authority shown according to an exemplary embodiment.
Fig. 5 is the flow chart of the method for another control Root authority shown according to an exemplary embodiment.
Fig. 6 is the flow chart according to the method for the control Root authority shown in an exemplary embodiment one.
Fig. 7 is the block diagram of the device of control Root authority shown according to an exemplary embodiment.
Fig. 8 is the block diagram of the device of another control Root authority shown according to an exemplary embodiment.
Fig. 9 is the block diagram of the device of another control Root authority shown according to an exemplary embodiment.
Figure 10 is the block diagram of the device of another control Root authority shown according to an exemplary embodiment.
Figure 11 is the block diagram of the device of another control Root authority shown according to an exemplary embodiment.
Figure 12 is the block diagram of the device shown according to an exemplary embodiment for being suitable for controlling Root authority.
Figure 13 is the block diagram of the device shown according to an exemplary embodiment for being suitable for controlling Root authority.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of method for controlling Root authority shown according to an exemplary embodiment, for servicing
Device, as shown in Figure 1, this approach includes the following steps S101-S103:
In step s101, the first request for obtaining Root authority is received;Comprising terminal, currently non-Root is weighed for first request
Limited in edition version information.
When user wants to obtain the Root authority of current operation system, is sent to server and obtain asking for Root authority
It asks, the version information comprising the current non-Root authority version of terminal in request, version information may include version number, for example,
5.9.9 Root editions non-.
In step s 102, according to the version information of current non-Root authority, the liter of corresponding Root authority version is obtained
Grade packet.
In one embodiment, upgrade package is the identical Root authority version of version number relative to non-Root authority version
Delta package.That is, the version for the non-Root authority version for including in the upgrade package of Root authority version and the first request is believed
Version number in breath is identical.Two systems upgrade package can be gone out simultaneously, for example, the non-Root authority version of 5.9.9 and 5.9.9
Root authority version, it is non-in order to save flow and installation convenience, Root authority version and the 5.9.9 that 5.9.9 can also be generated
The delta package 5.9.9-root.patch of Root authority version.
In step s 103, the upgrade package of acquisition is sent.
Currently, promising user provides regular (for example, each week) upgraded version of Root authority, and operating system update is arrived
After the version, user also just obtains Root authority, but is defaulted due to the version and provide Root authority, as Root version is used
Constantly becoming larger for family radix, can not guarantee the safety of user mobile phone, the above method of the embodiment of the present disclosure, Yong Humo well
The demand recognized no Root authority, but there are certain customers to have desired Root authority, therefore, it is desirable to it sends and requests to server,
Server obtains the upgrade package of corresponding Root authority version according to the version information of current non-Root authority, and user needs again
The upgrade package of the Root authority version corresponding with current operation system version information is actively installed, Root power can be just obtained
Limit, this is balanced in safety and demand side, not only can guarantee the safety of a part of user terminal, but also can have for another part
The user for obtaining Root authority demand provides convenience.
In one embodiment, as shown in Fig. 2, the above method can also include the steps of S104- before step S101
S106:
In step S104, the second request for carrying out version updating is received, the second request is believed comprising the version of current system
Breath.
In step s105, according to the version information of the current system in the second request, newest and version information is obtained
Higher than the corresponding installation kit of non-Root authority version of the version information of current system.
In step s 106, installation kit is sent.
In the present embodiment, regardless of whether operating system currently possesses Root authority, when upgrading next time, can all it service
The control of device end is upgraded to non-Root version, at this point, sending the request for updating system version to server, server receives this and asks
After asking, the upgrade package of non-Root authority version is obtained, and the upgrade package is sent to terminal, updates operating system for terminal.By
Current system is updated to non-Root authority version in default, therefore ensure that the safety of user terminal.
In one embodiment, the non-Root in the upgrade package of the Root authority version in step S102 and step S105 is weighed
The version number of limited in edition corresponding installation kit is identical.
For example, regardless of the version of current operation system is the non-Root authority version of 5.9.9 or the Root power of 5.9.9
Limited in edition, when upgrading next time, it can all default and be upgraded to the non-Root authority version of 5.9.10, rather than directly be upgraded to 5.9.10
Root authority version, when user needs Root authority, it is necessary to again upgrade 5.9.10 Root authority version and non-Root
OTA (increment upgrading) delta package 5.9.10-root.patch of permission version.
Fig. 3 is a kind of flow chart of method for controlling Root authority shown according to an exemplary embodiment, is used for terminal,
Terminal can be mobile terminal, be also possible to fixed terminal, the embodiment of the present disclosure is without limitation.As shown in figure 3, this method includes
Following steps S301-S303:
In step S301, the first request for obtaining Root authority is sent to server;First request is comprising local current
The version information of non-Root authority version.
When user wants to obtain the Root authority of current operation system, is sent to server and obtain asking for Root authority
It asks, the version information comprising the current non-Root authority version of terminal in request, version information may include version number, for example,
5.9.10 Root editions non-.
In step s 302, the upgrade package of server feedback is received;Upgrade package is the upgrading of corresponding Root authority version
Packet.
In one embodiment, upgrade package is the identical Root authority version of version number relative to non-Root authority version
Delta package.That is, the version for the non-Root authority version for including in the upgrade package of Root authority version and the first request is believed
Version number in breath is identical.
In step S303, upgrade package is installed, to obtain Root authority.
Currently, promising user provides regular (for example, each week) upgraded version of Root authority, and operating system update is arrived
After the version, user also just obtains Root authority, but is defaulted due to the version and provide Root authority, as Root version is used
Constantly becoming larger for family radix, can not guarantee the safety of user mobile phone, the above method of the embodiment of the present disclosure, Yong Humo well
The demand recognized no Root authority, but there are certain customers to have desired Root authority, therefore, it is desirable to it sends and requests to server,
Server obtains the upgrade package of corresponding Root authority version according to the version information of current non-Root authority, and terminal receives clothes
It is engaged in after the upgrade package of device feedback, user needs actively to install again should Root authority version corresponding with current operation system version information
This upgrade package, can just obtain Root authority, this is balanced in safety and demand side, both can guarantee that a part of user is whole
The safety at end, and can there is the user for obtaining Root authority demand to provide convenience for another part.
In one embodiment, as shown in figure 4, the above method can also include the steps of S304-S306:
In step s 304, the second request for carrying out version updating is sent to server, the second request includes current system
Version information.
In step S305, the newest and version information for receiving server feedback is higher than the version information of current system
The corresponding installation kit of non-Root authority version.
In step S306, which is installed.
In the present embodiment, regardless of whether operating system currently possesses Root authority, when upgrading next time, can all it service
The control of device end is upgraded to non-Root authority version, at this point, sending the request for updating system version to server, server is received
After the request, the upgrade package of non-Root authority version is obtained, and the upgrade package is sent to terminal, updates operation system for terminal
System.Since default updates current system to non-Root authority version, the safety of user terminal ensure that.
In one embodiment, the non-Root in the upgrade package of the Root authority version in step S302 and step S305 is weighed
The version number of limited in edition corresponding installation kit is identical.
For example, regardless of the version of current operation system is the non-Root authority version of 5.9.9 or the Root power of 5.9.9
Limited in edition, when upgrading next time, it can all default and be upgraded to the non-Root authority version of 5.9.10, rather than directly be upgraded to 5.9.10
Root authority version, when user needs Root authority, it is necessary to again upgrade 5.9.10 Root authority version and non-Root
OTA (increment upgrading) delta package 5.9.10-root.patch of permission version.
In one embodiment, the version of current system is the version of non-Root authority or the version of Root authority.
In the present embodiment, regardless of the version of current system is the version of non-Root authority or the version of Root authority, In
When upgrading next time, the version for upgrading to non-Root authority is all defaulted, when user has the demand for obtaining Root authority, it is necessary to again
Secondary upgrading, to ensure that the safety of user terminal.
In one embodiment, as shown in figure 5, the above method can also include the steps of S307-S308:
In step S307, the operation for closing Root authority is received.
In step S308, Root authority is closed.
In the present embodiment, after obtaining Root authority, in order to guarantee the stability and safety of user terminal, user is also
Root authority can be closed at any time.
The above-mentioned technical proposal of embodiment of the present disclosure offer is provided below with specific embodiment.
Using the method for the control Root authority that the embodiment of the present disclosure provides, Root authority is provided for user, such as Fig. 6 institute
Show, this method is followed by following operation:
In step s 601, terminal to server sends the request for carrying out version updating, includes current system in the request
Version information (the non-Root authority version of the Root authority version or 5.9.8 of 5.9.8).
In step S602, server receives the request for carrying out version updating, according to the version of the current system in request
Information obtains the corresponding installation kit (5.9.9 of non-Root authority version that newest and version information is higher than current version information
Non- Root authority version), and installation kit is sent to terminal.
In step S603, the newest and version information that terminal receives server feedback is higher than current version information
The corresponding installation kit of non-Root authority version (the non-Root authority version of 5.9.9).
In step s 604, terminal installs the installation kit.
In step s 605, terminal to server, which is sent, obtains asking for Root authority, which includes local current non-
The version information of Root authority version,
In step S606, server receives the request for obtaining Root authority, is believed according to the version of current non-Root authority
Breath obtains the identical Root authority version (5.9.9Root permission version) of version number relative to non-Root authority version (5.9.9
Non- Root authority version) delta package (5.9.9-root.patch).
In step S607, which is sent to terminal by server.
In step S608, terminal receives the delta package of server feedback, installs the delta package, system upgrade 5.9.9
Root authority version.
In the present embodiment, when system is upgraded, first default is upgraded to non-Root authority version, when user wants Root power
In limited time, it needs to be upgraded to Root authority version again, therefore, not only can guarantee the safety of a part of user terminal, but also can be another
A part has the user for obtaining Root authority demand to provide convenience.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 7 is a kind of block diagram for controlling Root authority shown according to an exemplary embodiment, is used for server, such as Fig. 7
Shown, the device of the control Root authority includes:
First receiving module 71 is configured as receiving the first request for obtaining Root authority;First request is worked as comprising terminal
The version information of preceding non-Root authority version.
First obtains module 72, is configured as the version information according to current non-Root authority, obtains corresponding Root power
Limited in edition upgrade package.
First sending module 73 is configured as sending the upgrade package obtained.
The above-mentioned apparatus of the embodiment of the present disclosure, user defaults no Root authority, but has certain customers to have desired Root
The demand of permission, therefore, it is desirable to send and request to server, server is obtained according to the version information of current non-Root authority
The upgrade package of corresponding Root authority version, it is corresponding with current operation system version information that user needs again actively installation to be somebody's turn to do
The upgrade package of Root authority version, can just obtain Root authority, this is balanced in safety and demand side, both can guarantee one
The safety of certain customers' terminal, and can there is the user for obtaining Root authority demand to provide convenience for another part.
In one embodiment, upgrade package is the identical Root authority version of version number relative to non-Root authority version
Delta package.
In one embodiment, as shown in figure 8, above-mentioned apparatus may also include that
Second receiving module 74 is configured as receiving the second request for carrying out version updating, and the second request includes current system
The version information of system.
Second obtains module 75, is configured as being obtained newest according to the version information of the current system in the second request
And version information is higher than the corresponding installation kit of non-Root authority version of the version information of current system.
Second sending module 76 is configured as sending installation kit.
In the present embodiment, regardless of whether operating system currently possesses Root authority, when upgrading next time, can all it service
The control of device end is upgraded to non-Root version, at this point, sending the request for updating system version to server, server receives this and asks
After asking, the upgrade package of non-Root authority version is obtained, and the upgrade package is sent to terminal, updates operating system for terminal.By
Current system is updated to non-Root authority version in default, therefore ensure that the safety of user terminal.
Fig. 9 is a kind of block diagram for controlling Root authority shown according to an exemplary embodiment, is used for terminal, which can
With being implemented in combination with as some or all of of electronic equipment by software, hardware or both.As shown in figure 9, the control
The device of Root authority includes:
First sending module 91 is configured as sending the first request for obtaining Root authority to server;First request packet
Version information containing local current non-Root authority version.
First receiving module 92 is configured as receiving the upgrade package of server feedback;Upgrade package is corresponding Root authority
The upgrade package of version.
First installation module 93, is configured as installation upgrade package, to obtain Root authority.
The above-mentioned apparatus of the embodiment of the present disclosure, user defaults no Root authority, but has certain customers to have desired Root
The demand of permission, therefore, it is desirable to send and request to server, server is obtained according to the version information of current non-Root authority
The upgrade package of corresponding Root authority version, after terminal receives the upgrade package of server feedback, user needs actively to install again should
The upgrade package of Root authority version corresponding with current operation system version information, can just obtain Root authority, this is in safety
It is balanced with demand side, not only can guarantee the safety of a part of user terminal, but also can have for another part and obtain Root power
The user of limit demand provides convenience.
In one embodiment, upgrade package is the identical Root authority version of version number relative to non-Root authority version
Delta package.
In one embodiment, as shown in Figure 10, above-mentioned apparatus may also include that
Second sending module 94 is configured as sending the second request for carrying out version updating, the second request packet to server
Version information containing current system.
Second receiving module 95, the newest and version information for being configured as receiving server feedback are higher than current system
The corresponding installation kit of non-Root authority version of version information.
Second installation module 96, is configured as installing the installation kit.
In the present embodiment, regardless of whether operating system currently possesses Root authority, when upgrading next time, can all it service
The control of device end is upgraded to non-Root authority version, at this point, sending the request for updating system version to server, server is received
After the request, the upgrade package of non-Root authority version is obtained, and the upgrade package is sent to terminal, updates operation system for terminal
System.Since default updates current system to non-Root authority version, the safety of user terminal ensure that.
In one embodiment, the version of current system is the version of non-Root authority or the version of Root authority.
In the present embodiment, regardless of the version of current system is the version of non-Root authority or the version of Root authority, In
When upgrading next time, the version for upgrading to non-Root authority is all defaulted, when user has the demand for obtaining Root authority, it is necessary to again
Secondary upgrading, to ensure that the safety of user terminal.
In one embodiment, as shown in figure 11, above-mentioned apparatus may also include that
Third receiving module 97 is configured as receiving the operation for closing Root authority.
Closedown module 98 is configured as closing Root authority.
In the present embodiment, after obtaining Root authority, in order to guarantee the stability and safety of user terminal, user is also
Root authority can be closed at any time.
The embodiment of the present disclosure also provides a kind of device for controlling Root authority, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the first request for obtaining Root authority;The version of first request comprising the current non-Root authority version of terminal
This information;
According to the version information of the current non-Root authority, the upgrade package of corresponding Root authority version is obtained;
Send the upgrade package obtained.
It is the identical Root authority version of version number relative to non-Root that above-mentioned processor, which is also configured to the upgrade package,
The delta package of permission version.
Above-mentioned processor is also configured to
The second request for carrying out version updating is received, second request includes the version information of current system;
According to the version information of the current system in second request, obtains newest and version information and be higher than described work as
The corresponding installation kit of non-Root authority version of the version information of preceding system;
Send the installation kit.
The embodiment of the present disclosure also provides a kind of device for controlling Root authority, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The first request for obtaining Root authority is sent to server;First request includes local current non-Root authority
The version information of version;
Receive the upgrade package of server feedback;The upgrade package is the upgrade package of corresponding Root authority version;
The upgrade package is installed, to obtain Root authority.
It is the identical Root authority version of version number relative to non-Root that above-mentioned processor, which is also configured to the upgrade package,
The delta package of permission version.
Above-mentioned processor is also configured to send the second request for carrying out version updating to server, second request
Version information comprising current system;
The non-Root for the version information that the newest and version information for receiving server feedback is higher than the current system is weighed
Limited in edition corresponding installation kit;
The installation kit is installed.
The version that above-mentioned processor is also configured to the current system is the version or Root authority of non-Root authority
Version.
Above-mentioned processor is also configured to receive the operation for closing Root authority;
Close Root authority.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Figure 12 is shown according to an exemplary embodiment a kind of for controlling the block diagram of the device of Root authority, the device
Suitable for terminal device.For example, device 1200 can be mobile phone, and computer, digital broadcasting terminal, messaging device,
Game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 1200 may include following one or more components: processing component 1202, memory 1204, power supply module
1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module 1214, and
Communication component 1216.
The integrated operation of the usual control device 1200 of processing component 1202, such as with display, telephone call, data communication,
Camera operation and record operate associated operation.Processing component 1202 may include one or more processors 1220 to execute
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more moulds
Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module,
To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in device 1200.These data
Example includes the instruction of any application or method for operating on device 1200, contact data, telephone book data,
Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Power supply module 1206 provides electric power for the various assemblies of device 1200.Power supply module 1206 may include power management
System, one or more power supplys and other with for device 1200 generate, manage, and distribute the associated component of electric power.
Multimedia component 1208 includes the screen of one output interface of offer between described device 1200 and user.In
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic
The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more
Media component 1208 includes a front camera and/or rear camera.When device 1200 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat
Gram wind (MIC), when device 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 1204 or via communication
Component 1216 is sent.In some embodiments, audio component 1210 further includes a loudspeaker, is used for output audio signal.
I/O interface 1212 provides interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module
It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and
Locking press button.
Sensor module 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented
Estimate.For example, sensor module 1214 can detecte the state that opens/closes of device 1200, the relative positioning of component, such as institute
The display and keypad that component is device 1200 are stated, sensor module 1214 can be with detection device 1200 or device 1,200 1
The position change of a component, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration and dress
Set 1200 temperature change.Sensor module 1214 may include proximity sensor, be configured in not any physics
It is detected the presence of nearby objects when contact.Sensor module 1214 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by setting 1200,2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1216 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 1220 of device 1200 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
Figure 13 is shown according to an exemplary embodiment a kind of for controlling the block diagram of the device of Root authority.For example,
Device 1900 may be provided as a server.Device 1900 includes processing component 1922, further comprises one or more
Processor and memory resource represented by a memory 1932, can be by the finger of the execution of processing component 1922 for storing
It enables, such as application program.The application program stored in memory 1932 may include each one or more correspondence
In the module of one group of instruction.In addition, processing component 1922 is configured as executing instruction, to execute the above method.
Device 1900 can also include that a power supply module 1926 be configured as the power management of executive device 1900, and one
Wired or wireless network interface 1950 is configured as device 1900 being connected to network and input and output (I/O) interface
1958.Device 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 1200
When device executes, so that the method that device 1200 is able to carry out above-mentioned control Root authority, which comprises
The first request for obtaining Root authority is sent to server;First request includes local current non-Root authority
The version information of version;
Receive the upgrade package of server feedback;The upgrade package is the upgrade package of corresponding Root authority version;
The upgrade package is installed, to obtain Root authority.
In one embodiment, the upgrade package is the identical Root authority version of version number relative to non-Root authority version
This delta package.
In one embodiment, the method may also include that
The second request for carrying out version updating is sent to server, second request is believed comprising the version of current system
Breath;
The non-Root for the version information that the newest and version information for receiving server feedback is higher than the current system is weighed
Limited in edition corresponding installation kit;
The installation kit is installed.
In one embodiment, the version of the current system is the version of non-Root authority or the version of Root authority
This.
In one embodiment, the method may also include that
Receive the operation for closing Root authority;
Close Root authority.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 1900
When device executes, so that the method that device 1900 is able to carry out above-mentioned control Root authority, which comprises
Receive the first request for obtaining Root authority;The version of first request comprising the current non-Root authority version of terminal
This information;
According to the version information of the current non-Root authority, the upgrade package of corresponding Root authority version is obtained;
Send the upgrade package obtained.
In one embodiment, the upgrade package is the identical Root authority version of version number relative to non-Root authority version
This delta package.
In one embodiment, the method may also include that
The second request for carrying out version updating is received, second request includes the version information of current system;
According to the version information of the current system in second request, obtains newest and version information and be higher than described work as
The corresponding installation kit of non-Root authority version of the version information of preceding system;
Send the installation kit.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (15)
1. a kind of method for controlling Root authority, which is characterized in that be used for server, comprising:
Receive the first request for obtaining Root authority;It is described first request comprising terminal currently non-Root authority version version letter
Breath;
According to the version information of the current non-Root authority, the upgrade package of corresponding Root authority version is obtained;
Send the upgrade package obtained;
The method also includes:
The second request for carrying out version updating is received, second request includes the version information of current system;
According to the version information of the current system in second request, obtains newest and version information and be higher than the current system
The corresponding installation kit of non-Root authority version of the version information of system;
Send the installation kit.
2. the method as described in claim 1, which is characterized in that the upgrade package is the identical Root authority version phase of version number
For the delta package of non-Root authority version.
3. a kind of method for controlling Root authority, which is characterized in that be used for terminal, comprising:
The first request for obtaining Root authority is sent to server;First request includes local current non-Root authority version
Version information;
Receive the upgrade package of server feedback;The upgrade package is the upgrade package of corresponding Root authority version;
The upgrade package is installed, to obtain Root authority;
The method also includes:
The second request for carrying out version updating is sent to server, second request includes the version information of current system;
The newest and version information of reception server feedback is higher than the non-Root authority version of the version information of the current system
This corresponding installation kit;
The installation kit is installed.
4. method as claimed in claim 3, which is characterized in that the upgrade package is the identical Root authority version phase of version number
For the delta package of non-Root authority version.
5. method as claimed in claim 3, which is characterized in that the version of the current system be non-Root authority version or
The version of person's Root authority.
6. the method as described in any one of claim 3-5, which is characterized in that the method also includes:
Receive the operation for closing Root authority;
Close Root authority.
7. a kind of device for controlling Root authority, which is characterized in that be used for server, comprising:
First receiving module, for receiving the first request for obtaining Root authority;First request is currently non-comprising terminal
The version information of Root authority version;
First obtains module, for the version information according to the current non-Root authority, obtains corresponding Root authority version
Upgrade package;
First sending module, for sending the upgrade package obtained;
Described device further include:
Second receiving module, for receiving the second request for carrying out version updating, second request includes the version of current system
This information;
Second obtains module, for the version information according to the current system in second request, obtains newest and version
Information is higher than the corresponding installation kit of non-Root authority version of the version information of the current system;
Second sending module, for sending the installation kit.
8. device as claimed in claim 7, which is characterized in that the upgrade package is the identical Root authority version phase of version number
For the delta package of non-Root authority version.
9. a kind of device for controlling Root authority, which is characterized in that be used for terminal, comprising:
First sending module, for sending the first request for obtaining Root authority to server;First request is comprising local
The version information of current non-Root authority version;
First receiving module, for receiving the upgrade package of server feedback;The upgrade package is corresponding Root authority version
Upgrade package;
First installation module, for installing the upgrade package, to obtain Root authority;
Described device further include:
Second sending module, for sending the second request for carrying out version updating to server, second request is comprising current
The version information of system;
Second receiving module, the version that the newest and version information for receiving server feedback is higher than the current system are believed
The corresponding installation kit of non-Root authority version of breath;
Second installation module, for installing the installation kit.
10. device as claimed in claim 9, which is characterized in that the upgrade package is the identical Root authority version of version number
Delta package relative to non-Root authority version.
11. device as claimed in claim 9, which is characterized in that the version of the current system is the version of non-Root authority
Or the version of Root authority.
12. the device as described in any one of claim 9-11, which is characterized in that described device further include:
Third receiving module, for receiving the operation for closing Root authority;
Closedown module, for closing Root authority.
13. a kind of device for controlling Root authority characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the first request for obtaining Root authority;It is described first request comprising terminal currently non-Root authority version version letter
Breath;
According to the version information of the current non-Root authority, the upgrade package of corresponding Root authority version is obtained;
Send the upgrade package obtained;
The processor is also configured to
The second request for carrying out version updating is received, second request includes the version information of current system;
According to the version information of the current system in second request, obtains newest and version information and be higher than the current system
The corresponding installation kit of non-Root authority version of the version information of system;
Send the installation kit.
14. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
The step of the claims 1 or 2 the method are realized when execution.
15. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
The step of any one of the claims 3-6 the method is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610483675.5A CN106162612B (en) | 2016-06-27 | 2016-06-27 | Control the method and device of Root authority |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610483675.5A CN106162612B (en) | 2016-06-27 | 2016-06-27 | Control the method and device of Root authority |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106162612A CN106162612A (en) | 2016-11-23 |
CN106162612B true CN106162612B (en) | 2019-11-08 |
Family
ID=57350045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610483675.5A Active CN106162612B (en) | 2016-06-27 | 2016-06-27 | Control the method and device of Root authority |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106162612B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107332728A (en) * | 2017-06-06 | 2017-11-07 | 努比亚技术有限公司 | A kind of detection method, terminal device and computer can storage mediums |
CN109657448B (en) * | 2018-12-21 | 2021-05-07 | 惠州Tcl移动通信有限公司 | Method and device for acquiring Root authority, electronic equipment and storage medium |
CN115562696B (en) * | 2022-02-24 | 2023-09-08 | 荣耀终端有限公司 | Software upgrading method, control equipment and intelligent screen |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9213564B1 (en) * | 2012-06-28 | 2015-12-15 | Amazon Technologies, Inc. | Network policy implementation with multiple interfaces |
CN104506639A (en) * | 2014-12-29 | 2015-04-08 | 北京奇虎科技有限公司 | Root right acquiring method and device |
CN104778057A (en) * | 2015-03-11 | 2015-07-15 | 小米科技有限责任公司 | Terminal system upgrading method and device, and server |
-
2016
- 2016-06-27 CN CN201610483675.5A patent/CN106162612B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106162612A (en) | 2016-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3151507B1 (en) | Methods and apparatuses for controlling device | |
CN105204894B (en) | The method and apparatus for installing the plug-in unit of smart machine | |
CN105094931B (en) | Method for upgrading software and device | |
US20170123781A1 (en) | Method, device and system for application updating | |
JP6144428B2 (en) | Wireless LAN automatic connection method, wireless LAN automatic connection device, program, and recording medium | |
CN105119790B (en) | Apparatus control method and device | |
CN105553963B (en) | The control method and device of positioning service | |
CN105512545B (en) | Access rights management method and device | |
CN104780155A (en) | Method and device for binding equipment | |
CN104320774A (en) | Updating method, device and facility | |
CN106210254B (en) | Mobile terminal | |
CN109375967A (en) | Application Program Interface display methods and device, mobile terminal and storage medium | |
KR20170038178A (en) | Method, apparatus, and mobile terminal for identificating fingerprint | |
EP3322227B1 (en) | Methods and apparatuses for controlling wireless connection, computer program and recording medium | |
JP2016537904A (en) | WI-FI network connection method, apparatus, program, and recording medium | |
CN106162612B (en) | Control the method and device of Root authority | |
CN103916468A (en) | System upgrading method, terminal, server and upgrading system | |
CN104767857A (en) | Telephone calling method and device based on cloud name cards | |
CN103905442A (en) | Wakeup method and device in data synchronization | |
CN109697632A (en) | Advertisement access method, device, equipment and storage medium | |
JP2018503150A (en) | Method, apparatus, program and recording medium for processing touch screen point reports | |
CN105323318B (en) | Amending method, device and the equipment of parameter | |
CN105893128B (en) | A kind of method and apparatus of application call management | |
CN104866349A (en) | Application updating method and device | |
CN107632835A (en) | Using installation 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 |