commit | 1419167262f06e25bd0bd2f9f0d98a226511851e | [log] [tgz] |
---|---|---|
author | Zemeng Li <zemeng.li@mediatek.com> | Fri Jun 24 14:25:00 2022 +0800 |
committer | Lili Lin <lili.lin@mediatek.com> | Tue Mar 28 13:36:10 2023 +0800 |
tree | ce0d89b8184616ca7d14388b768d03267feaa8c0 | |
parent | 3c825a4d8921747fce4ac4a4498a779b6d8f3b3a [diff] |
Fix NullPointerException to get sim accounts After the process "android.process.acore" is killed, the null value will be returned by ContentResolver when the api "getSimAccounts" is called, which will throw NullPointerException. Explicitly get a ContentProviderClient and call on it. When the process is killed, the RemoteException will be catched. Bug: 231687839 Change-Id: Idb265d9fcc781612e571deae5014729e3ed59b44