commit | 5223a13c681daedd47ac8d6c2f7a5b5085d379f3 | [log] [tgz] |
---|---|---|
author | Kangping Dong <wgtdkp@google.com> | Thu Dec 28 11:02:56 2023 +0800 |
committer | Kangping Dong <wgtdkp@google.com> | Thu Dec 28 11:10:51 2023 +0800 |
tree | 62fd71faf647c271a8231e3503e7d51aa875e8d0 | |
parent | d5cee26211a83e6dd132f95a4541b5fb48ec5265 [diff] |
[Thread] use Context#enforceCallingOrSelfPermission Context#enforceCallingPermission always throws SecurityException if we are not processing a Binder IPC. This specifically doesn't work with unit tests where the service APIs are called with mocked Binder interfaces. Bug: 317555104 Change-Id: I50be68487fb53907dbb1e3da7815fdf305047481