commit | 785783f758260e5d23633317f1a286a89d66090d | [log] [tgz] |
---|---|---|
author | Amit Mahajan <amitmahajan@google.com> | Mon Jun 29 10:36:50 2015 -0700 |
committer | Amit Mahajan <amitmahajan@google.com> | Mon Jun 29 10:36:50 2015 -0700 |
tree | 846ea46f3acc8c28b578962c31ff59638914526a | |
parent | 7248d902780725cd7b96c093dfe80fcf2353f81c [diff] |
Change the order of permission checks for READ_PHONE_STATE. This is needed for 2 reasons: 1. If called as self, OP_READ_PHONE_STATE check should not be done. 2. If caller does not have permission, exception should be thrown for READ_PHONE_STATE. Bug: 22128902 Change-Id: I8a8d6f75c4da9914a17c0ceb57bb5b8df1df0bb9