CN106897604A - A kind of authority adaptation method and device - Google Patents
A kind of authority adaptation method and device Download PDFInfo
- Publication number
- CN106897604A CN106897604A CN201710117032.3A CN201710117032A CN106897604A CN 106897604 A CN106897604 A CN 106897604A CN 201710117032 A CN201710117032 A CN 201710117032A CN 106897604 A CN106897604 A CN 106897604A
- Authority
- CN
- China
- Prior art keywords
- client
- jurisdiction
- authority
- client jurisdiction
- result
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/45—Structures or tools for the administration of authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing 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/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
Abstract
A kind of authority adaptation method and device are the embodiment of the invention provides, wherein, methods described includes:Real-time reception simultaneously preserves system broadcast information;When calling client jurisdiction, according to the corresponding recent systems broadcast message of client jurisdiction, judge whether client is authorized to use client jurisdiction;When judging that client haves no right to use client jurisdiction, to operating system sending permission application, so that operating system provides a user with authority application prompt message;The result of authority application prompt message is received, and according to the result, accordingly determines that client haves no right to use client jurisdiction with access to client jurisdiction or client.By authority adaptation method provided in an embodiment of the present invention and device, the process of authority adaptation can be simplified, improve the efficiency of authority adaptation.
Description
Technical field
The present invention relates to client development technique field, more particularly to a kind of authority adaptation method and device.
Background technology
In order to before improving Android 6.0, the leakage of user profile, and user is to the non problem of authority,
After Android 6.0, system is improved to authority distribution, and user can be mounted directly client regardless of authority, work as visitor
When family end needs to call some authorities, user in oneself be actually needed operationally according to examining every authority
Core, and part authority therein is closed at any time.Requirement very high so is proposed to authority adaptation.
Existing authority adaptation method, when client needs to call some authorities, firstly, it is necessary to interacted with system,
And then check whether the authority has been authorized to;Then, when the authority is not authorized to, to system application authority;In the power
Limit is when having been authorized to, and the client call authority is normally run.
Be can see by above-mentioned existing authority adaptation method, when client needs to call some authorities, it is necessary first to
Interacted with system, just can know that whether the authority that needs are called has been authorized to;And then judge whether to need to system
Application authority, can so increase the process interacted between client and system so that authority adaptation procedure is complicated, authority adaptation effect
Rate is low.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of authority adaptation method and device, to simplify the mistake of authority adaptation
Journey, improves the efficiency of authority adaptation.Concrete technical scheme is as follows:
On the one hand, a kind of authority adaptation method is the embodiment of the invention provides, including:
Real-time reception simultaneously preserves system broadcast information, wherein, mandate feelings of the system broadcast information in client jurisdiction
Obtained when condition changes;
When client jurisdiction is called, according to the corresponding recent systems broadcast message of the client jurisdiction, client is judged
Whether end is authorized to use the client jurisdiction;
When judging that the client haves no right to use the client jurisdiction, to operating system sending permission application, so that institute
State operating system and provide a user with authority application prompt message;
The result of the authority application prompt message is received, and according to the result, is accordingly determined described
Client haves no right to use the client jurisdiction with access to the client jurisdiction or the client.
Optionally, it is described according to the corresponding recent systems broadcast message of the client jurisdiction, judge client whether by
The client jurisdiction is licensed, including:
The mandate of the client jurisdiction described in the system broadcast information is set when opening, and determines the client jurisdiction
It is authorized to;
The mandate of the client jurisdiction described in the system broadcast information is set when closing, and determines the client jurisdiction
It is uncommitted.
Optionally, the authority application prompt message includes authority application prompted dialog frame, wherein, the authority application is carried
Show that dialog box includes:Allow option, rejecting option and no longer reminder option.
Optionally, it is described according to the result, accordingly determine that the client is weighed with access to the client
Limit or the client have no right to use the client jurisdiction, including:
When the result is to allow the client to use the client jurisdiction, determine that the client is had the right
Use the client jurisdiction;
When the result uses the client jurisdiction for the refusal client, determine that the client is had no right
Use the client jurisdiction.
Optionally, when the result uses the client jurisdiction for the refusal client, the visitor is determined
Family end haves no right to use the client jurisdiction, including:
When the result is for the selection rejecting option and no longer reminder option described in selection, the client
Have no right to use the client jurisdiction, also, the client when calling the authority again, directly determine the client without
Power uses the client jurisdiction.
Optionally, methods described also includes:
Authority application interface and callback interface are set up, when the client needs to call the client jurisdiction, is passed through
Client jurisdiction described in authority application interface application, and by the callback interface, return to applying for the client jurisdiction
Result.
Optionally, the client jurisdiction includes:Influence the sensitive permission of privacy of user.
On the other hand, the embodiment of the present invention additionally provides a kind of authority adaptive device, including:
Receiver module, for real-time reception and preserves system broadcast information, wherein, the system broadcast information is in client
Obtained when the authorization conditions of authority change;
Judge module, for when client jurisdiction is called, according to the corresponding recent systems broadcast of the client jurisdiction
Information, judges whether client is authorized to use the client jurisdiction;
Request module, during for judging that the client haves no right to use the client jurisdiction, to operating system transmission route
Limit application, so that the operating system provides a user with authority application prompt message;
Processing module, the result for receiving the authority application prompt message, and according to the result, it is right
Ground is answered to determine that the client haves no right to be weighed using the client with access to the client jurisdiction or the client
Limit.
Optionally, the judge module includes:
First determination sub-module, the mandate for the client jurisdiction described in the system broadcast information sets opening
When, determine that the client jurisdiction is authorized to;
Second determination sub-module, the mandate for the client jurisdiction described in the system broadcast information sets closing
When, determine that the client jurisdiction is uncommitted.
Optionally, the authority application prompt message includes authority application prompted dialog frame, wherein, the authority application is carried
Show that dialog box includes:Allow option, rejecting option and no longer reminder option.
A kind of authority adaptation method provided in an embodiment of the present invention and device, with real-time reception and can preserve system broadcasts letter
Breath, so as to when needing to call client jurisdiction, according to the corresponding recent systems broadcast message of client jurisdiction, judge client
Whether the client jurisdiction is authorized to use;And when judging that client haves no right to use the client jurisdiction, to operating system
Application client jurisdiction, so that operating system provides a user with authority application prompt message;Then, user is received to authority application
The result of prompt message, and according to result, accordingly determine that client is had the right or haves no right to use client jurisdiction.
Authority adaptation method provided in an embodiment of the present invention and device, judging whether client is authorized to by the message of system broadcasts makes
The client jurisdiction is used, can in real time check whether the client jurisdiction is authorized to, it is not necessary to which client is needing client
First to system request during authority, and then could check whether client jurisdiction is authorized to, authority adaptation procedure can be simplified, carry
The efficiency of authority adaptation high.Certainly, implement any product of the invention or method it is not absolutely required to while reaching the above
All advantages.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of authority adaptation method provided in an embodiment of the present invention;
Fig. 2 is the structural representation of authority adaptive device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is the flow chart of embodiment of the present invention authority adaptation method, and reference picture 1 is to embodiment of the present invention authority adaptation side
Method is described in detail, including:
Step 101, real-time reception simultaneously preserves system broadcast information, wherein, system broadcast information is awarded client jurisdiction
Obtained when power situation changes.
Embodiment of the present invention authority adaptation method can apply to client, for example, mobile client, wherein, mobile visitor
Family end can include:Cell phone software APP etc..
Because the authorization conditions of client jurisdiction may all change at any time, for example, client is in operation before
Be in journey be authorized to can use the client jurisdiction, but, subsequent user in the rights management of operating system, by client
End priority assignation to forbid, then have no right to be continuing with the authorization conditions hair of the client jurisdiction, the i.e. client jurisdiction by client
Change is given birth to.But, client is ignorant for this change of client jurisdiction, so, calling the client every time
During the authority of end, it is necessary first to check the authorization conditions of client jurisdiction;Then, check be not authorized to use the client
During authority, subsequently dynamic application process is carried out.
In embodiment of the present invention authority adaptation method, when the authorization conditions of client jurisdiction change, operating system is all
Corresponding system broadcast information can be produced, and by the system broadcast information, by broadcast transmission to client, client is in real time
Receive the system broadcast information.So that, during whether subsequent examination client jurisdiction is authorized to, can directly utilize
The system broadcast information.
Step 102, when client jurisdiction is called, according to the corresponding recent systems broadcast message of client jurisdiction, judges
Whether client is authorized to use client jurisdiction.
Understandable to be, the authorization conditions of client jurisdiction be not likely to change in the same time, so client
The system broadcast information that termination is received has a lot.
And the needs inspection of embodiment of the present invention authority adaptation method is the client in client call client jurisdiction
Whether have been authorized to use the client jurisdiction, so need to choose the corresponding recent systems broadcast message of client jurisdiction,
And judge, when the client jurisdiction is called, whether client is authorized to use the client according to the recent systems broadcast message
Authority.
Step 103, when judging that client haves no right to use client jurisdiction, to operating system sending permission application, so that behaviour
Authority application prompt message is provided a user with as system.
When the result for judging to obtain is that client haves no right to use client jurisdiction, then need to the operating system application visitor
Family end authority, can be able to be specifically to send to ask to operating system to operating system sending permission application, and operating system connects
After receiving the request of client transmission, the request is responded, and authority application prompt message is provided a user with, so that user can select
Select and whether want authorized client to use the client jurisdiction.
It should be noted that authority application prompt message includes authority application prompted dialog frame, i.e. authority application prompting
Information can be that user is supplied in the form of pop-up dialogue box, wherein, authority application prompted dialog frame can include:Allow choosing
, rejecting option and no longer reminder option.In addition, in actual application process, can have in authority application prompted dialog frame
Simply explain, tell why subscription client needs the client jurisdiction, to facilitate user clearly to judge whether to authorize.
Specifically, providing a user with authority application prompt message can realize that specifically code is as follows by code:
ActivityCompat.requestPermissions(target.getActivity(),permissions,
getNextR equestCode());
public static void requestPermissions(final@NonNull Activity
activity,
final@NonNull String[]permissions,final int requestCode){}
Can be realized by above-mentioned code:Client when client jurisdiction is needed, to operating system sending permission application,
So that operating system provides a user with authority application prompt message, and then user is facilitated to be processed.
Step 104, receives the result of authority application prompt message, and according to result, accordingly determines client
Have no right to use client jurisdiction with access to client jurisdiction or client in end.
After user receives the authority application prompting message of system transmission, the authority application prompting message is processed,
Specifically include:Authorized client uses client jurisdiction using client jurisdiction or refusal client, and user is to authority Shen
Please the result of prompt message can feed back to operating system, then, the result is sent to client by steerable system, visitor
After family termination receives the result, according to the difference of result, different operations are accordingly carried out, specifically, in treatment
When result is to allow client to use the client jurisdiction, client is normally run using client jurisdiction;It is in result
When refusal client uses client jurisdiction, client is because have no right the misoperation using the client jurisdiction.
Authority adaptation method provided in an embodiment of the present invention, by real-time reception system broadcast information, and adjusts in client
When using client jurisdiction, according to the system broadcast information, by judging whether client is authorized to use client jurisdiction, in real time
Ground checks the authorization conditions of client jurisdiction;Then, when judging that client haves no right to use client jurisdiction, sent to operating system
Authority application, so that operating system provides a user with authority application prompt message;Finally, the place of authority application prompt message is received
Reason result, and according to result, accordingly normally run using client jurisdiction or had no right and be different using client jurisdiction
Often operation.By authority adaptation method provided in an embodiment of the present invention, the process of authority adaptation can be simplified, improve authority adaptation
Efficiency.
In actual application process, operating system sends system broadcast information by client, so that client root
According to system broadcast information, the authorization conditions of client jurisdiction are judged in real time, it is specifically, corresponding newest according to client jurisdiction
System broadcast information, judges whether client is authorized to use client jurisdiction, including:
When the mandate of client jurisdiction sets and opens in system broadcast information, determine that client jurisdiction is authorized to;
When the mandate of client jurisdiction sets and closes in system broadcast information, determine that client jurisdiction is uncommitted.
It should be noted that the authorization conditions comprising client jurisdiction in system broadcast information, in actual application process
In, operating system obtains the authorization conditions of client jurisdiction, is obtained by obtaining the situation of the mandate setting of client jurisdiction
, specifically, in actual application process, the situation that the mandate of client jurisdiction is set can include:Authorizing setting is
Being set with mandate for opening is to close, wherein, it is opening to authorize setting, that is, allow to use client jurisdiction;Authorize and set
It is to close, i.e., refusal uses client jurisdiction.
Client when needing to call client jurisdiction, to operating system sending permission application so that operating system to
Family provides authority application prompt message, finally needs to adjust back user to the result of authority application prompt message,
User is exactly fed back into client to the result of authority application prompt message, just client can so tied according to treatment
Fruit carries out follow-up treatment.Specifically, according to the difference of result, different operations are accordingly carried out, is in result
When allowing client to use the client jurisdiction, client is normally run using client jurisdiction;It is refusal visitor in result
When family end uses client jurisdiction, client is because have no right the misoperation using the client jurisdiction.
It should be noted that in the operating system of the versions of Android more than 6.0, client jurisdiction is in client needs
When by dynamic application and obtains, in actual application, the result for obtaining can be mandate can also not authorize;And
Before Android 6.0 in the operating system of version, client once install, all give tacit consent to and authorize, and returns by all application permissions
The result returned all is to authorize.
It should be noted that in a kind of achievable mode of authority adaptation method provided in an embodiment of the present invention, when with
The result at family is that refusal is authorized, and user's selection no longer reminds authority application when needing to call client jurisdiction again
Prompt message, can be specifically:When result for selection rejecting option and selection no longer reminder option when, client without
When power calls authority again using client jurisdiction and misoperation, also, client, directly determine that client haves no right to use visitor
Family end authority and misoperation, no longer dynamically to operating system application client jurisdiction.
For the operating system of the versions of Android more than 6.0, the application process of dynamic rights can produce several branches
Treatment logic, in actual application process, is so bad to manage and safeguard.In order that implementation process (such as code realization)
It is more clean and tidy and be more readily maintained, the process of dynamic rights application can be packaged, set up authority application interface and readjustment
Interface, when client needs to call client jurisdiction, by authority application interface application client jurisdiction, and is connect by readjustment
Mouthful, return to the result to applying for client jurisdiction.
Specifically, a newly-built base class activity is used for authority application and readjustment, then in activity outsourcing tubulatures
Reason layer, the entrance and exit that limitation is called, for the unique entrance and exit of outer exposed, is so needed for external logic code
When calling authority, will become abnormal simple.Simultaneously as authority application has been encapsulated in management class, for Android
The operating system of less than 6.0 versions also will be without any reference, for the operation less than the versions of Android 6.0 in class is managed
The authority application request of system, directly readjustment is whole has authorized, and realizes authority application process to Android more than 6.0
The compatibility of version and the operating system less than the versions of Android 6.0.
The process of dynamic application authority, can be when client needs client jurisdiction, by the authority application after encapsulation
Entrance is to operating system application authority, and the outlet return result for passing through authority application, that is, realize readjustment.
Commonly used authority is divided into two kinds by Android6.0, common authority and sensitive permission, in actual application process
In, common authority can be dynamically to apply, but sensitive permission is to need dynamic application.It should be noted that nothing
By common authority or sensitive permission, it is required for being listed in Manifest, Manifest is the inventory text of android system
Part needs specifically to be processed again, it is necessary to required all permissions are all stated herein first during subsequent dynamic application,
If without first declare herein, behind but will use this authority, system can because can not find this authority statement (note
Volume), cause client to be collapsed.Common authority and sensitive permission are described in detail separately below.
1) common authority (Normal permissions):Privacy of user will not be revealed, while will not also cause safety to be asked
Topic.This kind of client jurisdiction only needs to be listed in Manifest, and afterwards, operating system can automatically be assigned to client jurisdiction.Tool
Body ground, common authority includes accessing authority ACCESS_NETWORK_STATE, ACCESS_NOTIFICATION_ of network state
POLICY, the authority ACCESS_WIFI_STATE for accessing wireless communication status information, the power for being connected to the bluetooth equipment for having matched
Limit BLUETOOTH, the authority BLUETOOTH_ADMIN for finding and matching bluetooth equipment etc..
2) sensitive permission (Dangerous permissions):It is corresponding with common authority, may influence that user's is hidden
Private, data storage etc., such as take pictures, store, address list, geography GPS etc., and this kind of authority needs to be listed in Manifest,
Dynamically apply when needs.Specifically, sensitive permission includes:Obtain the authority CALENDAR of user's calendar data, take pictures
Authority CAMERA, the authority CONTACTS for obtaining user contact's data, the authority LOCATION for obtaining geographical position, acquisition are logical
The authority PHONE for interrogating record, the authority SENSORS, the authority SMS to short message operation, the authority of data storage that obtain heat transfer agent
STORAGE etc..In addition, the request of sensitive permission is reminded according to packet, not only for one, for example, communicate
The read right and write permission of record, as long as an authority application can be received.
Statement to client jurisdiction, so that it is follow-up when client jurisdiction is needed, Mobile state Shen is entered to client jurisdiction
Please, system because of can not find the statement of this authority, and will not cause client to be collapsed.
The embodiment of the present invention additionally provides a kind of authority adaptive device, and Fig. 2 is adapted to for authority provided in an embodiment of the present invention
The structural representation of device, reference picture 2 is described in detail to authority adaptive device provided in an embodiment of the present invention, including:
Receiver module 201, for real-time reception and preserves system broadcast information, wherein, system broadcast information is in client
Obtained when the authorization conditions of authority change.
Judge module 202, for when client jurisdiction is called, according to the corresponding recent systems broadcast letter of client jurisdiction
Breath, judges whether client is authorized to use client jurisdiction.
Request module 203, during for judging that client haves no right to use client jurisdiction, to operating system sending permission Shen
Please, so that operating system provides a user with authority application prompt message.
Processing module 204, the result for receiving authority application prompt message, and according to result, accordingly
Determine that client haves no right to use client jurisdiction with access to client jurisdiction or client.
Authority adaptive device provided in an embodiment of the present invention, by real-time reception system broadcast information, and adjusts in client
When using client jurisdiction, according to the system broadcast information, by judging whether client is authorized to use client jurisdiction, in real time
Ground checks the authorization conditions of client jurisdiction;Then, when judging that client haves no right to use client jurisdiction, sent to operating system
Authority application, so that operating system provides a user with authority application prompt message;Finally, the place of authority application prompt message is received
Reason result, and according to result, accordingly client is normally run using client jurisdiction or haves no right to be weighed using client
Limit and misoperation.By authority adaptive device provided in an embodiment of the present invention, the process of authority adaptation can be simplified, improve power
Limit the efficiency of adaptation.
Optionally, judge module 202 includes in authority adaptive device provided in an embodiment of the present invention:
First determination sub-module, when the mandate for the client jurisdiction in system broadcast information sets opening, it is determined that objective
Family end authority is authorized to.
Second determination sub-module, when the mandate for the client jurisdiction in system broadcast information sets closing, it is determined that objective
Family end authority is uncommitted.
Optionally, in authority adaptive device provided in an embodiment of the present invention, authority application prompt message includes authority application
Prompted dialog frame, wherein, authority application prompted dialog frame includes:Allow option, rejecting option and no longer reminder option.
Optionally, processing module 204 includes in authority adaptive device provided in an embodiment of the present invention:
First treatment submodule, for when result is to allow client to use client jurisdiction, determining client
With access to client jurisdiction.
Second processing submodule, for when result uses client jurisdiction for refusal client, determining client
Have no right to use client jurisdiction.
Optionally, in authority adaptive device provided in an embodiment of the present invention, second processing submodule is specifically for when treatment
Result is that client haves no right to use client jurisdiction, also, client when selecting rejecting option and selecting no longer reminder option
When calling authority again, directly determine that client haves no right to use client jurisdiction.
Optionally, authority adaptive device provided in an embodiment of the present invention also includes:
Package module, for setting up authority application interface and callback interface, when client needs to call client jurisdiction,
By authority application interface application client jurisdiction, and by callback interface, return to the result to applying for client jurisdiction.
Optionally, in authority adaptive device provided in an embodiment of the present invention, client jurisdiction includes:Influence privacy of user
Sensitive permission.
It should be noted that the device of the embodiment of the present invention is the device using above-mentioned authority adaptation method, then above-mentioned power
The all embodiments for limiting adaptation method are applied to the device, and can reach same or analogous beneficial effect.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of correlation, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for system reality
Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of authority adaptation method, it is characterised in that including:
Real-time reception simultaneously preserves system broadcast information, wherein, the system broadcast information is sent out in the authorization conditions of client jurisdiction
Obtained during raw change;
When client jurisdiction is called, according to the corresponding recent systems broadcast message of the client jurisdiction, judge that client is
It is no to be authorized to use the client jurisdiction;
When judging that the client haves no right to use the client jurisdiction, to operating system sending permission application, so that the behaviour
Authority application prompt message is provided a user with as system;
The result of the authority application prompt message is received, and according to the result, accordingly determines the client
Have no right to use the client jurisdiction with access to the client jurisdiction or the client in end.
2. authority adaptation method according to claim 1, it is characterised in that described corresponding according to the client jurisdiction
Recent systems broadcast message, judges whether client is authorized to use the client jurisdiction, including:
The mandate of the client jurisdiction described in the system broadcast information is set when opening, and determines that the client jurisdiction is awarded
Power;
The mandate of the client jurisdiction described in the system broadcast information is set when closing, determine the client jurisdiction not by
Authorize.
3. authority adaptation method according to claim 1 and 2, it is characterised in that the authority application prompt message includes
Authority application prompted dialog frame, wherein, the authority application prompted dialog frame includes:Allow option, rejecting option and no longer carry
Awake option.
4. authority adaptation method according to claim 3, it is characterised in that described according to the result, accordingly
Determine that the client haves no right to use the client jurisdiction, bag with access to the client jurisdiction or the client
Include:
When the result is to allow the client to use the client jurisdiction, determine the client with access to
The client jurisdiction;
When the result uses the client jurisdiction for the refusal client, determine that the client haves no right to use
The client jurisdiction.
5. authority adaptation method according to claim 4, it is characterised in that in the result be the refusal client
When end is using the client jurisdiction, determine that the client haves no right to use the client jurisdiction, including:
When the result is for the selection rejecting option and no longer reminder option described in selection, the client is had no right
When calling the authority again using the client jurisdiction, also, the client, directly determine that the client haves no right to make
Use the client jurisdiction.
6. authority adaptation method according to claim 1, it is characterised in that methods described also includes:
Authority application interface and callback interface are set up, when the client needs to call the client jurisdiction, by authority
Client jurisdiction described in application interface application, and by the callback interface, return to the treatment to applying for the client jurisdiction
As a result.
7. authority adaptation method according to claim 1, it is characterised in that the client jurisdiction includes:Influence user
The sensitive permission of privacy.
8. a kind of authority adaptive device, it is characterised in that including:
Receiver module, for real-time reception and preserves system broadcast information, wherein, the system broadcast information is in client jurisdiction
Authorization conditions obtain when changing;
Judge module, for when client jurisdiction is called, according to the corresponding recent systems broadcast message of the client jurisdiction,
Judge whether client is authorized to use the client jurisdiction;
Request module, during for judging that the client haves no right to use the client jurisdiction, to operating system sending permission Shen
Please, so that the operating system provides a user with authority application prompt message;
Processing module, the result for receiving the authority application prompt message, and according to the result, accordingly
Determine that the client haves no right to use the client jurisdiction with access to the client jurisdiction or the client.
9. authority adaptive device according to claim 8, it is characterised in that the judge module includes:
First determination sub-module, when the mandate for the client jurisdiction described in the system broadcast information sets opening, really
The fixed client jurisdiction is authorized to;
Second determination sub-module, when the mandate for the client jurisdiction described in the system broadcast information sets closing, really
The fixed client jurisdiction is uncommitted.
10. authority adaptive device according to claim 8 or claim 9, it is characterised in that the authority application prompt message includes
Authority application prompted dialog frame, wherein, the authority application prompted dialog frame includes:Allow option, rejecting option and no longer carry
Awake option.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710117032.3A CN106897604A (en) | 2017-03-01 | 2017-03-01 | A kind of authority adaptation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710117032.3A CN106897604A (en) | 2017-03-01 | 2017-03-01 | A kind of authority adaptation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106897604A true CN106897604A (en) | 2017-06-27 |
Family
ID=59185447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710117032.3A Pending CN106897604A (en) | 2017-03-01 | 2017-03-01 | A kind of authority adaptation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106897604A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040321A (en) * | 2018-10-08 | 2018-12-18 | 北京小米移动软件有限公司 | Method of determining position information and device |
CN110096867A (en) * | 2019-05-13 | 2019-08-06 | 南开大学 | A kind of permission recommended method and system towards Android application function |
CN113301403A (en) * | 2021-05-25 | 2021-08-24 | 惠州Tcl移动通信有限公司 | Media playing control method, device, equipment and medium based on wearable equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103679007A (en) * | 2013-12-19 | 2014-03-26 | 深圳全智达通信股份有限公司 | Method and device for managing application program permission and mobile device |
CN105184148A (en) * | 2015-08-11 | 2015-12-23 | 上海斐讯数据通信技术有限公司 | Android application permission management method and management system |
CN105574380A (en) * | 2016-01-11 | 2016-05-11 | 广东欧珀移动通信有限公司 | Application authority management method and device for terminal |
CN106355084A (en) * | 2016-08-31 | 2017-01-25 | 上海斐讯数据通信技术有限公司 | Android group authority management method and system based on callback mechanism |
-
2017
- 2017-03-01 CN CN201710117032.3A patent/CN106897604A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103679007A (en) * | 2013-12-19 | 2014-03-26 | 深圳全智达通信股份有限公司 | Method and device for managing application program permission and mobile device |
CN105184148A (en) * | 2015-08-11 | 2015-12-23 | 上海斐讯数据通信技术有限公司 | Android application permission management method and management system |
CN105574380A (en) * | 2016-01-11 | 2016-05-11 | 广东欧珀移动通信有限公司 | Application authority management method and device for terminal |
CN106355084A (en) * | 2016-08-31 | 2017-01-25 | 上海斐讯数据通信技术有限公司 | Android group authority management method and system based on callback mechanism |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040321A (en) * | 2018-10-08 | 2018-12-18 | 北京小米移动软件有限公司 | Method of determining position information and device |
CN110096867A (en) * | 2019-05-13 | 2019-08-06 | 南开大学 | A kind of permission recommended method and system towards Android application function |
CN110096867B (en) * | 2019-05-13 | 2021-10-08 | 南开大学 | Permission recommendation method and system for Android application function |
CN113301403A (en) * | 2021-05-25 | 2021-08-24 | 惠州Tcl移动通信有限公司 | Media playing control method, device, equipment and medium based on wearable equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8693988B2 (en) | System, method, and apparatus for proximity-based authentication for managing personal data | |
CN104462889B (en) | A kind of application rights management method and device | |
US8400989B2 (en) | Activating private access points for wireless networking | |
US20230092605A1 (en) | Context-based automated task performance for user contacts | |
US11937318B2 (en) | Dual mode transmission in a controlled environment | |
US6356753B1 (en) | Management of authentication and encryption user information in digital user terminals | |
CN106134143A (en) | Method, apparatus and system for dynamic network access-in management | |
TW201220794A (en) | System of multiple domains and domain ownership | |
CN104637131A (en) | Authorization method and authorization device for access control system and access control system | |
CN106897604A (en) | A kind of authority adaptation method and device | |
EP1463351A1 (en) | Method for unblocking a portable wireless telecommunications terminal | |
US9867028B2 (en) | Electronically binding to a lost mobile device | |
US20190019154A1 (en) | Intelligent, context-based delivery of sensitive email content to mobile devices | |
JP2000507057A (en) | Method and apparatus for confirming a subscriber terminal on a communication network | |
EP1362471B1 (en) | Method and apparatus for anonymous call set up | |
US20230244800A1 (en) | Method and system for securely providing vehicle services data to a vehicle | |
CN104980420A (en) | Business processing method, device, terminal and server | |
CN108667802A (en) | A kind of monitoring method and system of electric power application network safety | |
US11546174B2 (en) | Wireless terminal authentication | |
EP2677791A2 (en) | Method and device for transferring a test request to an identification module | |
US9391991B2 (en) | Messaging gateway for directory and anonymous services | |
EP2299667B1 (en) | Parental control of a mobile terminal | |
Dhodapkar | Globally Non-Deterministic, Locally Deterministic Unique Identifier to Enable Local Tracking of a Connected Wi-Fi Access Point | |
WO2013175141A1 (en) | Method and system for spatio-temporal adjustment of geolocation permissions | |
KR101168659B1 (en) | Message transmitting system and method for transmitting emergence informations for their nationals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170627 |
|
WD01 | Invention patent application deemed withdrawn after publication |