commit | 8a0df1e93306dde2a8f50a517e97787b6d51291f | [log] [tgz] |
---|---|---|
author | Gabriele M <moto.falcon.git@gmail.com> | Wed Mar 15 22:05:46 2017 +0100 |
committer | pimpmaneaton <shaunsibu@gmail.com> | Fri Sep 21 17:51:05 2018 -0600 |
tree | ac7e0b17fe9ed49af6115e8aaff1e41a6dcbdb05 | |
parent | 4674539f4530bc8e7ea993bc12dbe3fb67466b45 [diff] |
AppOpsDetails: Check app permissions safely checkOp() throws a SecurityException when the application is not allowed to perform the given operation. Use checkOpNoThrow() so that no exception is thrown. If the operation is not permitted, AppOpsManager.MODE_ERRORED will be returned and AppOpsDetails will treat it as MODE_IGNORED (i.e. don't allow). BUGBASH-52 Change-Id: Ic3177a24ae52438594e65cd19e29a86c1ee299e8 Signed-off-by: mydongistiny <jaysonedson@gmail.com>