commit | 097dcf7a3f2cf5e1d0677d31b34f70eab6b70948 | [log] [tgz] |
---|---|---|
author | sangyun <sangyun@google.com> | Thu Jan 04 10:35:49 2024 +0900 |
committer | sangyun <sangyun@google.com> | Thu Jan 04 14:47:45 2024 +0900 |
tree | 1cb4039419126fe2f98335d1bc82aa00a9c69069 | |
parent | 9a3c0076a81ec0375cd87a5ff20aa84dbe32b388 [diff] |
Change the return of getCurrentPackageName to nullable. getCurrentPackageName returns the calling package name. In some case, there may be no known package for given binder calling uid. Then, NPE can be thrown by attempting to read null array. Therefore, changed to nullable for getCurrentPackageName function, and return null if there is no known package name for calling uid Bug: 318525350 Test: atest PhoneInterfaceManagerTest Change-Id: I1c9be056aae998abfe3ee4ed641c2cd5bfaaa9c7