summaryrefslogtreecommitdiffstats
path: root/services/core/java/com/android/server/PermissionDialogReqQueue.java
Commit message (Collapse)AuthorAgeFilesLines
* appops: Respect screen interactivity before creating dialogs.Adnan Begovic2016-05-271-0/+6
| | | | | | | | | | | | | If the device's screen is currently off, do not queue ask runnables who cannot be interacted with. Since these events are gating mechanisms for closing an IPC loop, they need to happen when the user is interacting with the device. Likewise, on screen off, clear the queue of every op as they become unnecessary. Change-Id: Ie930d200839c9408e882510c6bc3ede37ea889ef TICKET: CYNGNOS-2869
* AppOpsService: Add MODE_ASK support to AppOps.Shashank Mittal2015-10-291-0/+82
Add support for new mode(MODE_ASK) in AppOpsService to show a permission dialog box to user to confirm user permission before allowing or ignoring that operation. All strict operations (defined in AppOpsManager) are going to be in MODE_ASK by default. Operations will be moved to MODE_ALLOWED or MODE_IGNORED according to user's choice. Change-Id: I1314125a2b8be558e422e4a9eea0ff066c21bf94