CN104598807A - Increment upgrade detection method, management method, terminal and increment upgrade management platform - Google Patents

Increment upgrade detection method, management method, terminal and increment upgrade management platform Download PDF

Info

Publication number
CN104598807A
CN104598807A CN201410816828.4A CN201410816828A CN104598807A CN 104598807 A CN104598807 A CN 104598807A CN 201410816828 A CN201410816828 A CN 201410816828A CN 104598807 A CN104598807 A CN 104598807A
Authority
CN
China
Prior art keywords
increment
terminal
upgrading
aku
script command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410816828.4A
Other languages
Chinese (zh)
Other versions
CN104598807B (en
Inventor
惠方方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410816828.4A priority Critical patent/CN104598807B/en
Publication of CN104598807A publication Critical patent/CN104598807A/en
Application granted granted Critical
Publication of CN104598807B publication Critical patent/CN104598807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/575Secure boot
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/03Indexing scheme relating to G06F21/50, monitoring users, programs or devices to maintain the integrity of platforms
    • G06F2221/031Protect 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 an increment upgrade detection method, a management method, a terminal and an increment upgrade management platform. The increment upgrade detection method includes the steps that an increment upgrade package issued by the increment upgrade management platform is obtained, wherein the increment upgrade package comprises a target script command used for detecting whether a terminal user obtains the root right and a target realization function corresponding to the target script command; when increment upgrade is carried out according to the increment upgrade package, the target script command and the target realization function are executed to detect whether the terminal user obtains the root right; if it is detected that the terminal user obtains the root right, increment upgrade is stopped, and otherwise, increment upgrade continues to be conducted. According to the increment upgrade detection method, the management method, the terminal and the increment upgrade management platform, the user can be restrained from conducting increment upgrade on the terminal after obtaining the root right, and full-capacity upgrade cannot be influenced.

Description

Increment upgrade detection method, management method, terminal and increment updating and management platform
Technical field
The embodiment of the present invention relates to field of computer technology, particularly relates 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 (linux system and android system as versions such as Debian, Redhat, Ubuntu), and the general called after root of power user, is equivalent to the system user in Windows system.Root is power user unique in system, has authorities all in system, as started or stoped a process, deleting or adding users, enables or forbid hardware etc.
At present, terminal user can adopt root instrument to obtain root authority, thus can uninstall terminal and dispatch from the factory and carry and application program that user's sensation is not using, some domestic consumers also can be used cannot to use specific management software, as safe house keeper etc.
After adopting root instrument to obtain root authority, root instrument can add "-i " position to some system files in terminal, to lock these files usually.Now, if adopt the mode of increment upgrading to upgrade to system, be then easy to cause the application after upgrading to occur that extension, mess code, the severely subnormal phenomenon of even not starting shooting.And full dose upgrading mode is owing to being directly by formatting system subregion, replaces the original packet of legacy version with the complete AKU of redaction, even if therefore root instrument locks some files, also can not affect upgrading.Therefore need a kind of like this mechanism, so that user can be stoped to carry out increment upgrading, but full dose upgrading can not be had influence on again.
In the prior art, a kind of implementation adds testing mechanism at system upgrade interface, for adopting root instrument to obtain for the terminal of root authority, then forbids system version terminal being detected, or new system version can be detected, but do not allow to download increment AKU.But this mode can not stop the situation of increment upgrading completely.Such as, user did not obtain detection on first mobile phone of root authority at one and upgrades and downloaded increment AKU, this increment AKU being copied to more adopts root instrument to obtain on second mobile phone of root authority, and then utilizes increment AKU to upgrade on second mobile phone.
Another kind of implementation is then that whether sense terminals adopts root instrument to obtain root authority in System recover flow process, if so, then does not allow to install AKU.Concrete, because System recover flow process cannot distinguish increment AKU and full dose AKU, therefore for stoping user to carry out increment upgrading, which is after detecting that terminal adopts root instrument to obtain root authority, directly refusal installs AKU, no matter this AKU is increment AKU, or full dose AKU.But because System recover flow process itself belongs to a kind of Restoration Mechanism, user, when terminal goes wrong, needs to install full dose AKU and terminal is returned to normal condition.
Summary of the invention
The embodiment of the present invention provides increment upgrade detection method, management method, terminal and increment updating and management platform, to realize a kind ofly can the terminal after obtaining root authority stoping user to carry out increment upgrading, but the mechanism of full dose upgrading can not be had influence on again.
First aspect, embodiments provide a kind of increment upgrade detection method, the method comprises:
Obtain the increment AKU that increment updating and management platform issues, wherein said increment AKU comprises: whether obtained the target script command of root authority and the realization of goal function corresponding with described target script command for detecting place terminal user;
When carrying out increment upgrading according to described increment AKU, by performing described target script command and described realization of goal function, carrying out sense terminals user and whether obtaining root authority;
If detect that terminal user obtained root authority, then stop increment upgrading, otherwise proceed increment upgrading.
Second aspect, the embodiment of the present invention additionally provides a kind of increment updating management method, and the method comprises:
The increment upgrade request that receiving terminal sends;
Obtain the increment AKU corresponding with described increment upgrade request, wherein said increment AKU comprises whether obtaining the target script command of root authority and the realization of goal function corresponding with described target script command for sense terminals user;
The increment AKU of acquisition is issued to described terminal, indicating described terminal by performing described target script command and described realization of goal function, carrying out sense terminals user and whether obtained root authority and determined whether to stop increment upgrading according to testing result.
The third aspect, the embodiment of the present invention additionally provides a kind of terminal, and this terminal comprises:
Increment AKU acquiring unit, for obtaining the increment AKU that increment updating and management platform issues, wherein said increment AKU comprises: whether obtained the target script command of root authority and the realization of goal function corresponding with described target script command for detecting place terminal user;
Root detecting unit, for when carrying out increment upgrading according to described increment AKU, by performing described target script command and described realization of goal function, carrying out sense terminals user and whether obtaining root authority;
Increment upgrading determining unit, if detect that terminal user obtained root authority for described root detecting unit, then stops 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 this platform comprises:
Increment upgrade request receiving element, for the increment upgrade request that receiving terminal sends;
Increment AKU acquiring unit, for obtaining the increment AKU corresponding with described increment upgrade request, wherein said increment AKU comprises whether obtaining the target script command of root authority and the realization of goal function corresponding with described target script command for sense terminals user;
Increment AKU issues unit, for the increment AKU of acquisition is issued to described terminal, indicating described terminal by performing described target script command and described realization of goal function, carrying out sense terminals user and whether obtained root authority and determined whether to stop increment upgrading according to testing result.
In the technical scheme that the embodiment of the present invention provides, the target script command of root authority and the realization of goal function corresponding with target script command whether was obtained in advance by being used for sense terminals user, be added into increment AKU, when terminal carries out increment upgrading according to increment AKU, whether the interpolation content performed in bag obtained root authority with sense terminals user, the force termination increment upgrading when terminal user obtained root authority, thus can the terminal after obtaining root authority stop user to carry out increment upgrading, but full dose upgrading can not be had influence on again, the application after there is upgrading can be avoided to occur that extension, mess code, the severely subnormal phenomenon of even not starting shooting, greatly improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of increment upgrade detection method that the embodiment of the present invention one provides;
Fig. 2 is the schematic flow sheet of a kind of increment updating management method that the embodiment of the present invention two provides;
Fig. 3 is the structural representation of a kind of terminal that the embodiment of the present invention three provides;
Fig. 4 is the structural representation of a kind of increment updating and management platform that the embodiment of the present invention four provides;
Fig. 5 is the schematic flow sheet of a kind of preferred method for updating increment that the embodiment of the present invention five provides.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not entire infrastructure.
Embodiment one
Fig. 1 is the schematic flow sheet of a kind of increment upgrade detection method that the embodiment of the present invention one provides, and the method can be performed by terminal, and wherein said terminal is the electronic equipments such as smart mobile phone, panel computer, personal digital assistant.See Fig. 1, the increment upgrade detection method that the present embodiment provides specifically comprises following operation:
The increment AKU that operation 110, acquisition increment updating and management platform issue.
In the present embodiment, increment upgrade request can be initiated to increment updating and management platform in advance, the mark of object to be upgraded and the current version identifications of object to be upgraded in this request, can be comprised; Then, the increment AKU that increment updating and management platform returns according to this increment upgrade request is received.Wherein, object to be upgraded can be the operating system of terminal, or is arranged on the application software of the setting in terminal.After employing root instrument obtains root authority, root instrument can lock to the application software of the operating system file in terminal or setting usually.Certainly, also can be increment updating and management platform with the upgrade mechanism of setting, initiatively issue the increment AKU of object to be upgraded to terminal.
In the prior art, generally include with the increment AKU of object to be upgraded: the increment upgrade file after being compiled and the increment of upgrading for performing increment are upgraded run time version.Concrete, after getting the increment upgrading triggering command treating upgrading object, start the operation to the increment upgrading run time version in increment AKU, to complete following operation: resolve increment upgrade file; Combine based on the installation file of the difference algorithm preset by analysis result and the local object to be upgraded stored, obtain new installation file; Finally complete based on this new installation file the upgrading treating upgrading object.
And in the present embodiment, the increment AKU that the increment updating and management platform obtained issues, including in above-mentioned prior art outside run time version of upgrading for the increment performing increment upgrading (being also original increment upgrading run time version), also comprise further: whether obtained the target script command of root authority and the realization of goal function corresponding with target script command for detecting place terminal user.
In embodiments of the present invention, original increment upgrading run time version comprises two parts, and Part I is the batch processing directive script (being also many directive scripts) for performing increment upgrading; Part II is the measure for fulfill corresponding with bar directive script each in batch processing directive script.The position that target script command is added can be the position before the Part I the last item batch processing directive script being arranged in original increment upgrading run time version.Realization of goal function can be added into the position in the Part II of original increment upgrading run time version.
Operate 120, when carrying out increment upgrading according to described increment AKU, by the target script command in execution increment AKU and realization of goal function, carry out sense terminals user and whether obtained root authority.
In the present embodiment, after getting the increment upgrading triggering command treating upgrading object, start the operation to increment upgrading run time version in the increment AKU got, to carry out increment upgrading.During this period, by the target script command in execution increment AKU and realization of goal function, sense terminals user can be carried out and whether obtained root authority.In a kind of embodiment of the present embodiment, by performance objective script command and realization of goal function, detect place terminal user and whether obtained root authority, comprising:
By performance objective script command and realization of goal function, detect in the terminal of place and whether store claim management document (being also su file), if so, then judge that place terminal user obtained root authority, otherwise judge that place terminal user did not obtain root authority.
Further, detect in the terminal of place whether store claim management document, comprising:
Claim management document whether is stored under detecting the arbitrary catalogue in the system/bin catalogue of place terminal, system/xbin catalogue and system/sbin catalogue.
If operation 130 detects that terminal user obtained root authority, then stop increment upgrading, otherwise proceed increment upgrading.
In the present embodiment, by calling the method force termination increment upgrading of abort ().
On the basis of technique scheme, the increment upgrade detection method that the present embodiment provides, if detecting that terminal user obtained root authority, after forbidding carrying out increment upgrading, is also comprising: ejection increment is upgraded and unsuccessfully pointed out.
In the technical scheme that embodiment provides, the target script command of root authority and the realization of goal function corresponding with target script command whether was obtained in advance by being used for sense terminals user, be added into increment AKU, when terminal carries out increment upgrading according to increment AKU, whether the interpolation content performed in bag obtained root authority with sense terminals user, the force termination increment upgrading when terminal user obtained root authority, thus can the terminal after obtaining root authority stop user to carry out increment upgrading, but full dose upgrading can not be had influence on again, the application after there is upgrading can be avoided to occur that extension, mess code, the severely subnormal phenomenon of even not starting shooting, greatly improve Consumer's Experience.
Embodiment two
Fig. 2 is the schematic flow sheet of a kind of increment updating management method that the embodiment of the present invention two provides, and the method can be performed by increment updating and management platform, can coordinate perform with the increment upgrade detection method performed by terminal that above-described embodiment one provides.Wherein, described increment updating and management platform is the server for providing increment updating and management function for terminal.See Fig. 2, the increment updating management method that the present embodiment provides specifically comprises the steps:
The increment upgrade request that operation 210, receiving terminal send.
Operate 220, obtain the increment AKU corresponding with increment upgrade request, wherein increment AKU comprises whether obtaining the target script command of root authority and the realization of goal function corresponding with target script command for sense terminals user.
Operate 230, the increment AKU of acquisition is issued to terminal, with indicating terminal by performance objective script command and realization of goal function, carry out sense terminals user and whether obtained root authority and determined whether to stop increment upgrading according to testing result.
On the basis of technique scheme, before the increment upgrade request that receiving terminal sends, also comprise:
At the setting position that the original increment corresponding with increment upgrade request is upgraded in run time version, add and be used for the objective function code whether sense terminals user obtained root authority; Wherein, described desired location is that the execution sequence of objective function code is had precedence over for performing the position of the execution sequence of the functional realiey code of increment upgrade file in original increment upgrading run time version, and objective function code comprises whether obtaining the target script command of root authority and the realization of goal function corresponding with target script command for detecting place terminal user;
Original increment upgrading run time version after interpolation operation is compiled, to obtain the binary file for performing increment upgrading;
According to described binary file and described increment upgrade file, form the increment AKU corresponding with increment upgrade request.
Wherein, the position that target script command is added can be the position before the Part I the last item batch processing directive script being arranged in original increment upgrading run time version.Realization of goal function can be added into the position in the Part II of original increment upgrading run time version.
Such as, the directive script IsExistsFn that interpolation one is new in the middle of Part I (associated description see above-described embodiment one) install.c of original increment upgrading run time version, add the measure for fulfill corresponding with directive script in the second portion, this function can be used for judging whether path parameter system/bin/su, system/xbin/su catalogue in terminal and system/sbin/su exist, and also namely whether sense terminals user obtained root authority.Original increment upgrading run time version after interpolation operation finally can be compiled as the binary file update_binary for performing increment upgrading, resolve corresponding binary file as script, the script command after all compilings and the measure for fulfill of correspondence are all in this binary file.
The present embodiment is based on primary increment upgrade mechanism, a new detection script instruction is added in the increment AKU issued, thus can judge whether terminal user obtained root authority when terminal carries out increment upgrading according to increment AKU, if so, directly stop upgrading.Thus the application after there is upgrading can be avoided to occur that extension, mess code, and the severely subnormal phenomenon of even not starting shooting, improves Consumer's Experience greatly.
Embodiment three
Fig. 3 is the structural representation of a kind of terminal that the embodiment of the present invention three provides.See Fig. 3, the concrete structure of this terminal is as follows:
Increment AKU acquiring unit 310, for obtaining the increment AKU that increment updating and management platform issues, wherein said increment AKU comprises: whether obtained the target script command of root authority and the realization of goal function corresponding with described target script command for detecting place terminal user;
Root detecting unit 320, for when carrying out increment upgrading according to described increment AKU, by performing described target script command and described realization of goal function, carrying out sense terminals user and whether obtaining root authority;
Increment upgrading determining unit 330, if detect that terminal user obtained root authority for described root detecting unit, then stops increment upgrading, otherwise proceeds increment upgrading.
Further, described root detecting unit 320, specifically for:
By performing described target script command and described realization of goal function, detecting in the terminal of place whether store claim management document, if so, then judging that place terminal user obtained root authority, otherwise judge that place terminal user did not obtain root authority.
Further, described root detecting unit 320, comprising:
Whether file detection sub-unit 3201, store claim management document under detecting the arbitrary catalogue in the system/bin catalogue of place terminal, system/xbin catalogue and system/sbin catalogue.
The said goods can perform the increment upgrade detection method performed by terminal that any embodiment of the present invention provides, and possesses the corresponding functional module of manner of execution and beneficial effect.
Embodiment four
Fig. 4 is the structural representation of a kind of increment updating and management platform that the embodiment of the present invention four provides.See Fig. 4, the concrete structure of this increment updating and management platform is as follows:
Increment upgrade request receiving element 410, for the increment upgrade request that receiving terminal sends;
Increment AKU acquiring unit 420, for obtaining the increment AKU corresponding with described increment upgrade request, wherein said increment AKU comprises whether obtaining the target script command of root authority and the realization of goal function corresponding with described target script command for sense terminals user;
Increment AKU issues unit 430, for the increment AKU of acquisition is issued to described terminal, indicating described terminal by performing described target script command and described realization of goal function, carrying out sense terminals user and whether obtained root authority and determined whether to stop increment upgrading according to testing result.
Further, the increment updating and management platform that the present embodiment provides also comprises: increment AKU generation unit 400, for before the increment upgrade request that sends at receiving terminal:
At the setting position that the original increment corresponding with described increment upgrade request is upgraded in run time version, add and be used for the objective function code whether sense terminals user obtained root authority; Wherein, described desired location is that the execution sequence of described objective function code is had precedence over for performing the position of the execution sequence of the functional realiey code of increment upgrading in described original increment upgrading run time version, and described objective function code comprises whether obtaining the target script command of root authority and the realization of goal function corresponding with described target script command for detecting place terminal user;
Original increment upgrading run time version after interpolation operation is compiled, to obtain the binary file for performing increment upgrading;
According to described binary file and described increment upgrade file, form the increment AKU corresponding with described increment upgrade request.
The said goods can perform the increment updating management method performed by increment updating and management platform that any embodiment of the present invention provides, and possesses the corresponding functional module of manner of execution and beneficial effect.
Embodiment five
Fig. 5 is the schematic flow sheet of a kind of preferred method for updating increment that the embodiment of the present invention five provides.The present embodiment based on above-described embodiment, can provide a kind of preferred embodiment.The present embodiment is applicable to the application scenarios operating system on mobile terminal being carried out to increment upgrading, and also namely increment upgrading object is the operating system of terminal.See Fig. 5, the method for updating increment that the present embodiment provides, specifically comprises following operation:
Operation 510, terminal are to the increment upgrade request of increment updating and management platform transmission to operating system in terminal.Wherein, increment upgrade request can comprise the current version identifications of operating system in terminal.
Operation 520, increment updating and management platform obtain the increment AKU corresponding with increment upgrade request.
Concrete, increment updating and management platform is first resolved increment upgrade request, extract the current version identifications of operating system in wherein comprised terminal, then the increment AKU corresponding to target version mark higher than described current version identifications is obtained, using this increment AKU as the increment AKU corresponding with increment upgrade request.Wherein, described increment AKU comprises whether obtaining the target script command of root authority and the realization of goal function corresponding with target script command for sense terminals user.
In the present embodiment, the generative process of the increment AKU corresponding to target version mark, specifically comprises:
With target version identify corresponding original increment upgrade run time version Part I in the middle of adds whether obtained the target script command of root authority for sense terminals user; With target version identify corresponding original increment upgrade run time version Part II in add the realization of goal function corresponding with described target script command;
Original increment upgrading run time version after interpolation operation is compiled, to obtain the binary file for performing increment upgrading;
According to described binary file and described increment upgrade file, composition identifies corresponding increment AKU with target version.
The increment AKU of acquisition is issued to terminal by operation 530, increment updating and management platform.
Operation 540, terminal are when carrying out increment upgrading according to increment AKU, whether the target script command in the increment AKU issued by execution increment updating and management platform and realization of goal function, store claim management document under carrying out the arbitrary catalogue in the system/bin catalogue of sense terminals, system/xbin catalogue and system/sbin catalogue.
If operation 550, terminal detect and be, then judge that terminal user obtained root authority, stop increment upgrading, otherwise judge that terminal user did not obtain root authority, proceed increment upgrading.
The technical scheme that the present embodiment provides, perfectly can block all channels that the terminal obtaining root authority carries out the upgrading of operating system increment, ensureing that terminal there will not be the various abnormal conditions occurred because of carrying out the upgrading of operating system increment after obtaining root authority, guaranteeing that terminal user normally can use terminal.Further, the method that the present embodiment provides only can have influence on the relevant file of increment AKU, does not affect terminal firmware.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.

Claims (10)

1. an increment upgrade detection method, is applied to terminal, it is characterized in that, comprising:
Obtain the increment AKU that increment updating and management platform issues, wherein said increment AKU comprises: whether obtained the target script command of root authority and the realization of goal function corresponding with described target script command for detecting place terminal user;
When carrying out increment upgrading according to described increment AKU, by performing described target script command and described realization of goal function, carrying out sense terminals user and whether obtaining root authority;
If detect that terminal user obtained root authority, then stop increment upgrading, otherwise proceed increment upgrading.
2. increment upgrade detection method according to claim 1, is characterized in that, by performing described target script command and described realization of goal function, detecting place terminal user and whether obtaining root authority, comprising:
By performing described target script command and described realization of goal function, detecting in the terminal of place whether store claim management document, if so, then judging that place terminal user obtained root authority, otherwise judge that place terminal user did not obtain root authority.
3. increment upgrade detection method according to claim 2, is characterized in that, detects in the terminal of place whether store claim management document, comprising:
Claim management document whether is stored under detecting the arbitrary catalogue in the system/bin catalogue of place terminal, system/xbin catalogue and system/sbin catalogue.
4. an increment updating management method, is applied to increment updating and management platform, it is characterized in that, comprising:
The increment upgrade request that receiving terminal sends;
Obtain the increment AKU corresponding with described increment upgrade request, wherein said increment AKU comprises whether obtaining the target script command of root authority and the realization of goal function corresponding with described target script command for sense terminals user;
The increment AKU of acquisition is issued to described terminal, indicating described terminal by performing described target script command and described realization of goal function, carrying out sense terminals user and whether obtained root authority and determined whether to stop increment upgrading according to testing result.
5. increment updating management method according to claim 4, is characterized in that, before the increment upgrade request that receiving terminal sends, also comprises:
At the setting position that the original increment corresponding with described increment upgrade request is upgraded in run time version, add and be used for the objective function code whether sense terminals user obtained root authority; Wherein, described desired location is that the execution sequence of described objective function code is had precedence over for performing the position of the execution sequence of the functional realiey code of increment upgrading in described original increment upgrading run time version, and described objective function code comprises whether obtaining the target script command of root authority and the realization of goal function corresponding with described target script command for detecting place terminal user;
Original increment upgrading run time version after interpolation operation is compiled, to obtain the binary file for performing increment upgrading;
According to described binary file and described increment upgrade file, form the increment AKU corresponding with described increment upgrade request.
6. a terminal, is characterized in that, comprising:
Increment AKU acquiring unit, for obtaining the increment AKU that increment updating and management platform issues, wherein said increment AKU comprises: whether obtained the target script command of root authority and the realization of goal function corresponding with described target script command for detecting place terminal user;
Root detecting unit, for when carrying out increment upgrading according to described increment AKU, by performing described target script command and described realization of goal function, carrying out sense terminals user and whether obtaining root authority;
Increment upgrading determining unit, if detect that terminal user obtained root authority for described root detecting unit, then stops increment upgrading, otherwise proceeds increment upgrading.
7. terminal according to claim 6, is characterized in that, described root detecting unit, specifically for:
By performing described target script command and described realization of goal function, detecting in the terminal of place whether store claim management document, if so, then judging that place terminal user obtained root authority, otherwise judge that place terminal user did not obtain root authority.
8. terminal according to claim 7, is characterized in that, described root detecting unit, comprising:
Whether file detection sub-unit, store claim management document under detecting the arbitrary catalogue in the system/bin catalogue of place terminal, system/xbin catalogue and system/sbin catalogue.
9. an increment updating and management platform, is characterized in that, comprising:
Increment upgrade request receiving element, for the increment upgrade request that receiving terminal sends;
Increment AKU acquiring unit, for obtaining the increment AKU corresponding with described increment upgrade request, wherein said increment AKU comprises whether obtaining the target script command of root authority and the realization of goal function corresponding with described target script command for sense terminals user;
Increment AKU issues unit, for the increment AKU of acquisition is issued to described terminal, indicating described terminal by performing described target script command and described realization of goal function, carrying out sense terminals user and whether obtained root authority and determined whether to stop increment upgrading according to testing result.
10. increment updating and management platform according to claim 9, is characterized in that, also comprise: increment AKU generation unit, for before the increment upgrade request that sends at receiving terminal:
At the setting position that the original increment corresponding with described increment upgrade request is upgraded in run time version, add and be used for the objective function code whether sense terminals user obtained root authority; Wherein, described desired location is that the execution sequence of described objective function code is had precedence over for performing the position of the execution sequence of the functional realiey code of increment upgrading in described original increment upgrading run time version, and described objective function code comprises whether obtaining the target script command of root authority and the realization of goal function corresponding with described target script command for detecting place terminal user;
Original increment upgrading run time version after interpolation operation is compiled, to obtain the binary file for performing increment upgrading;
According to described binary file and described increment upgrade file, form the increment AKU corresponding with described increment upgrade request.
CN201410816828.4A 2014-12-22 2014-12-22 Increment upgrade detection method, management method, terminal and increment updating and management platform Active CN104598807B (en)

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 true CN104598807A (en) 2015-05-06
CN104598807B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446768A (en) * 2015-11-05 2016-03-30 小米科技有限责任公司 System upgrading method and apparatus
CN115794185A (en) * 2021-09-10 2023-03-14 中兴通讯股份有限公司 Data increment upgrading method, power supply equipment system, network manager and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
LEO_NG: "安卓5.0改变OTA升级机制ROOT设备需谨慎", 《WEAND.COM》 *
上方文Q: "Root的噩梦啊!安卓5.0 OTA机制大变", 《驱动之家》 *
邢晓燕等: "Android系统root权限获取与检测", 《软件》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446768A (en) * 2015-11-05 2016-03-30 小米科技有限责任公司 System upgrading method and apparatus
CN105446768B (en) * 2015-11-05 2019-07-05 小米科技有限责任公司 Method for upgrading system and device
CN115794185A (en) * 2021-09-10 2023-03-14 中兴通讯股份有限公司 Data increment upgrading method, power supply equipment system, network manager and storage medium
CN115794185B (en) * 2021-09-10 2023-11-07 中兴通讯股份有限公司 Data increment upgrading method, power supply equipment system, network manager and storage medium

Also Published As

Publication number Publication date
CN104598807B (en) 2017-10-31

Similar Documents

Publication Publication Date Title
CN107509187B (en) Application program installation method, mobile terminal and server
CN105786538B (en) software upgrading method and device based on android system
CN107748668B (en) Method and device for upgrading application program
US10437580B2 (en) Software updating methods and systems
US8443354B1 (en) Detecting new or modified portions of code
US20130061222A1 (en) Apparatus and method for managing optimized virtualization module
CN107943502B (en) Upgrading method based on fine-grained system state detection in Linux system
US20140020096A1 (en) System to profile application software
CN104573435A (en) Method for terminal authority management and terminal
US11714663B2 (en) Application environment that implements native code functionality in progressive web applications
CN104506639A (en) Root right acquiring method and device
KR20130142073A (en) Method and terminal for using mobile memory card to boot up mobile phone operating system
CN105704296B (en) Application environment cloning method and device
KR20170067826A (en) Updating of firmware
CN106648762B (en) Method and device for building development environment
CN105634745A (en) Security authentication method and device for application installation
CN108197469B (en) Method and device for verifying application program, storage medium and electronic equipment
CN108958785B (en) Application program upgrading method and device
CN106569907B (en) System startup file checking and compiling method
CN104598807A (en) Increment upgrade detection method, management method, terminal and increment upgrade management platform
CN108132832B (en) Application program starting method and device
CN104158907A (en) Method and device of downloading application program file
CN106295327B (en) Executable file reinforcing method and device
KR102086749B1 (en) Measuring Similarity System and Method of Android Application Using Text Mining
CN109918287A (en) APP upgrading test method, apparatus, computer equipment and storage medium

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.