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>
1 file changed