CN104200159B - Configure the method and device of the authority of application program - Google Patents

Configure the method and device of the authority of application program Download PDF

Info

Publication number
CN104200159B
CN104200159B CN201410453132.XA CN201410453132A CN104200159B CN 104200159 B CN104200159 B CN 104200159B CN 201410453132 A CN201410453132 A CN 201410453132A CN 104200159 B CN104200159 B CN 104200159B
Authority
CN
China
Prior art keywords
authority
application program
layer
information
application
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
Application number
CN201410453132.XA
Other languages
Chinese (zh)
Other versions
CN104200159A (en
Inventor
庄庆
宋爽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410453132.XA priority Critical patent/CN104200159B/en
Publication of CN104200159A publication Critical patent/CN104200159A/en
Application granted granted Critical
Publication of CN104200159B publication Critical patent/CN104200159B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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/51Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
    • 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/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2145Inheriting rights or properties, e.g., propagation of permissions or restrictions within a hierarchy

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method and device for the authority for configuring application program.Method therein includes:Application layer is by monitoring module, the behavior that the application program is installed in ccf layer monitor and determines installing or application program to be installed by described monitor, the installation package informatin of the Setup Type comprising the application program and authority information is got;When being defined as update or covering by the Setup Type, the authority of the application program is configured using the authority information.The present invention can exempt the puzzlement for needing to reconfigure software authority after customer upgrade software.

Description

Configure the method and device of the authority of application program
Technical field
The present invention relates to technical field of mobile terminals, and in particular to the method and dress of a kind of authority of configuration application program Put.
Background technology
As global most popular Mobile operating system, Android (Android) already has hundreds of millions of users. When application program (software) in android system will perform some key operations, it is necessary to apply for corresponding authority.In view of very The application program of many android systems can apply for many non-essential authorities, important hidden such as sending short message, read contact person Private rights are limited, and this is possible to the risk for bringing privacy leakage and property to lose to user.So the peace of current some Android platforms Full software provides application program rights management function, and user can voluntarily configure application program according to the use needs of oneself Authority, it is to avoid privacy leakage.
However, after the application program updating of the good authority of user configuring, the authority of application program will be restored to acquiescence Configuration, user needs to reconfigure all permissions of the application program, and this is cumbersome and not humane for a user.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State the method and device of the authority of the configuration application program of problem.
According to one aspect of the present invention there is provided a kind of method for the authority for configuring application program, including:Application layer By monitoring module, the behavior that the application program is installed in ccf layer is monitored;Determine pacifying by described monitor Dress or application program to be installed, get the installation kit letter of the Setup Type comprising the application program and authority information Breath;When determining installation behavior by the Setup Type for update or covering installation, using the authority information to described The authority of application program is configured.
It is preferred that, the application layer is carried out by monitoring module to the behavior that the application program is installed in ccf layer Monitoring includes:The application layer is realized by monitoring the API in module invocation framenort layer and installs the application to ccf layer The behavior of program is monitored.
It is preferred that, it is described that the Setup Type comprising the application program and authority information are got by the monitoring Installation kit information includes:By the API in invocation framenort layer, obtain comprising the APK file for installing package informatin;Pass through invocation framenort API Message functions in layer, obtain the Setup Type of the application program;The APK file is parsed, the work(of operating system is obtained Energy inventory file, gets the authority information of the application program from the function list file.
It is preferred that, the authority information includes:The authority of short message reading record, reads the authority of associated person information, reads The authority of message registration, the authority for obtaining positional information, and/or, obtain the authority of facility information.
It is preferred that, it is described that the authority progress configuration of the application program is included using the authority information:It is determined that institute When stating installation behavior for update or covering installation, the last authority installed and preserved is read;According to the authority File is configured to the authority of the application program.
It is preferred that, it is described that the authority progress configuration of the application program is included using the authority information:Directly utilize The authority information is configured to the authority of the application program, or, the authority information is showed into user so that use Family carries out option and installment on the basis of the authority information to authority.
It is preferred that, the authority information for being used to configure the authority of the application program is to install described answer last time With what is preserved after program.
It is preferred that, methods described also includes:The application list is pre-set, it is described that the list includes needs execution The application program list of authority configuration scheme;Matched according to the mark of the application program with the list, if matching Success, then perform the authority configuration scheme for the application program.
It is preferred that, after the application program is installed, in addition to:Ccf layer returns to installment state to application layer Code;The application layer judges this time whether installation succeeds by the installment state code, will if installed successfully The authority configuration this time installed saves as APK file, is installed and used for next time.
It is preferred that, methods described also includes:By the monitoring module of the application layer, whether the ccf layer is monitored Unloading operation is carried out to the application program;If listen to the application program carry out unloading operation, by preservation with The related authority information file of the application program is deleted.
According to another aspect of the present invention there is provided a kind of device for the authority for configuring application program, including:Monitor single Member, for using application layer to monitoring the behavior that the application program is installed in ccf layer;Information acquisition unit, For determining installing or application program to be installed by the monitoring unit, the peace for including the application program is got Fill the installation package informatin of type and authority information;Authority configuration unit, for determining installation behavior by the Setup Type When being installed for update or covering, the authority of the application program is configured using the authority information.
It is preferred that, the monitoring unit specifically for:By the API in application layer invocation framenort layer, realize The behavior that ccf layer installs the application program is monitored.
It is preferred that, described information acquiring unit specifically for:By the API in invocation framenort layer, obtain including installation kit The APK file of information;By the API Message functions in invocation framenort layer, the Setup Type of the application program is obtained;Also, The APK file is parsed, the function list file of operating system is obtained, the application journey is got from the function list file The authority information of sequence.
It is preferred that, the authority information includes:The authority of short message reading record, reads the authority of associated person information, reads The authority of message registration, the authority for obtaining positional information, and/or, obtain the authority of facility information.
It is preferred that, the authority configuration unit specifically for:It is determined that the installation behavior is update or covering During installation, the last authority installed and preserved is read;The authority of the application program is carried out according to the authority Configuration.
It is preferred that, authority configuration unit specifically for:Directly utilize authority of the authority information to the application program Configured, or, the authority information is showed into user so that user is carried out on the basis of the authority information to authority Option and installment.
It is preferred that, the authority configuration unit installed the authority information preserved after the application program using last time to this Secondary install carries out authority configuration.
It is preferred that, the authority configuration unit is according to the mark and the application list for pre-setting of the application program Matched, if the match is successful, the authority configuration scheme is performed for the application program, wherein, the application journey Sequence table includes needing to perform the application program list of the authority configuration scheme.
It is preferred that, in addition to:Installment state determining unit, for obtaining installment state code, the application from ccf layer Program layer judges this time whether installation succeeds by the installment state code;Authority storage unit, if this time installed Success, saves as APK file by the authority configuration of this installation, is installed and used for next time.
It is preferred that, in addition to:Monitoring unit is unloaded, whether the ccf layer is monitored to described by the application layer Application program carries out unloading operation;Authority deletes unit, and unloading operation is carried out to the application program if listened to, for inciting somebody to action The authority information file related to the application program preserved is deleted.
It can be seen that, in the technical scheme that the present invention is provided, the behavior of application program is installed by monitoring, installed first non- In the case of, preserved authority information will be installed before getting and show user, user is unnecessary to be carried out to each authority Again choose, but can easily take configuration of last time when installing.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the method flow diagram of the authority of configuration application program according to an embodiment of the invention;And
Fig. 2 shows the method schematic diagram of the authority of configuration application program according to an embodiment of the invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
The invention discloses a kind of method that authority information to application program is managed, customer upgrade can be exempted soft Need to reconfigure the puzzlement of software authority after part.
Referring to Fig. 1, the method flow diagram of the authority of the configuration application program provided for one embodiment of the invention.
This method comprises the following steps:
S101:Application layer is monitored the behavior that application program is installed in ccf layer by monitoring module;
S102:Determine installing or application program to be installed by monitoring, get the installation comprising application program The installation package informatin of type and authority information;
S103:When determining installation behavior by Setup Type for non-installation first (such as update or covering are installed), Configured using authority information correspondence with the authority of program.
It will be appreciated by those skilled in the art that operating system includes application layer (app layers) and system framework layer (framework layers).A kind of preferred implementation of the present invention is app layers and framework layers to be improved, so as to utilize This two layers coordinated is realized to be managed to the authority information of application program.Specifically, can be in one prison of app layers of increase Module is listened, the behavior for monitoring framework layers of installation application program, so as to when the application is installed, get The installation package informatin and Setup Type of application program, so as to be installed first (such as update or covering are installed) non- When, the authority of application program is configured using the authority information being resolved to.
It is the embodiment of the method schematic diagram of the authority of the configuration application program of the embodiment of the present invention referring to Fig. 2.App layers Module is monitored to monitor the behavior for installing some specific application program in framework layers, and by the peace listened to Dress package informatin carry out parsing acquire authority information, when Setup Type for it is non-install first when, directly carried out according to authority information The configuration of application program authority.
It can realize that the behavior for installing application program to ccf layer is monitored by the API of operating system.API (Application Programming Interface, application programming interface) is that operating system leaves application program for One calling interface, application program makes operating system go the order for performing application program (dynamic by the API of call operation system Make).It can be realized using interrupt mechanism and API is monitored.Specifically, can be using hook (hook or hook) mechanism realization pair Being used in framework layers realizes that the interface for installing application program is monitored.Skilled in the art realises that, hook mechanism Application program is allowed to intercept and capture message or the particular event of processing operating system.Hook is actually the program of a processing message Section, is called by system, it is linked into system.Whenever specific message is sent, before no arrival purpose window, hook program The message is just first captured, that is, Hook Function first obtains control.At this moment Hook Function is that this can be disappeared with working process (change) Breath, can not also deal with and continue to transmit the message, can also force the transmission of end.In embodiments of the present invention, The process for installing application program is interrupted using hook mechanism, realizes and obtains relevant information before application program installation.
Three kinds of situations are situated between to the embodiment of the present invention when being installed below from application program, after installation and when unloading Continue.
(1) reading, storage and the setting of authority information when application program is installed
New application needs to apply for many authorities when mounted.The authority of application program refers to that application program has enforcement Some/right that operates a bit.Such as, certain input method provides the function of an intelligent address list, and user can be in input connection When being preceding several characters or the initial of people's phonetic, the name of Related Contact can just be presented automatically for input method, in order to realize this Individual function, input method must state that it is needed with the authority for reading contact person in mobile phone.
The embodiment of the present invention can will install package informatin and be parsed, and the authority of installation kit be included to come, fit applications journey The installation monitoring of sequence shows user.
For example, a software is installed on the mobile phone of Android system, can be by APK (installation kit) by calling API File is parsed, and opens android function list file AndroidManifest.xml, the software function registered Authority.The UI of monitoring shows user before by the word implication of the id of this authority representatives by installing, and user can be carried out The operation such as allow, forbid.For example, the authority included includes:Short message reading record (acquiescence allows), reads associated person information (acquiescence allows), message registration (giving tacit consent to allows) is read, positional information (acquiescence is forbidden) is obtained, obtains facility information (acquiescence taboo Only) etc., user can be operated on this basis, and such as user directly takes default setting, or component options are carried out Change etc..Authority information showed into user except this so that user carries out selection to authority on the basis of authority information and matched somebody with somebody Outside putting, directly it can also be configured using authority information correspondence with the authority of program.It will be understood by those skilled in the art that During being currently installed on for authority configuration authority information be last time install application program after preserve, for example this install Installed to update, then the APK file preserved afterwards was directly installed first using last time and carries out authority configuration.
In addition, in software installation, by calling API to learn the installation behavior of software, such as, covering is installed, upgrading is pacified Dress etc..For different situations, the authority kept is subjected to configuration preservation.
Specifically, passing through the API Message functions in invocation framenort layer, the Setup Type for the program that is applied.For example, passing through API PackageManager.getPackageInfo () are currently installed on whether bag had been installed to obtain.If pacified Filled, then the information such as the version number of software have further been installed by this method acquisition.
By the checking of the relevant informations such as version number, to judge current behavior.If it is determined that behavior be update Or covering is installed, then install the authority preserved by last, read user and this APK preservations were installed last time Rights state, such as transmission short message-forbid, obtain positional information-permission.Read after authority, priority assignation is showed User.
(2) authority after application program is installed is preserved
After software installation, operating system is whether successfully to return to correlative code (code) to the bag being currently installed on, and is obtained By reflex mechanism after code, the relevant information of this code representatives is obtained.Such as install successfully, install failure, signature it is different, empty Between deficiency etc..
Software installation fails, and current APK authorities is not preserved.
, it is necessary to which the data of authority are preserved after software installation success.When being installed so as to next time, permissions data is carried out Set.
(3) the authority processing after application program unloading
By the monitoring module of application layer, monitor whether ccf layer carries out unloading operation to application program;If prison Hear and unloading operation is carried out to application program, then delete the authority information file related to application program of preservation.For example, soft After part unloading, unloading behavior is got according to API, and the permissions data of preservation is removed.
It can be seen that, the embodiment of the present invention at least includes two key technology points:
1st, installation kit is parsed by API, analyzes the authority of installation kit;And by screening, matching user is set, Final priority assignation is showed into user.
2nd, to the adapter for installing behavior of operating system, injected by bottom, by the installation behavior of system, be mapped to installation In preceding monitoring;And the code of installment state is taken over, and to code state analysis;Correct result is most selected at last Displaying.
In the technical scheme that the present invention is provided, the behavior of application program is installed by monitoring, under non-installation situation first, User is showed by preserved authority information is installed before getting, user is unnecessary to be hooked again to each authority Choosing, but can easily take configuration of last time when installing.
It should be noted that can be in the terminal by presetting application program list only to specific application program Implement the present invention program.For example, 10 app are provided with mobile phone, by selecting setting user to wish that wherein 5 app can be implemented The authority configuration scheme that the present invention is provided, and then it is not intended to implement the authority configuration of the present invention for the app without selection setting Scheme.Therefore, the embodiment of the present invention can also include:The application list is pre-set, the list includes needing to perform The application program list of the authority configuration scheme;Matched according to the mark of the application program with the list, if The match is successful, then perform the authority configuration scheme for the application program.
Corresponding with the above method, the present invention also provides a kind of device for the authority for configuring application program.The device can be with Realized by hardware, software or software and hardware combining mode.The device can refer to the functional module of terminal inner or refer to Terminal in itself, as long as terminal includes realizing the function of the device.Wherein, the operating system of terminal includes ccf layer and application Program layer.The device includes:
Monitoring unit, for using application layer to being supervised to the behavior that the application program is installed in ccf layer Listen;
Information acquisition unit, for determining installing or application program to be installed by the monitoring unit, is obtained To the Setup Type comprising the application program and the installation package informatin of authority information;
Authority configuration unit, for being defined as update by the Setup Type or when covering is installed, using described Authority information is configured to the authority of the application program.
It is preferred that, the monitoring unit specifically for:By the API in application layer invocation framenort layer, realize The behavior that ccf layer installs the application program is monitored.
It is preferred that, described information acquiring unit specifically for:By the API in invocation framenort layer, obtain including installation kit The APK file of information;Also, by the API Message functions in invocation framenort layer, obtain the Setup Type of the application program; The APK file is parsed, the function list file of operating system is obtained, the application journey is got from the function list file The authority information of sequence.
It is preferred that, the authority information includes:The authority of short message reading record, reads the authority of associated person information, reads The authority of message registration, the authority for obtaining positional information, and/or, obtain the authority of facility information.
It is preferred that, the authority configuration unit specifically for:It is determined that the installation behavior is update or covering During installation, the last authority installed and preserved is read;The authority of the application program is carried out according to the authority Configuration.
It is preferred that, the authority configuration unit specifically for:Directly using the authority information to the application program Authority is configured, or, the authority information is showed into user so that user is on the basis of the authority information to authority Carry out option and installment.
It is preferred that, the authority configuration unit installed the authority information preserved after the application program using last time to this Secondary install carries out authority configuration.
It is preferred that, the authority configuration unit is according to the mark and the application list for pre-setting of the application program Matched, if the match is successful, the authority configuration scheme is performed for the application program, wherein, the application journey Sequence table includes needing to perform the application program list of the authority configuration scheme.
It is preferred that, described device also includes:
Installment state determining unit, for obtaining installment state code from ccf layer, the application layer passes through described Installment state code, judges this time whether installation succeeds;
Authority storage unit, if this time installed successfully, APK file is saved as by the authority configuration of this installation, Installed and used for next time.
It is preferred that, described device also includes:
Monitoring unit is unloaded, monitors whether the ccf layer unloads to the application program by the application layer Carry operation;
Authority delete unit, if listen to the application program carry out unloading operation, for by preservation with it is described The related authority information file of application program is deleted.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself All as the separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention Within the scope of and form different embodiments.For example, in the following claims, times of embodiment claimed One of meaning mode can be used in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) realize the dress of the authority of configuration application program according to embodiments of the present invention The some or all functions of some or all parts in putting.The present invention is also implemented as described here for performing Method some or all equipment or program of device (for example, computer program and computer program product).This The program of the realization present invention of sample can be stored on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from internet website and obtained, and either be provided or with any other on carrier signal Form is provided.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
The present invention provides following scheme:
A1, a kind of method of the authority of configuration application program, including:
Application layer is monitored the behavior that the application program is installed in ccf layer by monitoring module;
Determine installing or application program to be installed by described monitor, get the peace for including the application program Fill the installation package informatin of type and authority information;
When determining installation behavior by the Setup Type for update or covering installation, the authority information pair is utilized The authority of the application program is configured.
A2, the method as described in A1, the application layer is by monitoring module to installing the application journey in ccf layer The behavior of sequence, which carries out monitoring, to be included:
The application layer is realized by monitoring the API in module invocation framenort layer and installs the application to ccf layer The behavior of program is monitored.
A3, the method as described in A2, it is described by it is described monitoring get the Setup Type comprising the application program with And the installation kit information of authority information includes:
By the API in invocation framenort layer, obtain comprising the APK file for installing package informatin;
By the API Message functions in invocation framenort layer, the Setup Type of the application program is obtained;
The APK file is parsed, the function list file of operating system is obtained, institute is got from the function list file State the authority information of application program.
A4, the method as described in A1, the authority information include:The authority of short message reading record, reads associated person information Authority, read message registration authority, obtain positional information authority, and/or, obtain facility information authority.
A5, the method as described in A1, it is described that configuration bag is carried out to the authority of the application program using the authority information Include:
When it is determined that the installation behavior is update or covering installation, it is literary that the reading last time installs the authority preserved Part;
The authority of the application program is configured according to the authority.
A6, the method as described in A1, it is described that configuration bag is carried out to the authority of the application program using the authority information Include:
Directly the authority of the application program is configured using the authority information, or, by the authority information Show user so that user carries out option and installment on the basis of the authority information to authority.
A7, the method as described in A1, it is described to be for the authority information that the authority to the application program is configured Preserved after the secondary installation application program.
A8, the method as described in A1, methods described also include:
The application list is pre-set, the list includes the application program for needing to perform the authority configuration scheme List;
Matched according to the mark of the application program with the list, if the match is successful, for the application Program performs the authority configuration scheme.
A9, the method as described in A1, after the application program is installed, in addition to:
Ccf layer returns to installment state code to application layer;
The application layer judges this time whether installation succeeds by the installment state code, if installed successfully, The authority configuration of this installation is saved as into APK file, installed and used for next time.
A10, the method as described in A1, methods described also include:
By the monitoring module of the application layer, monitor whether the ccf layer unloads to the application program Operation;
Unloading operation is carried out to the application program if listened to, by the power related to the application program of preservation Limit information file is deleted.
B11, a kind of device of the authority of configuration application program, including:
Monitoring unit, for using application layer to being supervised to the behavior that the application program is installed in ccf layer Listen;
Information acquisition unit, for determining installing or application program to be installed by the monitoring unit, is obtained To the Setup Type comprising the application program and the installation package informatin of authority information;
Authority configuration unit, during for determining installation behavior by the Setup Type for update or covering installation, The authority of the application program is configured using the authority information.
B12, the device as described in B11, the monitoring unit specifically for:Pass through application layer invocation framenort layer In API, realize that the behavior for installing the application program to ccf layer is monitored.
B13, the device as described in B10, described information acquiring unit specifically for:By the API in invocation framenort layer, obtain To the APK file for including installation package informatin;By the API Message functions in invocation framenort layer, the peace of the application program is obtained Fill type;Also, the APK file is parsed, the function list file of operating system is obtained, obtained from the function list file To the authority information of the application program.
B14, the device as described in B11, the authority information include:The authority of short message reading record, reads contact person's letter The authority of breath, the authority for reading message registration, the authority for obtaining positional information, and/or, obtain the authority of facility information.
B15, the device as described in B11, the authority configuration unit specifically for:It is determined that the installation behavior is upgrading When installing or covering installation, the last authority for installing preservation is read;According to the authority to the application journey The authority of sequence is configured.
B16, the device as described in B11, authority configuration unit specifically for:Directly answered using the authority information described Configured with the authority of program, or, the authority information is showed into user so that user is on authority information basis On to authority carry out option and installment.
B17, the device as described in B11, the authority configuration unit utilize preservation after the last time installation application program Authority information to this installation carry out authority configuration.
B18, the device as described in B11, the authority configuration unit is according to the mark of the application program with pre-setting The application list matched, if the match is successful, the authority configuration scheme is performed for the application program, its In, described the application list includes needing to perform the application program list of the authority configuration scheme.
B19, the device as described in B11, in addition to:
Installment state determining unit, for obtaining installment state code from ccf layer, the application layer passes through described Installment state code, judges this time whether installation succeeds;
Authority storage unit, if this time installed successfully, APK file is saved as by the authority configuration of this installation, Installed and used for next time.
B20, the device as described in B11, in addition to:
Monitoring unit is unloaded, monitors whether the ccf layer unloads to the application program by the application layer Carry operation;
Authority delete unit, if listen to the application program carry out unloading operation, for by preservation with it is described The related authority information file of application program is deleted.

Claims (14)

1. a kind of method for the authority for configuring application program, it is characterised in that including:
Application layer interrupts the process that ccf layer installs application program, to ccf layer by monitoring module based on hook mechanism The middle behavior for installing the application program is monitored;
Determine installing or application program to be installed by described monitor, get the installation class comprising the application program The installation package informatin of type and authority information, wherein, the authority information is to install last time to preserve after the application program;
When determining installation behavior by the Setup Type for update or covering installation, installed to the power preserved the last time Limit information shows user so that user is direct to authority on the basis of the authority information to be confirmed or be modified.
2. the method as described in claim 1, it is characterised in that the application layer is by monitoring module to pacifying in ccf layer Filling the behavior progress monitoring of the application program includes:
The application layer is realized by monitoring the API in module invocation framenort layer and installs the application program to ccf layer Behavior monitored.
3. method as claimed in claim 2, it is characterised in that described to be got by the monitoring comprising the application program Setup Type and the installation kit information of authority information include:
By the API in invocation framenort layer, obtain comprising the APK file for installing package informatin;
By the API Message functions in invocation framenort layer, the Setup Type of the application program is obtained;
The APK file is parsed, the function list file of operating system is obtained, described answer is got from the function list file With the authority information of program.
4. the method as described in claim 1, it is characterised in that the authority information includes:The authority of short message reading record, reads Authority, the authority for reading message registration, the authority of acquisition positional information for taking associated person information, and/or, obtain facility information Authority.
5. the method as described in claim 1, it is characterised in that methods described also includes:
The application list is pre-set, the list includes the application name for needing to perform the authority configuration scheme It is single;
Matched according to the mark of the application program with the list, if the match is successful, for the application program Perform the authority configuration scheme.
6. the method as described in claim 1, it is characterised in that after the application program is installed, in addition to:
Ccf layer returns to installment state code to application layer;
The application layer judges this time whether installation succeeds, if installed successfully, by this by the installment state code The authority configuration of secondary installation saves as APK file, is installed and used for next time.
7. the method as described in claim 1, it is characterised in that methods described also includes:
By the monitoring module of the application layer, monitor whether the ccf layer carries out unloading behaviour to the application program Make;
Unloading operation is carried out to the application program if listened to, the authority related to the application program of preservation is believed File is ceased to delete.
8. a kind of device for the authority for configuring application program, it is characterised in that including:
Monitoring unit, for utilizing application layer, interrupts the process that ccf layer installs application program, to frame based on hook mechanism The behavior that the application program is installed in rack-layer is monitored;
Information acquisition unit, for determining installing or application program to be installed by the monitoring unit, gets bag The installation package informatin of Setup Type and authority information containing the application program, wherein, the authority information is to install last time Preserved after the application program;
Authority configuration unit, during for determining installation behavior by the Setup Type for update or covering installation, by institute The authority information for stating last time installation preservation shows user so that user directly confirms on the basis of the authority information to authority Or be modified.
9. device as claimed in claim 8, it is characterised in that the monitoring unit specifically for:Pass through the application program API in layer invocation framenort layer, realizes that the behavior for installing the application program to ccf layer is monitored.
10. device as claimed in claim 8, it is characterised in that described information acquiring unit specifically for:Pass through invocation framenort API in layer, is obtained comprising the APK file for installing package informatin;By the API Message functions in invocation framenort layer, obtain described The Setup Type of application program;Also, the APK file is parsed, the function list file of operating system is obtained, it is clear from the function The authority information of the application program is got in monofile.
11. device as claimed in claim 8, it is characterised in that the authority information includes:The authority of short message reading record, Authority, the authority for reading message registration, the authority of acquisition positional information for reading associated person information, and/or, obtain facility information Authority.
12. device as claimed in claim 8, it is characterised in that the authority configuration unit is according to the mark of the application program Know the application list with pre-setting to be matched, if the match is successful, the power is performed for the application program Allocation plan is limited, wherein, described the application list includes needing to perform the application program list of the authority configuration scheme.
13. device as claimed in claim 8, it is characterised in that also include:
Installment state determining unit, for obtaining installment state code from ccf layer, the application layer is installed by described State code, judges this time whether installation succeeds;
Authority storage unit, if this time installed successfully, saves as APK file by the authority configuration of this installation, is used for Next time installs and uses.
14. device as claimed in claim 8, it is characterised in that also include:
Monitoring unit is unloaded, monitors whether the ccf layer carries out unloading behaviour to the application program by the application layer Make;
Authority deletes unit, and unloading operation is carried out to the application program if listened to, for by preservation and the application The related authority information file of program is deleted.
CN201410453132.XA 2014-09-05 2014-09-05 Configure the method and device of the authority of application program Active CN104200159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410453132.XA CN104200159B (en) 2014-09-05 2014-09-05 Configure the method and device of the authority of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410453132.XA CN104200159B (en) 2014-09-05 2014-09-05 Configure the method and device of the authority of application program

Publications (2)

Publication Number Publication Date
CN104200159A CN104200159A (en) 2014-12-10
CN104200159B true CN104200159B (en) 2017-07-28

Family

ID=52085450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410453132.XA Active CN104200159B (en) 2014-09-05 2014-09-05 Configure the method and device of the authority of application program

Country Status (1)

Country Link
CN (1) CN104200159B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462961B (en) * 2014-12-24 2018-04-10 北京奇虎科技有限公司 Mobile terminal and its privacy authority optimization method
CN105653904B (en) * 2015-12-24 2019-05-17 北京奇虎科技有限公司 Using the processing method of screen locking, device and mobile terminal
CN107526580B (en) * 2016-07-26 2020-02-07 腾讯科技(深圳)有限公司 Terminal application identification method and device
CN108132818B (en) * 2016-11-30 2021-12-21 阿里巴巴集团控股有限公司 Interface processing method and electronic device for executing same
CN108234414B (en) * 2016-12-16 2021-08-10 北京京东振世信息技术有限公司 Upgrading method and device for APP
CN108646938B (en) * 2018-03-13 2020-04-17 Oppo广东移动通信有限公司 Configuration method and device of touch screen, terminal and storage medium
CN110781490A (en) * 2018-07-30 2020-02-11 中兴通讯股份有限公司 Information processing method, terminal and computer readable storage medium
CN109711150A (en) * 2018-12-19 2019-05-03 努比亚技术有限公司 Using installation permission grant method for limiting and device, mobile terminal and storage medium
CN109815680B (en) * 2018-12-27 2021-08-31 歌尔股份有限公司 Application authority management method and device, terminal equipment and storage medium
CN111125676B (en) * 2019-12-23 2022-06-03 北京百度网讯科技有限公司 Joint authorization method and device
CN111273962B (en) * 2020-02-14 2022-02-18 腾讯科技(深圳)有限公司 Configuration management method, device, computer readable storage medium and computer equipment
CN112559293B (en) * 2020-12-22 2023-03-07 上海哔哩哔哩科技有限公司 Application package monitoring method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345411A (en) * 2013-07-09 2013-10-09 北京奇虎科技有限公司 Method and device for uninstalling application program
CN103577757A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Virus defending method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697133A (en) * 2009-10-26 2010-04-21 中兴通讯股份有限公司 Software upgrading method, software upgrading system and client
CN102200922B (en) * 2011-04-06 2013-12-11 宇龙计算机通信科技(深圳)有限公司 Application program installation method and terminal
KR101295428B1 (en) * 2011-09-09 2013-08-23 주식회사 팬택 Method and Apparatus
CN103324506A (en) * 2013-06-24 2013-09-25 上海天奕达电子科技有限公司 Method and mobile phone for controlling installation of Android applications
CN103870306A (en) * 2014-02-21 2014-06-18 北京奇虎科技有限公司 Method and device for installing application program on basis of intelligent terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345411A (en) * 2013-07-09 2013-10-09 北京奇虎科技有限公司 Method and device for uninstalling application program
CN103577757A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Virus defending method and device

Also Published As

Publication number Publication date
CN104200159A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN104200159B (en) Configure the method and device of the authority of application program
CN103839000B (en) Application program installation method and device based on intelligent terminal equipment
CN104731625B (en) A kind of method, apparatus and mobile terminal loading plug-in unit
CN103595766B (en) Realize the method and device of the sending out notice of extension application
CN104462961B (en) Mobile terminal and its privacy authority optimization method
US9319270B2 (en) Configuration of third party applications in a sandboxed environment
CN104217140B (en) A kind of reinforcement means of application program and device
CN105303112B (en) The detection method and device of component call loophole
CN103577749B (en) The treating method and apparatus of informing message
CN103761471A (en) Application program installation method and device based on intelligent terminal
CN103870306A (en) Method and device for installing application program on basis of intelligent terminal equipment
CN104156215B (en) The method and device of application information is obtained based on Mobile operating system
CN104346206B (en) A kind of method and system of unloaded software rejuvenation installation
CN113378121A (en) System and method for adjusting application program permission based on assembly
CN105095753B (en) Broadcast safe detection method, device
CN105556534B (en) For suggesting the electronic equipment and method of response guide when refusing
CN106254404A (en) Application software authority recommends methods, devices and systems
CN107832069A (en) The update method of application program
CN105491239B (en) The hold-up interception method and device of junk information
US10691424B2 (en) Method for programming and terminal device
CN109543409A (en) For detecting the method, device and equipment of malicious application and training detection model
CN107590064A (en) A kind of application upgrade method of testing, device and system
US11620212B2 (en) Method for validating a medical application, end user device and medical system
CN105653904B (en) Using the processing method of screen locking, device and mobile terminal
US20200145496A1 (en) Offline sideloading for enrollment of devices in a mobile device management system

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
TR01 Transfer of patent right

Effective date of registration: 20220713

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right