CN104598807B - Increment upgrade detection method, management method, terminal and increment updating and management platform - Google Patents
Increment upgrade detection method, management method, terminal and increment updating and management platform Download PDFInfo
- Publication number
- CN104598807B CN104598807B CN201410816828.4A CN201410816828A CN104598807B CN 104598807 B CN104598807 B CN 104598807B CN 201410816828 A CN201410816828 A CN 201410816828A CN 104598807 B CN104598807 B CN 104598807B
- Authority
- CN
- China
- Prior art keywords
- increment
- terminal
- upgrading
- code
- aku
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/57—Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F21/575—Secure boot
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/03—Indexing scheme relating to G06F21/50, monitoring users, programs or devices to maintain the integrity of platforms
- G06F2221/031—Protect user input by software means
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses increment upgrade detection method, management method, terminal and increment updating and management platform.Wherein, increment upgrade detection method includes:The increment AKU that increment updating and management platform is issued is obtained, wherein the increment AKU includes:Whether terminal user where for detecting obtained the target script command and realization of goal function corresponding with the target script command of root authority;When carrying out increment upgrading according to the increment AKU, by performing the target script command and the realization of goal function, to detect whether terminal user obtained root authority;If detecting terminal user obtained root authority, increment upgrading is terminated, otherwise proceeds increment upgrading.Technical scheme provided in an embodiment of the present invention, can prevent user from carrying out increment upgrading, but do not interfere with full dose upgrading again in the terminal after obtaining root authority.
Description
Technical field
The present embodiments relate to field of computer technology, more particularly to increment upgrade detection method, management method, terminal
And increment updating and management platform.
Background technology
ROOT is present in unix system and class unix system (the Linux systems of such as Debian, Redhat, Ubuntu version
System and android system) in, power user is generally designated as root, equivalent to the system user in Windows systems.
Root is unique power user in system, with authority all in system, such as starts or stops a process, deletes or increases
Plus user, enable or disable hardware etc..
At present, terminal user can obtain root authority using root instruments, and dispatching from the factory so as to uninstalling terminal carries
And user is felt not in the application program used, some domestic consumers can also be used can not to use specific management software,
Such as safe house keeper.
Using root instruments obtain root authority after, root instruments would generally to the system file of some in terminal plus "-
I " positions, to be locked to these files.Now, if upgraded by the way of increment is upgraded to system, it is easy to
Cause upgrading after application occur extension, mess code, the severely subnormal phenomenon do not started shooting even.And full dose upgrades mode due to being straight
Formatting system subregion was connected, the original packet of legacy version is replaced with the complete AKU of redaction, so even being root
Instrument is locked to some files, does not also interfere with upgrading.Therefore such a mechanism is needed, so that user can be prevented to carry out
Increment is upgraded, but does not interfere with full dose upgrading again.
In the prior art, one kind is achieved in that adds testing mechanism at system upgrade interface, for having used
Root instruments were obtained for the terminal of root authority, then forbade detecting the system version of terminal, or can detect new
System version, but do not allow to download increment AKU.But, this mode can not prevent the feelings of increment upgrading completely
Condition.Update for example, user detects on first mobile phone for not obtaining root authority and downloaded increment AKU, then
The increment AKU is copied to and obtained using root instruments on second mobile phone of root authority, and then at second
Upgraded on mobile phone using increment AKU.
Another implementation is then that whether detection terminal obtained root using root instruments in system recovers flow
Authority, if it is, not allowing to install AKU.Specifically, recovering flow due to system cannot be distinguished by increment AKU and complete
Measure AKU, therefore to prevent user from carrying out increment upgrading, which obtained root detecting terminal using root instruments
After authority, directly refusal installs AKU, and no matter the AKU is increment AKU, or full dose AKU.But, because being
System recovers flow and belongs to a kind of Restoration Mechanism in itself, and user, in the case where terminal goes wrong, is to need to install full dose upgrading
Terminal is returned to normal condition by bag.
The content of the invention
The embodiment of the present invention provides increment upgrade detection method, management method, terminal and increment updating and management platform, with reality
It is now a kind of that user can be prevented to carry out increment upgrading in the terminal after obtaining root authority, but full dose is not interfered with again
The mechanism of upgrading.
In a first aspect, the embodiments of the invention provide a kind of increment upgrade detection method, this method includes:
The increment AKU that increment updating and management platform is issued is obtained, wherein the increment AKU includes:For detecting
Whether place terminal user obtained the target script command and target corresponding with the target script command of root authority
Realize function;
When carrying out increment upgrading according to the increment AKU, by performing the target script command and the target
Function is realized, to detect whether terminal user obtained root authority;
If detecting terminal user obtained root authority, increment upgrading is terminated, otherwise proceeds increment upgrading.
Second aspect, the embodiment of the present invention additionally provides a kind of increment updating management method, and this method includes:
The increment upgrade request that receiving terminal is sent;
Increment AKU corresponding with the increment upgrade request is obtained, wherein the increment AKU includes being used to detect
Whether terminal user obtained the target script command of root authority and realization of goal corresponding with the target script command
Function;
The increment AKU of acquisition is issued to the terminal, ordered with indicating the terminal by performing the target script
Order and the realization of goal function, to detect whether terminal user obtained root authority and determine whether according to testing result
Terminate increment upgrading.
The third aspect, the embodiment of the present invention additionally provides a kind of terminal, and the terminal includes:
Increment AKU acquiring unit, for obtaining the increment AKU that increment updating and management platform is issued, wherein described
Increment AKU includes:For detect where terminal user whether obtained root authority target script command and with it is described
The corresponding realization of goal function of target script command;
Root detection units, for when carrying out increment upgrading according to the increment AKU, by performing the target
Script command and the realization of goal function, to detect whether terminal user obtained root authority;
Increment upgrading determining unit, if detecting terminal user for the root detection units obtained root power
Limit, then terminate increment upgrading, otherwise proceeds increment upgrading.
Fourth aspect, the embodiment of the present invention additionally provides a kind of increment updating and management platform, and the platform includes:
Increment upgrade request receiving unit, the increment upgrade request sent for receiving terminal;
Increment AKU acquiring unit, for obtaining increment AKU corresponding with the increment upgrade request, wherein institute
State increment AKU include be used for detect terminal user whether obtained root authority target script command and with the mesh
Mark the corresponding realization of goal function of script command;
Increment AKU issuance unit, for the increment AKU of acquisition to be issued into the terminal, to indicate the end
End is by performing the target script command and the realization of goal function, to detect whether terminal user obtained root authority
And determined whether to terminate increment upgrading according to testing result.
In technical scheme provided in an embodiment of the present invention, it will be used to detect whether terminal user obtained root power in advance
The target script command of limit and realization of goal function corresponding with target script command, added to increment AKU, in terminal
When carrying out increment upgrading according to increment AKU, perform the addition content in bag to detect whether terminal user obtained root power
Limit, in the case where terminal user obtains root authority, force termination increment was upgraded, so as to obtain root authority
Prevent user to carry out increment upgrading in terminal afterwards, but do not interfere with full dose upgrading again, can avoid the occurrence of after upgrading
Using occur extension, mess code, the severely subnormal phenomenon do not started shooting even greatly improves Consumer's Experience.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet for increment upgrade detection method that the embodiment of the present invention one is provided;
Fig. 2 is a kind of schematic flow sheet for increment updating management method that the embodiment of the present invention two is provided;
Fig. 3 is a kind of structural representation for terminal that the embodiment of the present invention three is provided;
Fig. 4 is a kind of structural representation for increment updating and management platform that the embodiment of the present invention four is provided;
Fig. 5 is a kind of schematic flow sheet for preferred method for updating increment that the embodiment of the present invention five is provided.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of schematic flow sheet for increment upgrade detection method that the embodiment of the present invention one is provided, and this method can be with
Performed by terminal, wherein the terminal is the electronic equipments such as smart mobile phone, tablet personal computer, personal digital assistant.Referring to Fig. 1,
The increment upgrade detection method that the present embodiment is provided specifically includes following operation:
The increment AKU that operation 110, acquisition increment updating and management platform are issued.
In the present embodiment, increment upgrade request can be initiated to increment updating and management platform in advance, may include in the request
The current version identifications of the mark of object to be upgraded and object to be upgraded;Then, increment updating and management platform is received according to this
The increment AKU that increment upgrade request is returned.Wherein, object to be upgraded can be the operating system of terminal, or be arranged on
The application software of setting in terminal.After root authority is obtained using root instruments, root instruments would generally be in terminal
Operating system file or the application software of setting are locked.It is of course also possible to the liter for being increment updating and management platform to set
Level mechanism, actively issues the increment AKU of object to be upgraded to terminal.
In the prior art, the increment AKU with object to be upgraded is generally included:Increment upgrade file after being compiled
Code is performed with the increment upgrading for performing increment upgrading.Specifically, get treat upgrading object increment upgrading touch
After sending instructions, start the operation that code is performed to the increment upgrading in increment AKU, to complete following operation:Increment is upgraded
File is parsed;The installation file of analysis result and the object to be upgraded being locally stored is carried out based on default difference algorithm
Combination, obtains new installation file;The new installation file is finally based on to complete to treat the upgrading of upgrading object.
And in the present embodiment, the increment AKU that acquired increment updating and management platform is issued is above-mentioned including
The increment upgrading for being used to perform increment upgrading in the prior art is performed outside code (namely the upgrading of original increment performs code), also
Further comprise:For detect where terminal user whether obtained root authority target script command and with target script
Order corresponding realization of goal function.
In embodiments of the present invention, original increment upgrading performs code and includes two parts, and Part I is performed for increasing
Measure the batch processing directive script (namely a plurality of directive script) of upgrading;Part II is and each bar script in batch processing directive script
Instruction is corresponding to realize function.The position that target script command is added can be to upgrade to perform the first of code positioned at original increment
Position in part before the last item batch processing directive script.Realization of goal function can be added into original increment upgrading and perform
Position in the Part II of code.
120 are operated, when carrying out increment upgrading according to the increment AKU, by performing the target in increment AKU
Script command and realization of goal function, to detect whether terminal user obtained root authority.
In the present embodiment, after the increment for treating upgrading object upgrading triggering command is got, start to getting
Increment upgrading performs the operation of code in increment AKU, to carry out increment upgrading.During this period, it can be upgraded by performing increment
Target script command and realization of goal function in bag, to detect whether terminal user obtained root authority.In the present embodiment
A kind of embodiment in, by performance objective script command and realization of goal function, be come terminal user where detecting
It is no to obtain root authority, including:
Whether by performance objective script command and realization of goal function, be stored with claim management text where detection in terminal
Part (namely su files), if it is, terminal user where judging obtained root authority, terminal user where otherwise judging is not
Obtained root authority.
Further, the claim that whether is stored with terminal where detection management file, including:
Any in system/bin catalogues, system/xbin catalogues and the system/sbin catalogues of terminal where detection
The claim that whether is stored with catalogue manages file.
If operation 130, detecting terminal user and obtaining root authority, increment upgrading is terminated, is otherwise proceeded
Increment is upgraded.
In the present embodiment, can be by calling abort () method force termination increment to upgrade.
On the basis of above-mentioned technical proposal, the increment upgrade detection method that the present embodiment is provided, if detecting end
End subscriber obtained root authority, forbid carry out increment upgrading after, in addition to:Ejection increment upgrading is unsuccessfully pointed out.
In the technical scheme that embodiment is provided, in advance by for detecting whether terminal user obtained the mesh of root authority
Script command and realization of goal function corresponding with target script command are marked, added to increment AKU, in terminal according to increasing
When measuring AKU progress increment upgrading, the addition content in bag is performed to detect whether terminal user obtained root authority,
Force termination increment was upgraded in the case that terminal user obtains root authority, so as to the end after root authority was obtained
Prevent user to carry out increment upgrading on end, but do not interfere with full dose upgrading again, the application after upgrading can be avoided the occurrence of and gone out
Now hang, mess code, the severely subnormal phenomenon do not started shooting even greatly improves Consumer's Experience.
Embodiment two
Fig. 2 is a kind of schematic flow sheet for increment updating management method that the embodiment of the present invention two is provided, and this method can be with
Performed by increment updating and management platform, the increment upgrade detection method performed by terminal that can be provided with above-described embodiment one is matched somebody with somebody
Close and perform.Wherein, the increment updating and management platform is the server for providing increment updating and management function for terminal.Referring to
Fig. 2, the increment updating management method that the present embodiment is provided specifically includes following steps:
The increment upgrade request that operation 210, receiving terminal are sent.
Operation 220, acquisition increment AKU corresponding with increment upgrade request, wherein increment AKU include being used to detect
Whether terminal user obtained the target script command and realization of goal function corresponding with target script command of root authority.
Operation 230, the increment AKU of acquisition is issued to terminal, with instruction terminal by performance objective script command and
Realization of goal function, come detect terminal user whether obtained root authority and according to testing result determine whether terminate increment
Upgrading.
On the basis of above-mentioned technical proposal, before the increment upgrade request that receiving terminal is sent, in addition to:
Setting position in original increment upgrading corresponding with increment upgrade request performs code, is added for detecting
The objective function whether terminal user obtained root authority realizes code;Wherein, the setting position is so that objective function
Realizing that the execution sequence of code upgrades to perform prior to original increment is used for the function realization for performing increment upgrade file in code
The position of the execution sequence of code, objective function realizes that code includes whether terminal user where being used to detect obtained root power
The target script command of limit and realization of goal function corresponding with target script command;
Code is performed to the original increment upgrading after addition operation to be compiled, to obtain being used for performing increment upgrading
Binary file;
According to the binary file and the increment upgrade file, increment upgrading corresponding with increment upgrade request is constituted
Bag.
Wherein, the position that target script command is added can be in original increment upgrades the Part I for performing code
Position before the last item batch processing directive script.Realization of goal function can be added into original increment upgrading and perform code
Position in Part II.
The Part I of code is performed for example, upgrading in original increment (referring to the associated description of above-described embodiment one)
One new directive script IsExistsFn of addition in the middle of install.c, is added corresponding with directive script in the second portion
Realize function, the function can be used for judging path parameter system/bin/su, system/xbin/su catalogue in terminal and
System/sbin/su whether there is, namely whether detection terminal user obtained root authority.Original after addition operation
The upgrading of beginning increment performs code and is eventually compiled as, for performing the binary file update_binary that increment is upgraded, making
Corresponding binary file is parsed for script, script command after all compilings and corresponding realizes function all in the binary system
In file.
The present embodiment adds a new detection based on primary increment upgrade mechanism in the increment AKU issued
Directive script, so as to judge whether terminal user obtained root when terminal carries out increment upgrading according to increment AKU
Authority, if it is, directly terminating upgrading.It is thus possible to avoid the occurrence of upgrading after application occur extension, mess code, do not open even
The severely subnormal phenomenon of machine, greatly improves Consumer's Experience.
Embodiment three
Fig. 3 is a kind of structural representation for terminal that the embodiment of the present invention three is provided.Referring to Fig. 3, the specific knot of the terminal
Structure is as follows:
Increment AKU acquiring unit 310, for obtaining the increment AKU that increment updating and management platform is issued, wherein institute
Stating increment AKU includes:For detect where terminal user whether obtained root authority target script command and with institute
State the corresponding realization of goal function of target script command;
Root detection units 320, for when carrying out increment upgrading according to the increment AKU, by performing the mesh
Script command and the realization of goal function are marked, to detect whether terminal user obtained root authority;
Increment upgrading determining unit 330, if detecting terminal user for the root detection units obtained root
Authority, then terminate increment upgrading, otherwise proceeds increment upgrading.
Further, the root detection units 320, specifically for:
Whether store and have the right in terminal by performing the target script command and the realization of goal function, where detection
Item management file, if it is, terminal user where judging obtained root authority, otherwise judges that place terminal user does not obtain
Cross root authority.
Further, the root detection units 320, including:
File detection sub-unit 3201, the system/bin catalogues of terminal where for detecting, system/xbin catalogues and
The claim that whether is stored with any catalogue in system/sbin catalogues manages file.
The said goods can perform the increment upgrade detection method performed by terminal that any embodiment of the present invention is provided, tool
The standby corresponding functional module of execution method and beneficial effect.
Example IV
Fig. 4 is a kind of structural representation for increment updating and management platform that the embodiment of the present invention four is provided., should referring to Fig. 4
The concrete structure of increment updating and management platform is as follows:
Increment upgrade request receiving unit 410, the increment upgrade request sent for receiving terminal;
Increment AKU acquiring unit 420, for obtaining increment AKU corresponding with the increment upgrade request, wherein
The increment AKU include be used for detect terminal user whether obtained root authority target script command and with it is described
The corresponding realization of goal function of target script command;
Increment AKU issuance unit 430, it is described to indicate for the increment AKU of acquisition to be issued into the terminal
Terminal is by performing the target script command and the realization of goal function, to detect whether terminal user obtained root power
Limit and determined whether to terminate increment upgrading according to testing result.
Further, the increment updating and management platform that the present embodiment is provided also includes:Increment AKU generation unit 400,
For before the increment upgrade request that receiving terminal is sent:
Setting position in original increment upgrading corresponding with the increment upgrade request performs code, adding is used for
The objective function whether detection terminal user obtained root authority realizes code;Wherein, the setting position is described to cause
Objective function realizes that the execution sequence of code is performed prior to the original increment upgrading to be used to perform increment upgrading in code
Function realizes the position of the execution sequence of code, and the objective function realizes whether code includes terminal user where being used to detect
Obtained the target script command and realization of goal function corresponding with the target script command of root authority;
Code is performed to the original increment upgrading after addition operation to be compiled, to obtain being used for performing increment upgrading
Binary file;
According to the binary file and the increment upgrade file, increment corresponding with the increment upgrade request is constituted
AKU.
The said goods can perform the increment liter performed by increment updating and management platform that any embodiment of the present invention is provided
Level management method, possesses the corresponding functional module of execution method and beneficial effect.
Embodiment five
Fig. 5 is a kind of schematic flow sheet for preferred method for updating increment that the embodiment of the present invention five is provided.The present embodiment
Can there is provided a kind of preferred embodiment based on above-described embodiment.The present embodiment is applicable to the operation on mobile terminal
System carries out the application scenarios of increment upgrading, namely the operating system that increment upgrading object is terminal.Referring to Fig. 5, the present embodiment
The method for updating increment of offer, specifically includes following operation:
Operation 510, terminal send the increment upgrade request to operating system in terminal to increment updating and management platform.Its
In, increment upgrade request may include the current version identifications of operating system in terminal.
Operation 520, increment updating and management platform obtain increment AKU corresponding with increment upgrade request.
Specifically, increment updating and management platform is first parsed to increment upgrade request, the terminal included in it is extracted
The current version identifications of upper operating system, then obtain the corresponding increasing of the target version mark higher than the current version identifications
AKU is measured, the increment AKU is regard as increment AKU corresponding with increment upgrade request.Wherein, the increment AKU
Including for detecting whether terminal user obtained the target script command of root authority and corresponding with target script command
Realization of goal function.
In the present embodiment, the generating process of the corresponding increment AKU of target version mark, is specifically included:
Perform and added in the middle of the Part I of code for detecting in original increment upgrading corresponding with target version mark
Whether terminal user obtained the target script command of root authority;Held in original increment upgrading corresponding with target version mark
Realization of goal function corresponding with the target script command is added in the Part II of line code;
Code is performed to the original increment upgrading after addition operation to be compiled, to obtain being used for performing increment upgrading
Binary file;
According to the binary file and the increment upgrade file, increment upgrading corresponding with target version mark is constituted
Bag.
The increment AKU of acquisition is issued to terminal by operation 530, increment updating and management platform.
Operation 540, terminal according to increment AKU when carrying out increment upgrading, by performing under increment updating and management platform
Target script command and realization of goal function in the increment AKU of hair, come detect terminal system/bin catalogues,
The claim that whether is stored with any catalogue in system/xbin catalogues and system/sbin catalogues manages file.
If operation 550, terminal is detected is judge that terminal user obtained root authority, is terminated increment and is upgraded, no
Then judge that terminal user did not obtained root authority, proceed increment upgrading.
The technical scheme that the present embodiment is provided, can perfectly block the terminal progress operating system for obtaining root authority
All channels of increment upgrading, it is ensured that terminal is not in because carrying out operating system increment upgrading after obtaining root authority
And the various abnormal conditions occurred, it is ensured that terminal user can normal using terminal.Also, the method that the present embodiment is provided only can
The related file of increment AKU is had influence on, terminal firmware is not influenceed.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art it is various it is obvious change,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (8)
1. a kind of increment upgrade detection method, applied to terminal, it is characterised in that including:
The increment AKU that increment updating and management platform is issued is obtained, wherein the increment AKU includes:Where detecting
Whether terminal user obtained the target script command of root authority and realization of goal corresponding with the target script command
Function;
When carrying out increment upgrading according to the increment AKU, by performing the target script command and the realization of goal
Function, to detect whether terminal user obtained root authority;
If detecting terminal user obtained root authority, increment upgrading is terminated, otherwise proceeds increment upgrading;
Wherein, the increment AKU is that the increment updating and management platform is generated as follows:
Setting position in original increment upgrading corresponding with the increment upgrade request that terminal is sent performs code, addition is used
The objective function for whether obtaining root authority in detection terminal user realizes code;Wherein, the setting position is so that institute
State objective function and realize that the execution sequence of code is performed in code for performing increment upgrading prior to the original increment upgrading
Function realize code execution sequence position, the objective function realize code include be used for detect where terminal user be
The no target script command for obtaining root authority and realization of goal function corresponding with the target script command;
Code is performed to the original increment upgrading after addition operation to be compiled, to obtain for performing increment is upgraded two
Binary file;
According to the binary file and increment upgrade file, increment AKU corresponding with the increment upgrade request is constituted.
2. increment upgrade detection method according to claim 1, it is characterised in that by performing the target script command
With the realization of goal function, root authority whether was obtained come terminal user where detecting, including:
Whether by performing the target script command and the realization of goal function, be stored with claim pipe where detection in terminal
File is managed, if it is, terminal user where judging obtained root authority, terminal user where otherwise judging did not obtained
Root authority.
3. increment upgrade detection method according to claim 2, it is characterised in that whether be stored with terminal where detection
Claim manages file, including:
Any catalogue in system/bin catalogues, system/xbin catalogues and the system/sbin catalogues of terminal where detection
Under whether be stored with claim management file.
4. a kind of increment updating management method, applied to increment updating and management platform, it is characterised in that including:
The increment upgrade request that receiving terminal is sent;
Increment AKU corresponding with the increment upgrade request is obtained, wherein the increment AKU includes being used to detect terminal
Whether user obtained the target script command and realization of goal function corresponding with the target script command of root authority;
The increment AKU of acquisition is issued to the terminal, with indicate the terminal by perform the target script command and
The realization of goal function, come detect terminal user whether obtained root authority and according to testing result determine whether terminate
Increment is upgraded;
Wherein, before the increment upgrade request that receiving terminal is sent, in addition to:
Setting position in original increment upgrading corresponding with the increment upgrade request performs code, is added for detecting
The objective function whether terminal user obtained root authority realizes code;Wherein, the setting position is so that the target
Function, which realizes that the execution sequence of code is performed prior to the original increment upgrading, is used for the function of performing increment upgrading in code
The position of the execution sequence of code is realized, the objective function realizes that code includes whether terminal user where being used to detect obtains
Cross the target script command and realization of goal function corresponding with the target script command of root authority;
Code is performed to the original increment upgrading after addition operation to be compiled, to obtain for performing increment is upgraded two
Binary file;
According to the binary file and increment upgrade file, increment AKU corresponding with the increment upgrade request is constituted.
5. a kind of terminal, it is characterised in that including:
Increment AKU acquiring unit, for obtaining the increment AKU that increment updating and management platform is issued, wherein the increment
AKU includes:For detect where terminal user whether obtained root authority target script command and with the target
The corresponding realization of goal function of script command;
Root detection units, for when carrying out increment upgrading according to the increment AKU, by performing the target script
Order and the realization of goal function, to detect whether terminal user obtained root authority;
Increment upgrading determining unit, if detecting terminal user for the root detection units obtained root authority,
Increment upgrading is terminated, otherwise proceeds increment upgrading;
Wherein, the increment AKU is that the increment updating and management platform is generated as follows:
Setting position in original increment upgrading corresponding with the increment upgrade request performs code, is added for detecting
The objective function whether terminal user obtained root authority realizes code;Wherein, the setting position is so that the target
Function, which realizes that the execution sequence of code is performed prior to the original increment upgrading, is used for the function of performing increment upgrading in code
The position of the execution sequence of code is realized, the objective function realizes that code includes whether terminal user where being used to detect obtains
Cross the target script command and realization of goal function corresponding with the target script command of root authority;
Code is performed to the original increment upgrading after addition operation to be compiled, to obtain for performing increment is upgraded two
Binary file;
According to the binary file and increment upgrade file, increment AKU corresponding with the increment upgrade request is constituted.
6. terminal according to claim 5, it is characterised in that the root detection units, specifically for:
Whether by performing the target script command and the realization of goal function, be stored with claim pipe where detection in terminal
File is managed, if it is, terminal user where judging obtained root authority, terminal user where otherwise judging did not obtained
Root authority.
7. terminal according to claim 6, it is characterised in that the root detection units, including:
File detection sub-unit, system/bin catalogues, system/xbin catalogues and the system/ of terminal where for detecting
The claim that whether is stored with any catalogue in sbin catalogues manages file.
8. a kind of increment updating and management platform, it is characterised in that including:
Increment upgrade request receiving unit, the increment upgrade request sent for receiving terminal;
Increment AKU acquiring unit, for obtaining increment AKU corresponding with the increment upgrade request, wherein described increase
Amount AKU include be used for detect terminal user whether obtained root authority target script command and with the target pin
The corresponding realization of goal function of this order;
Increment AKU issuance unit, for the increment AKU of acquisition to be issued into the terminal, to indicate that the terminal is led to
Cross and perform the target script command and the realization of goal function, come detect terminal user whether obtained root authority and
Determined whether to terminate increment upgrading according to testing result;
Wherein, in addition to:Increment AKU generation unit, for before the increment upgrade request that receiving terminal is sent:
Setting position in original increment upgrading corresponding with the increment upgrade request performs code, is added for detecting
The objective function whether terminal user obtained root authority realizes code;Wherein, the setting position is so that the target
Function, which realizes that the execution sequence of code is performed prior to the original increment upgrading, is used for the function of performing increment upgrading in code
The position of the execution sequence of code is realized, the objective function realizes that code includes whether terminal user where being used to detect obtains
Cross the target script command and realization of goal function corresponding with the target script command of root authority;
Code is performed to the original increment upgrading after addition operation to be compiled, to obtain for performing increment is upgraded two
Binary file;
According to the binary file and increment upgrade file, increment AKU corresponding with the increment upgrade request is constituted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410816828.4A CN104598807B (en) | 2014-12-22 | 2014-12-22 | Increment upgrade detection method, management method, terminal and increment updating and management platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410816828.4A CN104598807B (en) | 2014-12-22 | 2014-12-22 | Increment upgrade detection method, management method, terminal and increment updating and management platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104598807A CN104598807A (en) | 2015-05-06 |
CN104598807B true CN104598807B (en) | 2017-10-31 |
Family
ID=53124585
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410816828.4A Active CN104598807B (en) | 2014-12-22 | 2014-12-22 | Increment upgrade detection method, management method, terminal and increment updating and management platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104598807B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105446768B (en) * | 2015-11-05 | 2019-07-05 | 小米科技有限责任公司 | Method for upgrading system and device |
CN115794185B (en) * | 2021-09-10 | 2023-11-07 | 中兴通讯股份有限公司 | Data increment upgrading method, power supply equipment system, network manager and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081536A (en) * | 2010-12-30 | 2011-06-01 | 华为终端有限公司 | Method for updating increment, and server |
CN103747028A (en) * | 2013-11-27 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | Method for granting user temporary root authority |
CN104217137A (en) * | 2014-08-29 | 2014-12-17 | 广东欧珀移动通信有限公司 | Method and device for identifying whether intelligent terminal system is changed |
-
2014
- 2014-12-22 CN CN201410816828.4A patent/CN104598807B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081536A (en) * | 2010-12-30 | 2011-06-01 | 华为终端有限公司 | Method for updating increment, and server |
CN103747028A (en) * | 2013-11-27 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | Method for granting user temporary root authority |
CN104217137A (en) * | 2014-08-29 | 2014-12-17 | 广东欧珀移动通信有限公司 | Method and device for identifying whether intelligent terminal system is changed |
Non-Patent Citations (3)
Title |
---|
Android系统root权限获取与检测;邢晓燕等;《软件》;20140216;全文 * |
Root的噩梦啊!安卓5.0 OTA机制大变;上方文Q;《驱动之家》;20141114;网页正文 * |
安卓5.0改变OTA升级机制ROOT设备需谨慎;leo_ng;《WeAnd.com》;20141116;网页正文 * |
Also Published As
Publication number | Publication date |
---|---|
CN104598807A (en) | 2015-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108196878B (en) | Method and device for generating application program installation package, electronic equipment and storage medium | |
EP3499364B1 (en) | Method and device for loading kernel module | |
CN103329095B (en) | Authenticate a hypervisor with encoded information | |
US9177136B2 (en) | Information device, program, method, and computer readable recording medium for preventing execution of malicious program code | |
CN104573435A (en) | Method for terminal authority management and terminal | |
CN104636172B (en) | A kind of application upgrade method and apparatus | |
CN110442502B (en) | Point burying method, device, equipment and storage medium | |
CN103136002A (en) | Automatic upgrade control method based on UBoot instruction and system | |
CN106648762B (en) | Method and device for building development environment | |
CN104361285A (en) | Method and device for detecting security of application programs of mobile devices | |
CN105634745A (en) | Security authentication method and device for application installation | |
CN104598807B (en) | Increment upgrade detection method, management method, terminal and increment updating and management platform | |
CN102065088A (en) | Methods for automatically loading internet bank security assembly and authenticating internet bank security | |
CN103500114A (en) | Method and device for installing application program | |
CN108710304B (en) | Client operation management method and client | |
CN102253846A (en) | Method for upgrading embedded system software | |
CN111831300A (en) | APP updating method and device, electronic equipment and computer readable storage medium | |
CN104156247A (en) | Application upgrading method and device | |
CN110990833B (en) | SDK safety detection method and related equipment | |
CN109032641B (en) | Application version updating method and device | |
KR102086749B1 (en) | Measuring Similarity System and Method of Android Application Using Text Mining | |
CN107920074B (en) | SDK automatic upgrading method, terminal equipment and master control server | |
CN106445601A (en) | Device and method for plugin upgrading | |
CN109918287A (en) | APP upgrading test method, apparatus, computer equipment and storage medium | |
JP2011170768A (en) | System and device for information, introduction processing device and program |
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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |