commit | 2d13d437d01947427feff4a7f55173935604c4e7 | [log] [tgz] |
---|---|---|
author | Yuyang Huang <yuyanghuang@google.com> | Mon Mar 13 12:27:40 2023 +0900 |
committer | Yuyang Huang <yuyanghuang@google.com> | Mon Mar 13 13:11:49 2023 +0900 |
tree | 861376a143c309acd7e1d1e4b5c6a3715fd2ef88 | |
parent | 259ccb34a442467e000b6cf5428ac90d32e5b176 [diff] |
Clear the CallingIdentity before in the context of property check Using packageManager from ConnectivityService context to get the caller application info in binder calls can cause the permission issue. Calling the Binder.clearCallingIdentity() before interact with packageManager can fix the permission issue. Test: atest CtsHostsideNetworkTests Bug: 272165411 Change-Id: I0a289afc6fb0e42a92aa3ffa0c77ed396c4485c3