Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6cc79f73 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk Committed by Android Build Coastguard Worker
Browse files

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
parent b5f6b849
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment