CN106355084B - Android group right management method and system based on callback mechanism - Google Patents

Android group right management method and system based on callback mechanism Download PDF

Info

Publication number
CN106355084B
CN106355084B CN201610789535.0A CN201610789535A CN106355084B CN 106355084 B CN106355084 B CN 106355084B CN 201610789535 A CN201610789535 A CN 201610789535A CN 106355084 B CN106355084 B CN 106355084B
Authority
CN
China
Prior art keywords
group
permission
application
android
info
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
CN201610789535.0A
Other languages
Chinese (zh)
Other versions
CN106355084A (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.)
Huzhou Yinglie Intellectual Property Operation Co ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610789535.0A priority Critical patent/CN106355084B/en
Publication of CN106355084A publication Critical patent/CN106355084A/en
Application granted granted Critical
Publication of CN106355084B publication Critical patent/CN106355084B/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
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • 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/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Abstract

The invention belongs to computer software technical fields, disclose a kind of Android group right management method and system based on callback mechanism, all permissions of Android are divided into multiple groups by this method, when the new permission grant of application program, it is judged whether or not processed includes to prompt with the authorized application of newly permission of the application permission with group, if so, being added the permission newly applied as newly-increased entry in the not processed authorized application prompt;If it is not, then issuing the authorized application prompt of new application permission.The system includes application rights management unit and authorized application prompt unit, and this method is realized in application rights management unit and the combination of authorized application prompt unit.The present invention is grouped management to all permissions, and belonging to for occurring simultaneously is collected in a prompt with the multiple permissions organized, and handles for user, to bring convenience to user.

Description

Android group right management method and system based on callback mechanism
Technical field
The invention belongs to computer software technical fields, are related to Android operation system, and in particular to based on callback mechanism Android group right management method and system.
Background technique
With the rapid development of mobile Internet, mobile phone is using more and more abundant, while application installation and operation, they Just have some permissions for collecting data in mobile phone, while enriching us and living personal privacy be also possible to therewith by Leakage, in we do not perceive, largely applies and is grabbing our consumption information and consumption habit on the internet, that is such as What avoids personal multi information of crossing from being compromised? Android system introduces rights management mechanism since 4.4.
So-called rights management, is to the permission of some App of manual configuration, and then prevents Malware and prevent hidden Private leakage.Certainly, further rights management is can to provide a kind of notice when App dynamic uses some permission Mechanism prompts user to allow and refuse.
Existing permission prompt uses AlertDialog mechanism, and this mechanism is excessively stiff, and inflexible, it can be interrupted It is currently running Activity, user must make a choice in real time, so needing weight when Activity restores again New load latest authorization state value.If not doing selection in real time to be defaulted as ignoring, the several seconds dialog boxes are waited at this time It can disappear, it is not smooth enough using operation.If the application permission of some application is excessive, user will be to the permission of this all application It selects, user is caused to do selection operation for a long time excessively, easily cause user's irritated psychology.
The all permissions of Android system are exactly grouped management by so-called group of rights management, can allow system in this way Numerous permissions classify, and orderliness is clear, and can improve the efficiency of management to these permissions, can save system money to a certain extent Source reduces equipment power dissipation.
Although Android primary system proposes the concept of group permission, substantially classify to all permissions of system, not It is provided with effective group rights management mechanism.System on the market based on Android exploitation, such as Ali's cloud OS, mushroom system, also Single rights management function is only provided, all without offer group right management method.
The Chinese invention patent application of publication number CN105184148A is mentioned through customized View mechanism and manages Android Application permission.But the customized View is inherited from AlertDialog, although ensure that application program is run on certain procedures Fluency, but solves the problem of it is a large amount of really weigh prompting frames and pop up simultaneously make troubles to user.
The Chinese invention patent application of Publication No. CN103679007A discloses a kind of side for managing application program permission Method, comprising: whether monitor terminal has Android application program to request monitoring service;When the request for receiving Android application program monitors When service, display reminding selects information, chooses whether to allow to monitor for user;When receive user selection allow monitor trigger When, then start to start the solicited message for monitoring Android application program in real time, and corresponding monitor strategy control information is set.The hair The problem of equally unresolved a large amount of really power prompting frames of the method for bright proposition are popped up simultaneously, are made troubles to user.
Summary of the invention
The purpose of the present invention is: the existing application rights management method above shortcomings of Android system are directed to, provide one Group rights management mechanism of the kind based on callback mechanism, the category which is grouped all permissions, and will occur simultaneously It collects in a prompt in same group of multiple permissions, is handled for user.To be brought convenience to user.The present invention continues simultaneously Customized View mechanism can pop up the authority request of multiple permission groups simultaneously, to improve the flexibility of system.
To achieve the above object, present invention firstly provides a kind of Android group right management method based on callback mechanism, Include:
Step S1: a certain permission grant of application program;
Step S2: authorized application prompt is issued the user with;
Step S3: user selects authorization or refusal;
It is characterized in that, all permission of Android is divided into multiple groups, the step S2 includes:
Step S2-1: it is judged whether or not processed authorized application prompts, and include in authorized application prompt There are the other permissions for belonging to same group with authority items applied in step S1 if the determination result is YES then to enter step S2-2, If judging result be it is no, then follow the steps S2-3;
Step S2-2: authority items applied in step S1 are added described in step S2-1 as newly-increased entry then and are awarded In power application prompt.
Step S2-3: the authorized application prompt comprising applied authority items in step S1 is issued.
Further, the Android group right management method of the present invention based on callback mechanism, further includes:
Step S0: while the registered callbacks interface IOnCallback in SystemUI and AppOpsService, Android are set When standby structural regime column SystemUI, a customized View object is instantiated GroupPermissionsCheckPanelView, the object represent a group permission prompting frame.It will by IOnCallback interface Rights management service AppOpsService and system mode column connect, and are communicated between the two by Binder.
The step S2 further includes that step S2-0:AppOpsService carries out validity checking to applicant.
The step S2-3 includes:
Step S2-3-1:AppOpsService service call askOperationLocked method,
Step S2-3-2: it is called in IOnCallback interface in askOperationLocked method OnAddRequest method,
Step S2-3-3: the onAddRequest called in GroupPermissionCallback is communicated by binder Method,
Step S2-3-4: message MSG_GROUP_PERMISSION_CHECK_PANEL is sent, in the processing of the message It constructs a GroupPermissionsCheckPanelView object and shows.
Further, OnItemClickListener is realized in GroupPermissionsCheckPanelView object With OnTouchListener interface, to respond the selection operation of user.
Further, all permissions of Android incorporate into as ten groups, are respectively: PRIVATE_INFO group, LOCATION_ INFO group, SYSTEM_INFO group, COST group, ACCOUNT_MGR group, HARDWARE_MGR group, WIRELESS_MGR group, PHONE_MGR group, STORAGE_MGE group and NETWORK group.
Wherein PRIVATE_INFO group represent operation user's private data permission group, including short message, contact person, calendar, Email etc..LOCATION_INFO group represents the permission group of position operation, including GPS positioning, WLAN positioning and data network Positioning.SYSTEM_INFO group represents operating system application programming interfaces.
Based on the above group right management method, present invention further propose that a kind of Android group permission pipe based on callback mechanism Reason system, comprising:
Application rights management unit carries out legitimacy inspection to applicant for the permission grant application of response application program Look into, it is judged whether or not processed authorized application prompts, and judge in authorized application prompt whether include with The authority items of application program authorization belong to same group of other authority items, adjust back the realization in authorized application prompt unit Class;
Authorized application prompt unit includes that application program applies for that the authorized application of the authority items authorized mentions for issuing Show.
Further, the application rights management unit includes authority library, and grouping stores all Android permissions in authority library.
Further, in authority library, all permissions of Android are incorporated into as ten groups, are respectively:
PRIVATE_INFO group, LOCATION_INFO group, SYSTEM_INFO group, COST group, ACCOUNT_MGR group, HARDWARE_MGR group, WIRELESS_MGR group, PHONE_MGR group, STORAGE_MGE group and NETWORK group.
Wherein PRIVATE_INFO group represent operation user's private data permission group, including short message, contact person, calendar, Email etc..LOCATION_INFO group represents the permission group of position operation, including GPS positioning, WLAN positioning and data network Positioning.SYSTEM_INFO group represents operating system application programming interfaces.
Further, the application rights management unit includes AppOpsService service, is infused in AppOpsService Volume has callback interface IOnCallback.
Further, the authorized application prompt unit includes SystemUI class, registers with readjustment in SystemUI class and connects Mouth IOnCallback.
Further, AppOpsService is connected with SystemUI by IOnCallback interface, is passed through between the two Binder communication.
Further, when SystemUI structural regime column, a customized View object is instantiated GroupPermissionsCheckPanelView, the object represent a group permission prompting frame.
Further, when application program permission grant, AppOpsService carries out legitimacy inspection to applicant It looks into.Inspection sorts out this application permission after passing through, and can finally call askOperationLocked method, The onAddRequest method in IOnCallback interface is called in askOperationLocked method.And then pass through The onAddRequest method in GroupPermissionCallback is called in binder communication, sends message MSG_GROUP_ PERMISSION_CHECK_PANEL constructs a GroupPermissionsCheckPanelView in the processing of the message Object is simultaneously shown.
Further, if having permission application again when a group permission is really weighed and do not completed, equally operation application is closed Method inspection, then sorts out, and the group is added to if belonging to the group having been displayed, as an item in group permission prompting frame Mesh.If being not belonging to any group had been displayed, just a GroupPermissionsCheckPanelView object is instantiated simultaneously Display.
Further, GroupPermissionsCheckPanelView object has realized OnItemClickListener With OnTouchListener interface, the selection operation of user can be responded.
The invention has the advantages that: this group of rights management mechanisms based on callback mechanism to be grouped to all permissions, and will Belonging to for occurring simultaneously collects in a prompt with the multiple permissions organized, and handles for user, application permission can be effectively reduced The frequency of prompting frame pop-up when very much, to be brought convenience to user.The present invention has continued customized View mechanism simultaneously, can be simultaneously The authority request of multiple permission groups is popped up, to improve the flexibility of system.
Detailed description of the invention
Fig. 1 is the Android group right management method flow diagram of the present invention based on callback mechanism.
Fig. 2 is the Android group Rights Management System tissue block diagram of the present invention based on callback mechanism.
Specific embodiment
Android group right management method and system to of the present invention based on callback mechanism in an illustrative manner below It is described further.
The present invention is based on callback mechanisms to realize the group rights management in Android system, first to all permissions of Android system Classify, the general character of certain operations is taken out, in order to centralized operation.As PRIVATE_INFO group represents operation user individual Data, short message, contact person, calendar, Email etc..LOCATION_INFO group represents position operation, GPS positioning, WLAN positioning With data network positions.SYSTEM_INFO group represents operating system application programming interfaces etc..
Then, the registered callbacks interface IOnCallback while in SystemUI and AppOpsService, when there is application When applying for permission operation, client service is called by Binder operation requests being transmitted to rights management service (AppOpsService).When such as Baidu map application positioning service, Location Request can pass through LocationManagerService Service is transmitted to AppOpsService.Rights management service first does validity checking to this application, such as checks the body of applicant Part, User ID etc., inspection again sorts out this operation after passing through, if the operation of accessing address list is grouped into PRIVATE_INFO group, Positioning operation is grouped into LOCATION_INFO group etc..Recall the onAddRequest method in interface IOnCallBack.Simultaneously This method in SystemUI can be adjusted back, a group permission prompt object can be instantiated in the method, which presents current All group permissions applied in system.Wait the selection operation of user.
Several relatively preferred specific embodiments are given below based on the above design.In the examples below, Android is all Permission be grouped.
Embodiment 1
Android group right management method of the present invention based on callback mechanism, comprising:
Step S0: while the registered callbacks interface IOnCallback in SystemUI and AppOpsService, Android are set When standby structural regime column SystemUI, a customized View object is instantiated GroupPermissionsCheckPanelView, the object represent a group permission prompting frame.It will by IOnCallback interface Rights management service AppOpsService and system mode column connect, and are communicated between the two by Binder.
Step S1: a certain permission grant of application program.
Step S2-1: it is judged whether or not processed authorized application prompts, and include in authorized application prompt There are the other permissions for belonging to same group with authority items applied in step S1 if the determination result is YES then to enter step S2-2, If judging result be it is no, then follow the steps S2-3;
Step S2-2: authority items applied in step S1 are added described in step S2-1 as newly-increased entry then and are awarded In power application prompt.
Step S2-3: the authorized application prompt comprising applied authority items in step S1 is issued.
Step S3: user selects authorization or refusal.
Embodiment 2
Android group right management method of the present invention based on callback mechanism, comprising:
Step S0: while the registered callbacks interface IOnCallback in SystemUI and AppOpsService, Android are set When standby structural regime column SystemUI, a customized View object is instantiated GroupPermissionsCheckPanelView, the object represent a group permission prompting frame.It will by IOnCallback interface Rights management service AppOpsService and system mode column connect, and are communicated between the two by Binder.
Step S1: a certain permission grant of application program.
Step S2-0:AppOpsService carries out validity checking to applicant.
Step S2-1: it is judged whether or not processed authorized application prompts, and include in authorized application prompt There are the other permissions for belonging to same group with authority items applied in step S1 if the determination result is YES then to enter step S2-2, If judging result be it is no, then follow the steps S2-3;
Step S2-2: authority items applied in step S1 are added described in step S2-1 as newly-increased entry then and are awarded In power application prompt.
Step S2-3-1:AppOpsService service call askOperationLocked method,
Step S2-3-2: it is called in IOnCallback interface in askOperationLocked method OnAddRequest method,
Step S2-3-3: the onAddRequest called in GroupPermissionCallback is communicated by binder Method,
Step S2-3-4: message MSG_GROUP_PERMISSION_CHECK_PANEL is sent, in the processing of the message It constructs a GroupPermissionsCheckPanelView object and shows. OnItemClickListener and OnTouchListener is realized in GroupPermissionsCheckPanelView object Interface, to respond the selection operation of user.
Step S3: user selects authorization or refusal.
Embodiment 3
Android group Rights Management System of the present invention based on callback mechanism, comprising: application rights management unit and award Power application prompt unit.The application rights management unit includes AppOpsService service, is registered in AppOpsService There is callback interface IOnCallback.The authorized application prompt unit includes SystemUI class, is registered with back in SystemUI class Adjust interface IOnCallback.AppOpsService is connected with SystemUI by IOnCallback interface, is passed through between the two Binder communication.When the structural regime column SystemUI, a customized View object is instantiated GroupPermissionsCheckPanelView, the object represent a group permission prompting frame.
Application rights management unit is used for the permission grant application of response application program, carries out legitimacy inspection to applicant Look into, it is judged whether or not processed authorized application prompts, and judge in authorized application prompt whether include with The authority items of application program authorization belong to same group of other authority items, adjust back the realization in authorized application prompt unit Class.Authorized application prompt unit is used to issue the authorized application prompt for applying for the authority items of authorization comprising application program.
The application rights management unit includes authority library, and grouping stores all Android permissions in authority library.In authority library In, all permissions of Android are grouped storage, such as the permission group of operation user's private data is represented with PRIVATE_INFO group, Including short message, contact person, calendar and Email etc..LOCATION_INFO group represents the permission group of position operation, including GPS Positioning, WLAN positioning and data network positions.SYSTEM_INFO group represents operating system application programming interfaces.
When application program permission grant, AppOpsService carries out validity checking to applicant.Inspection passes through This application permission is sorted out afterwards, askOperationLocked method can be finally called, in the side askOperationLocked The onAddRequest method in IOnCallback interface is called in method.And then it is communicated and is called by binder OnAddRequest method in GroupPermissionCallback sends message MSG_GROUP_PERMISSION_ CHECK_PANEL constructs a GroupPermissionsCheckPanelView object and is shown in the processing of the message.
If having permission application again when a group permission is really weighed and do not completed, validity checking equally is done to operation application, Then sort out, the group is added to if belonging to the group having been displayed, as an entry in group permission prompting frame.If do not belonged to In any group had been displayed, just instantiates a GroupPermissionsCheckPanelView object and show. GroupPermissionsCheckPanelView object has realized OnItemClickListener and OnTouchListener Interface can respond the selection operation of user.
Embodiment 4
Referring to Fig. 2, all permissions of Android are incorporated into as ten groups in this example, are respectively: PRIVATE_INFO group, LOCATION_INFO group, SYSTEM_INFO group, COST group, ACCOUNT_MGR group, HARDWARE_MGR group, WIRELESS_ MGR group, PHONE_MGR group, STORAGE_MGE group and NETWORK group.
It is real when the registered callbacks interface IOnCallback in SystemUI class, Android device structural regime column SystemUI Exampleization one customized View object GroupPermissionsCheckPanelView, the object represent a group permission prompt Frame.Rights management service AppOpsService and system mode column are connected by IOnCallback interface class, the two Between pass through Binder communicate.When application program has permission request operation, AppOpsService service can be applicant respectively Kind validity checking, inspection can apply for this operation classification after passing through.AskOperationLocked method can be finally called, The onAddRequest method in IOnCallback interface is called in askOperationLocked method.And then pass through The onAddRequest method in GroupPermissionCallback is called in binder communication.
GroupPermissionCallback realizes that the essence of realization is exactly to send to onAddRequest method Message MSG_GROUP_PERMISSION_CHECK_PANEL constructs one in the processing of the message GroupPermissionsCheckPanelView object is simultaneously shown.The object represents this group of authority application prompt.Such as Fruit has permission application when a group permission is really weighed and do not completed again, equally validity checking is done to operation application, then to this Application operation is sorted out, and the group is added to if belonging to the group having been displayed, as an entry in group permission prompting frame.If It is not belonging to any group had been displayed, just instantiate a new GroupPermissionsCheckPanelView object and is shown.
GroupPermissionsCheckPanelView object realized OnItemClickListener and OnTouchListener interface can respond the selection operation of user.
Embodiment 5
Fig. 2 show the Android group rights management system based on callback mechanism for realizing of the present invention group of right management method System, including application rights management unit and authorized application prompt unit.
The application rights management unit includes AppOpsService service and authority library, and the authorized application prompt is single Member includes SystemUI class.
Grouping stores all Android permissions in the authority library.In authority library, it is ten that all permissions of Android, which incorporate into, Group is respectively: PRIVATE_INFO group, LOCATION_INFO group, SYSTEM_INFO group, COST group, ACCOUNT_MGR group, HARDWARE_MGR group, WIRELESS_MGR group, PHONE_MGR group, STORAGE_MGE group and NETWORK group.
AppOpsService is connected with SystemUI by callback interface IOnCallback, passes through Binder between the two Communication.
When the structural regime column SystemUI, a customized View object is instantiated GroupPermissionsCheckPanelView, the object represent a group permission prompting frame.When application program permission is awarded Temporary, AppOpsService carries out validity checking to applicant.Inspection sorts out this application permission after passing through, and finally adjusts With askOperationLocked method, called in IOnCallback interface in askOperationLocked method OnAddRequest method.And then it is communicated and is called in GroupPermissionCallback by binder OnAddRequest method, the onAddRequest method can send message MSG_GROUP_PERMISSION_CHECK_ PANEL constructs a GroupPermissionsCheckPanelView object and is shown in the processing of the message.If One group permission is really weighed has permission application when not completing again, equally does validity checking to operation application, then sorts out, if belonged to It is just added to the group in the group having been displayed, as an entry in group permission prompting frame.If being not belonging to have been displayed any Group just instantiates a GroupPermissionsCheckPanelView object and shows.
The above content is the explanation to technical solution of the present invention, the limit made not directed to the scope of the present invention It is fixed, it is contemplated that, it is any to be based on inventive concept proposed by the present invention, in conjunction with this field Conventional wisdom without creative labor and The specific embodiment made belongs to that a kind of implementation of the invention should be fallen within the scope of the invention.

Claims (9)

1. a kind of Android group right management method based on callback mechanism, comprising:
Step S1: a certain permission grant of application program;
Step S2: authorized application prompt is issued the user with;
Step S3: user selects authorization or refusal;
It is characterized in that, all permission of Android is divided into multiple groups, the step S2 includes:
Step S2-1: it is judged whether or not processed authorized application prompts, and in authorized application prompt include with Other permissions that applied authority items belong to same group in step S1 if the determination result is YES then enter step S2-2, if sentencing Disconnected result be it is no, then follow the steps S2-3;
Step S2-2: authorization Shen described in step S2-1 then is added using authority items applied in step S1 as newly-increased entry In please prompting;
Step S2-3: the authorized application prompt comprising applied authority items in step S1 is issued;
Further include:
Step S0: at the same the registered callbacks interface IOnCallback in SystemUI and AppOpsService, Android device structure When making status bar SystemUI, a customized View object GroupPermissionsCheckPanelView is instantiated, The object represents a group permission prompting frame;By IOnCallback interface by rights management service AppOpsService and system Status bar connects, and is communicated between the two by Binder.
2. the Android group right management method according to claim 1 based on callback mechanism, which is characterized in that the step S2 further includes that step S2-0:AppOpsService carries out validity checking to applicant.
3. the Android group right management method according to claim 1 based on callback mechanism, which is characterized in that the step S2-3 includes:
Step S2-3-1:AppOpsService service call askOperationLocked method;
Step S2-3-2: the onAddRequest in IOnCallback interface is called in askOperationLocked method Method;
Step S2-3-3: the onAddRequest method called in GroupPermissionCallback is communicated by binder;
Step S2-3-4: message MSG_GROUP_PERMISSION_CHECK_PANEL is sent, is constructed in the processing of the message One GroupPermissionsCheckPanelView object is simultaneously shown.
4. the Android group right management method according to claim 3 based on callback mechanism, which is characterized in that OnItemClickListener and OnTouchListener is realized in GroupPermissionsCheckPanelView object Interface, to respond the selection operation of user.
5. the Android group right management method according to claim 1 based on callback mechanism, which is characterized in that Android is all Permission incorporate into as ten groups, be respectively: PRIVATE_INFO group, LOCATION_INFO group, SYSTEM_INFO group, COST Group, ACCOUNT_MGR group, HARDWARE_MGR group, WIRELESS_MGR group, PHONE_MGR group, STORAGE_MGE group and NETWORK group.
6. the Android group right management method according to claim 5 based on callback mechanism, which is characterized in that PRIVATE_ INFO group represents the permission group of operation user's private data, including short message, contact person, calendar and Email;LOCATION_ INFO group represents the permission group of position operation, including GPS positioning, WLAN positioning and data network positions;SYSTEM_INFO group generation Table handling system application interface.
7. a kind of Android group Rights Management System based on callback mechanism, comprising:
Application rights management unit carries out validity checking to applicant, sentences for the permission grant application of response application program Whether currently have not processed authorized application prompt, and judge whether include and apply journey in authorized application prompt if breaking The authority items of sequence application authorization belong to same group of other authority items;
Authorized application prompt unit includes that application program applies for that the authorized application of the authority items authorized prompts for issuing;Institute Stating application rights management unit includes AppOpsService service, registers with callback interface in AppOpsService IOnCallback;The authorized application prompt unit includes SystemUI class, registers with callback interface in SystemUI class IOnCallback, AppOpsService and SystemUI are connected by IOnCallback interface, pass through Binder between the two Communication.
8. the Android group Rights Management System according to claim 7 based on callback mechanism, which is characterized in that the application Rights management unit includes authority library, and grouping stores all Android permissions, in authority library, all permissions of Android in authority library It incorporates into as ten groups, is respectively: PRIVATE_INFO group, LOCATION_INFO group, SYSTEM_INFO group, COST group, ACCOUNT_MGR group, HARDWARE_MGR group, WIRELESS_MGR group, PHONE_MGR group, STORAGE_MGE group and NETWORK group, wherein PRIVATE_INFO group represents the permission group of operation user's private data, including short message, contact person, calendar And Email;LOCATION_INFO group represents the permission group of position operation, including GPS positioning, WLAN positioning and data network Positioning;SYSTEM_INFO group represents operating system application programming interfaces.
9. the Android group Rights Management System according to claim 7 based on callback mechanism, which is characterized in that SystemUI When structural regime column, a customized View object GroupPermissionsCheckPanelView, the object are instantiated A group permission prompting frame is represent, when application program permission grant, AppOpsService carries out legitimacy inspection to applicant It looks into, inspection sorts out this application permission after passing through, askOperationLocked method can be finally called, The onAddRequest method in IOnCallback interface is called in askOperationLocked method, and then is passed through The onAddRequest method in GroupPermissionCallback is called in binder communication, sends message MSG_GROUP_ PERMISSION_CHECK_PANEL constructs a GroupPermissionsCheckPanelView in the processing of the message Object is simultaneously shown.
CN201610789535.0A 2016-08-31 2016-08-31 Android group right management method and system based on callback mechanism Active CN106355084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610789535.0A CN106355084B (en) 2016-08-31 2016-08-31 Android group right management method and system based on callback mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610789535.0A CN106355084B (en) 2016-08-31 2016-08-31 Android group right management method and system based on callback mechanism

Publications (2)

Publication Number Publication Date
CN106355084A CN106355084A (en) 2017-01-25
CN106355084B true CN106355084B (en) 2019-08-20

Family

ID=57856718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610789535.0A Active CN106355084B (en) 2016-08-31 2016-08-31 Android group right management method and system based on callback mechanism

Country Status (1)

Country Link
CN (1) CN106355084B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897604A (en) * 2017-03-01 2017-06-27 福建中金在线信息科技有限公司 A kind of authority adaptation method and device
CN109033802B (en) * 2018-08-10 2020-08-28 武汉普利商用机器有限公司 Method and device for achieving system permission acquisition of unauthorized android application
CN113792328A (en) * 2021-08-12 2021-12-14 荣耀终端有限公司 Authority management method, user interface and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
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
CN104283841A (en) * 2013-07-02 2015-01-14 阿里巴巴集团控股有限公司 Method, device and system for carrying out service access control on third-party application
CN104484599A (en) * 2014-12-16 2015-04-01 北京奇虎科技有限公司 Behavior processing method and device based on application program
CN105184148A (en) * 2015-08-11 2015-12-23 上海斐讯数据通信技术有限公司 Android application permission management method and management system
CN105227772A (en) * 2015-09-30 2016-01-06 努比亚技术有限公司 Terminal wake-up method and apparatus
CN105426754A (en) * 2015-11-13 2016-03-23 上海斐讯数据通信技术有限公司 Permission management method and permission management system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283841A (en) * 2013-07-02 2015-01-14 阿里巴巴集团控股有限公司 Method, device and system for carrying out service access control on third-party application
CN103679007A (en) * 2013-12-19 2014-03-26 深圳全智达通信股份有限公司 Method and device for managing application program permission and mobile device
CN104484599A (en) * 2014-12-16 2015-04-01 北京奇虎科技有限公司 Behavior processing method and device based on application program
CN105184148A (en) * 2015-08-11 2015-12-23 上海斐讯数据通信技术有限公司 Android application permission management method and management system
CN105227772A (en) * 2015-09-30 2016-01-06 努比亚技术有限公司 Terminal wake-up method and apparatus
CN105426754A (en) * 2015-11-13 2016-03-23 上海斐讯数据通信技术有限公司 Permission management method and permission management system

Also Published As

Publication number Publication date
CN106355084A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN102841684B (en) A kind of method, device and equipment preventing maloperation
CN107864271B (en) A kind of information loading method and device
CN106355084B (en) Android group right management method and system based on callback mechanism
CN103514355A (en) Active type intensive care submission method and system based on cloud service
CN106097057A (en) A kind of virtual objects distribution method and device
CN106095562A (en) The method and apparatus of Portable Batch System
CN105320880B (en) The control method and device of terminal
CN109802881A (en) A kind of orientation prompting processing method and processing device of group chat message
CN109660421A (en) Method, apparatus, server and the storage medium of flexible scheduling resource
CN104714529B (en) the remote monitoring platform system of electric automobile
CN101815255B (en) Query method and system for group scheduling area information
CN106211074A (en) The distribution method of e-sourcing and distributor
CN107315558A (en) A kind of control method of terminal device, storage medium and terminal device
CN108667869A (en) Information of vehicles interactive system
Palumbo et al. Gp-m: Mobile middleware infrastructure for ambient assisted living
CN109448721A (en) Sound control method, system, Cloud Server and speech ciphering equipment
CN104346563B (en) The method and electronic equipment of a kind of information processing
CN108805438A (en) Method and apparatus for distributing resource, getting resource
CN106326736A (en) Data processing method and system
CN107104851A (en) A kind of thermodynamic chart methods of exhibiting and system based on WIFI
CN110519151A (en) Controllable good friend's adding method, device, terminal device and storage medium
CN105404558B (en) Method and device for processing events in multiple systems
Glasgow et al. Going for gold: blood planning for the London 2012 Olympic Games
CN106021956B (en) Medical patient information management system
CN106412294A (en) Alarm clock setting method, alarm clock control system and alarm clock system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20201201

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201216

Address after: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee after: Bengbu 309 Technology Consulting Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210203

Address after: 313001 room 1019, Xintiandi office building, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee before: Bengbu 309 Technology Consulting Co.,Ltd.

TR01 Transfer of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Android group authority management method and system based on callback mechanism

Effective date of registration: 20230111

Granted publication date: 20190820

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2023330000072

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231205

Granted publication date: 20190820

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2023330000072

PC01 Cancellation of the registration of the contract for pledge of patent right