commit | 98015f337336b14cc4cf21aaba9fc39e1cd35181 | [log] [tgz] |
---|---|---|
author | Kangping Dong <wgtdkp@google.com> | Sun Nov 12 18:05:33 2023 +0800 |
committer | Kangping Dong <wgtdkp@google.com> | Wed Nov 22 01:54:34 2023 +0000 |
tree | 1b54a3f45a8bf09f8d0a631913c3998adebeb00e | |
parent | ecda769a25ac3ee83dddeaaa98997bf254ce189a [diff] |
[Thread] clear calling identity before invoking app-supplied callback Per API council feedback and API guideline at go/android-api-guidelines#provide-executor, it should call Binder.clearCallingIdentity() before invoking the app-supplied callbacks so that the app doesn't use the system-server's identity for permission check in the callback. Bug: 309952666 Test: atest ThreadNetworkUnitTests Change-Id: I3cfbce29c0a516506bb76a44b151a583c8477806