commit | 6cc79f73345887e17387499e1b5c5dc742c69af0 | [log] [tgz] |
---|---|---|
author | Tomasz Wasilczyk <twasilczyk@google.com> | Tue Mar 25 08:47:49 2025 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 03 18:23:30 2025 -0700 |
tree | af02cb6379c9912aed262d8e9a5acab27f3bbf06 | |
parent | b5f6b84933f8421e67e1121224656c55ce38d445 [diff] |
Fix UiccController crash due to inconsistent phone count Using TelephonyManager.getDefault() causes mContext to be null, which makes getPhoneCount quietly fall back to default values. This makes it return sometimes 0, sometimes 1, depending on whether the calling code used TelephonyManager.getDefault() or TelephonyManager.from(Context). Bug: 404627136 Flag: EXEMPT bugfix Test: boot gcar_x86_64-trunk_staging-userdebug and observe NPEs in logcat (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5a3ba387198cc50f42a032bc799112649a6be6b3) Merged-In: Ibf87e7cac9595d87ac593d581928b3863953a274 Change-Id: Ibf87e7cac9595d87ac593d581928b3863953a274